Svetlin Penkov
Debugging Machine Learning Code
#1about 6 minutes
The core challenge of debugging machine learning code
Machine learning models are defined by complex computations on high-dimensional data, making traditional debugging methods ineffective.
#2about 4 minutes
Why you should verify code correctness before redesigning models
Poor model performance is often caused by simple code bugs rather than flawed model architecture, a common oversight in the R&D cycle.
#3about 4 minutes
Distinguishing between semantic and runtime bugs in development
The development process involves two distinct feedback loops for handling semantic bugs from model translation and runtime bugs from data issues.
#4about 9 minutes
Limitations of traditional debugging methods for ML
Standard techniques like printing variables, plotting, and custom dashboards fail to provide insight into the complex, high-dimensional state of modern ML models.
#5about 5 minutes
Introducing FMRI for interactive 3D data visualization
The FMRI debugger allows you to inspect high-dimensional tensors visually in 3D, making it easy to understand complex data structures with a single line of code.
#6about 8 minutes
Visualizing a CNN's computational graph with FMRI scan
By wrapping a training loop with the scan function, FMRI automatically generates an interactive 3D computational graph of a PyTorch model.
#7about 3 minutes
Scaling visual debugging and using automated assertions
FMRI handles large-scale models like VGG19 and includes a library of assertions to automatically detect common issues like vanishing gradients or invalid inputs.
#8about 6 minutes
Live demo of debugging a CNN with FMRI assertions
A live demonstration shows how to inspect a 3D tensor and use FMRI's built-in assertions to instantly find the root cause of NaN errors in a CNN.
#9about 3 minutes
Exploring the full computational graph of ResNet-101
This demonstration visualizes the entire ResNet-101 model, showcasing the tool's ability to handle massive computational graphs and explore learned features.
Related jobs
Jobs that call for the skills explored in this talk.
Picnic Technologies B.V.
Amsterdam, Netherlands
Intermediate
Senior
Python
Structured Query Language (SQL)
+1
WALTER GROUP
Wiener Neudorf, Austria
Intermediate
Senior
Python
Data Vizualization
+1
Wilken GmbH
Ulm, Germany
Senior
Kubernetes
AI Frameworks
+3
Matching moments
02:20 MIN
The evolving role of the machine learning engineer
AI in the Open and in Browsers - Tarek Ziadé
03:07 MIN
Final advice for developers adapting to AI
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
05:55 MIN
The security risks of AI-generated code and slopsquatting
Slopquatting, API Keys, Fun with Fonts, Recruiters vs AI and more - The Best of LIVE 2025 - Part 2
03:40 MIN
The limitations and risks of vibe coding
Slopquatting, API Keys, Fun with Fonts, Recruiters vs AI and more - The Best of LIVE 2025 - Part 2
03:16 MIN
Improving the developer feedback loop with specialized tools
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
09:10 MIN
How AI is changing the freelance developer experience
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
01:15 MIN
Crypto crime, EU regulation, and working while you sleep
Fake or News: Self-Driving Cars on Subscription, Crypto Attacks Rising and Working While You Sleep - Théodore Lefèvre
04:09 MIN
The emerging market for fixing AI-generated code
Devs vs. Marketers, COBOL and Copilot, Make Live Coding Easy and more - The Best of LIVE 2025 - Part 3
Featured Partners
Related Videos
Overview of Machine Learning in Python
Adrian Schmitt
Panel discussion: Developing in an AI world - are we all demoted to reviewers? WeAreDevelopers WebDev & AI Day March2025
Laurie Voss, Rey Bango, Hannah Foxwell, Rizel Scarlett & Thomas Steiner
Getting Started with Machine Learning
Alexandra Waldherr
From ML to LLM: On-device AI in the Browser
Nico Martin
The pitfalls of Deep Learning - When Neural Networks are not the solution
Adrian Spataru & Bohdan Andrusyak
Machine Learning for Software Developers (and Knitters)
Kris Howard
Debugging Unveiled: Exploring Debugger Internals and Hidden Gems
Johannes Bechberger
30 Golden Rules of Deep Learning Performance
Anirudh Koul
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

Forschungszentrum Jülich GmbH
Jülich, Germany
Intermediate
Senior
Linux
Docker
AI Frameworks
Machine Learning

Paris-based
Paris, France
Python
Docker
TensorFlow
Kubernetes
Computer Vision
+2

Luminance Technologies
Cambridge, United Kingdom
Python
PyTorch
TensorFlow
Computer Vision
Machine Learning
+1


Leuven MindGate
Leuven, Belgium
Python
PyTorch
TensorFlow
Machine Learning



Company VIB
Leuven, Belgium
Intermediate
Keras
Python
PyTorch
TensorFlow
Machine Learning

Inria
Canton de Villeneuve-d’Ascq, France
Remote
GIT
Python
Unit Testing
Data analysis
+1