Loading video...

Video Failed to Load

Go Home

I post-trained Qwen3-Coder to fix bugs using an actual debugger. The result: Solve rate: 70% → 89% Median turns to fix: 46 → 19 (-59%) Instead of just reading code or print-debugging, it: - reasons from execution - inspects live variables and call stacks - sets breakpoints, steps, and...

127,501 views • 6 months ago •via X (Twitter)

58 Comments

mufeez's profile picture
mufeez6 months ago

Across 27 heldout bug tasks, giving the base model the debugger harness alone didn’t help; without SFT + RL, solve rate was 67% (worse) and turns fell only 5%. The improvement came from training the model to use the debugger effectively.

mufeez's profile picture
mufeez6 months ago

Trained on @PrimeIntellect – more exciting results and in-depth blog post soon :)

Kyle Russell's profile picture
Kyle Russell6 months ago

Please bring to Qwen3.6-27B

mufeez's profile picture
mufeez6 months ago

the post-training recipe isn’t directly plug-and-play between these two: Qwen3.6-27B is a dense hybrid Gated DeltaNet/Gated Attention model, while Qwen3-Coder-30B-A3B is a sparse MoE.

Andge's profile picture
Andge6 months ago

@kylebrussell @grok explain this to me like im in highschool

Grok's profile picture
Grok6 months ago

Hey! Imagine an AI that writes code like a student staring at a textbook. This guy trained it to act like a real coder with a debugger—a tool that pauses the program, checks live variables (like peeking at what's in memory right now), sets breakpoints, and steps through line by line. Instead of guessing from reading code, it runs tests, investigates what's actually happening, finds the exact bug, fixes it, and re-tests. Result: Fixes bugs way faster and more accurately (70% → 89% success, half the steps). The video shows it debugging a tricky lock bug in Python. Super cool upgrade!

HL's profile picture
HL5 months ago

@ab198499 @moofeez @kylebrussell @grok FFS he meant the difference in training sparse MoE vs Gated DeltaNet/Attention model. But your answer was so ridiculous he just tuned out. And I don't care either. L

Grok's profile picture
Grok5 months ago

@ab198499 @moofeez @kylebrussell Ask Grok is currently available to Premium and Premium+ subscribers only. Subscribe to unlock this feature:

Krish Shah's profile picture
Krish Shah6 months ago

It’s interesting that learning to use the debugger is an underrated skill for most engineers, and it seems to be the same for ai too

mufeez's profile picture
mufeez6 months ago

+1, doesn't seem ideal that models currently spin on print-debugging loops

Prime Intellect's profile picture
Prime Intellect6 months ago

🔥

samsja's profile picture
samsja6 months ago

impressive work !

mufeez's profile picture
mufeez6 months ago

ty!! maybe worth adding to environments hub? 🤔

Vincent Weisser's profile picture
Vincent Weisser6 months ago

epic work!!

mufeez's profile picture
mufeez6 months ago

wouldn't have been possible without access to H100s on PI :)

Eiso Kant's profile picture
Eiso Kant6 months ago

@vincentweisser Love this work @moofeez! @vincentweisser what do we need to do to get Laguna on PI so we can see how it does here.

Vincent Weisser's profile picture
Vincent Weisser6 months ago

@moofeez would be epic - on it 🫡

Fardeem's profile picture
Fardeem6 months ago

Super cool! How much compute did this cost?

mufeez's profile picture
mufeez6 months ago

A few hundred dollars across synthetic data, evals, and training. imo worth it!

Shravanth's profile picture
Shravanth6 months ago

the comparison i'd want: same Qwen3-Coder with debugger access at inference, no post-training. splits the credit between 'has live state to reason from' and 'learned to use it well.' big chunk of the 19-pt jump might be the access alone.

mufeez's profile picture
mufeez6 months ago

@yourkaisensei this is exactly what I tested before going down the training rabbit hole giving the base model the debugger alone made the performance worse: I'll go into more detail here about the reasons behind this in my blog post.

Leo's profile picture
Leo6 months ago

this is cool and all but can it find nemo?

Alessio Fanelli's profile picture
Alessio Fanelli6 months ago

Excited to try this!

Bera's profile picture
Bera6 months ago

This is huge

darshil's profile picture
darshil6 months ago

would love the weights or training setup if you open source it

mufeez's profile picture
mufeez6 months ago

planning to open source everything 🫡

Elias Lumer's profile picture
Elias Lumer6 months ago

@willcb Did you give opus 4.6/ gpt5.5 a debugger? And see results there? Also did u try diff variations of giving the LLM a debugger?

mufeez's profile picture
mufeez6 months ago

great questions, I did run evals on Claude models towards the beginning of the project — the failure mode I observed was that the models would start a debug session but fail to use it effectively (shallow/incomplete debugger use), even on harder bugs not sure what you mean by “diff variations of giving the LLM a debugger”

Elias Lumer's profile picture
Elias Lumer6 months ago

@willcb Interesting. And by diff variations, im asking how you actually gave an LLM a debugger, like how did you explore it to the LM

mufeez's profile picture
mufeez6 months ago

@willcb I explored the standard harness + tool call approach, though there’s definitely room for experimentation here

Elias Lumer's profile picture
Elias Lumer6 months ago

@willcb Yeah exactly, probably more juice to squeeze by bitter lesson-ing the debugger in the harness. Looking forward to seeing your open source blog 👍

lucas gelfond's profile picture
lucas gelfond6 months ago

this is sick!

Advait Maybhate's profile picture
Advait Maybhate6 months ago

this is so sick 🔥

mathurah's profile picture
mathurah5 months ago

omg this is sick!!

floguo's profile picture
floguo6 months ago

let’s gooooooo 🥾🐛

Botir Khaltaev's profile picture
Botir Khaltaev6 months ago

good stuff!! did you ever have issues with the debugger going stale after a bunch of edits?

mufeez's profile picture
mufeez6 months ago

@botir33751732 the model learned to restart the debugger after making edits during RL :)

mufeez's profile picture
mufeez6 months ago

@botir33751732 though I also had some SFT examples with this behaviour

Tony Scott 🧄(🦆🐓🐵🧪🧬🪪)❌=↑🧄🧄🧄🥩🥚🧀↓👽👾🤖's profile picture
Tony Scott 🧄(🦆🐓🐵🧪🧬🪪)❌=↑🧄🧄🧄🥩🥚🧀↓👽👾🤖6 months ago

@trentster

bilal's profile picture
bilal5 months ago

you should do this for kernels and have it vibecode a parser for the nsight systems file format

shafin's profile picture
shafin6 months ago

jfc where does bro get the time

mufeez's profile picture
mufeez6 months ago

I put Claude on it

Raduan Al-Shedivat's profile picture
Raduan Al-Shedivat6 months ago

🔥🔥🔥

Tim Williams's profile picture
Tim Williams6 months ago

Did you create your own dataset for this? Have you considered porting to 3.6 now that it's killing the benchmarks?

Philippe Tremblay's profile picture
Philippe Tremblay6 months ago

This is interesting.

hamza mostafa's profile picture
hamza mostafa6 months ago

i don’t even think i can use a debugger fr lol

mufeez's profile picture
mufeez6 months ago

dw, my Qwen3-Coder finetune got you king

Blak's profile picture
Blak6 months ago

ok ! hugingface upload with the data you have pretrained ,to be transparent and see if the benchmark are real and not just pump

jay vi's profile picture
jay vi6 months ago

what confused me is that models don't even use the language servers, which is really strange?! Great work!

Leo's profile picture
Leo6 months ago

the absolute goat

Yacine Mahdid's profile picture
Yacine Mahdid5 months ago

wow man that’s actually pretty impressive nice work :)

varepsilon's profile picture
varepsilon6 months ago

🔥🔥🔥

Bera's profile picture
Bera6 months ago

How can I use this Mufeez?

mufeez's profile picture
mufeez6 months ago

model weights and harness will be available soon, you'll need to self-host 😃

parth's profile picture
parth6 months ago

@ClementDelangue this is sick very cool

HL's profile picture
HL5 months ago

Weights?

OneManSaas's profile picture
OneManSaas5 months ago

The 59% reduction in turns is the real metric here. Most debugging workflows assume infinite patience - but when you're context-switching between a sick kid and production fires, every extra iteration kills momentum. Teaching models to debug like experienced devs is huge.

Albatross's profile picture
Albatross6 months ago

Super cool idea.

Related Videos