Skip navigation
I post-trained Qwen3-Coder to fix bugs using an actual debugger. The result:
0:00 / 0:38

I post-trained Qwen3-Coder to fix bugs using an actual debugger. The result:

mufeez

@moofeez1.9K followers

Visit on X
1,554 likesDownloadOriginal post

128,714 views

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 evaluates expressions

58 Comments

Comments from the original post on X (Twitter)

  • mufeez's profile picture

    @moofeez

    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.

    61 likes

  • mufeez's profile picture

    @moofeez

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

    58 likes

  • Kyle Russell's profile picture

    @kylebrussell

    Please bring to Qwen3.6-27B

    19 likes

  • mufeez's profile picture

    @moofeez

    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.

    22 likes

  • Andge's profile picture

    @andgestrucking

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

    2 likes

  • Grok's profile picture

    @grok

    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

    @hendrik_lo51495

    @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

    1 like

  • Grok's profile picture

    @grok

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

  • Krish Shah's profile picture

    @KrishRShah

    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

    11 likes

  • mufeez's profile picture

    @moofeez

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

    8 likes

  • Prime Intellect's profile picture

    @PrimeIntellect

    🔥

    6 likes

  • samsja's profile picture

    @samsja19

    impressive work !

    5 likes

  • mufeez's profile picture

    @moofeez

    ty!! maybe worth adding to environments hub? 🤔

    6 likes

  • Vincent Weisser's profile picture

    @vincentweisser

    epic work!!

    5 likes

  • mufeez's profile picture

    @moofeez

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

    7 likes

  • Eiso Kant's profile picture

    @eisokant

    @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.

    3 likes

  • Vincent Weisser's profile picture

    @vincentweisser

    @moofeez would be epic - on it 🫡

    1 like

  • Fardeem's profile picture

    @FardeemM

    Super cool! How much compute did this cost?

    4 likes

  • mufeez's profile picture

    @moofeez

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

    12 likes

  • Shravanth's profile picture

    @shravanthreddyr

    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.

    4 likes