Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 14 min read Research hardMaster

Jupyter Agents: training LLMs to reason with notebooks

Fine-tuning Qwen3-4B on 51k synthetic Jupyter notebook traces, combined with a minimal ~200-line two-tool scaffold (code execution plus final_answer), raised its DABStep easy-split accuracy from 38.67% to 75%. The scaffold change alone accounted for roughly 14 points of that gain. The dataset pipeline starts from ~2TB of Kaggle notebooks and runs deduplication (~90% were duplicates), linked-dataset download, LLM educational scoring and relevance filtering, verified QA generation with Qwen3-32B, and trace generation with Qwen3-Coder-480B in E2B sandboxes. Training findings include using full-parameter SFT over PEFT, assistant-only loss, NEFTune noise, and about 5 epochs as the sweet spot.

Related posts

  • DSGym: A holistic framework for evaluating and training data science agents

    Together AI hardMaster

    DSGym unifies data science agent benchmarks behind a single JSON task interface with containerized execution environments. It removes tasks that models can solve without reading the data, and it adds two new suites: DSBio, with 90 bioinformatics tasks, and DSPredict, with 92 Kaggle competitions. A synthetic query and trajectory pipeline produced 2,000 filtered examples, which were used to fine-tune Qwen3-4B into a competitive open-source agent. Even frontier models score low on multi-step tasks (DABStep-hard peaks at 37%), fail on scientific tasks mostly through domain-grounding errors (85–96%), and build valid Kaggle pipelines that rarely beat the human median.

  • DaisyRose-27B: Pushing the Frontier of Post-Training Efficiency

    Hugging Face hardMaster

    DaisyRose-27B is an RL post-trained version of Qwen3.8-27B, trained with the Miles framework on about 1,200 curated long-horizon agent tasks over 18 days on 144 H200s. It raises Terminal-Bench 4.1 pass@1 from 5.6% to 12.0% and improves every other reported benchmark, including SWE and reasoning suites. Fully asynchronous training split the GPUs into 128 for agent rollouts and 16 for the trainer. The internal backend reached 37% MFU versus 16% for the open-source Megatron-based trainer, cutting GPU time by 57% and doubling end-to-end throughput. A sandbox service built on AgentENV ran about 944K sandboxes at above 99.95% success, and memory allocation that grows and shrinks with usage cut costs about 80% versus commercial sandbox providers.

  • CoderForge-Preview: SOTA open dataset for training efficient coding agents

    Together AI hardMaster

    CoderForge-Preview is an open dataset of 258K test-verified coding agent trajectories (155K passing) covering 51K tasks across 1,655 repositories from R2E-Gym, SWE-Smith and SWE-Rebench. The trajectories were generated with Qwen3-Coder-480B in OpenHands Docker environments, filtered by rejection sampling and permissive-license audits, and cost about $130K to produce at a ~90% prompt cache hit rate. Fine-tuning Qwen3-32B on the passing trajectories, using Ulysses sequence parallelism, multipacking and token-level loss normalization at 128K context, reaches 59.4% pass@1 on SWE-Bench Verified, and a 4B model reaches 43.0%. Ablations show a repetition penalty helps only early checkpoints, so later checkpoints should be run without one.

  • DeepMath: A lightweight math reasoning Agent with smolagents

    Hugging Face hardMaster

    DeepMath fine-tunes Qwen3-4B Thinking with GRPO so it emits short Python snippets for intermediate math steps, runs them in a sandbox (module allow-list, no file I/O or network, per-snippet timeouts), and feeds results back into its reasoning. The agent is built on smolagents with vLLM inference, and TRL's vLLM client/server was modified so GRPO candidates are generated by the agent. Rewards cover correctness and code use, completions are capped at 5k tokens, temperature is scheduled linearly from 1.2 to 0.7, and training uses the OpenMathReasoning TIR subset. On MATH500, AIME, HMMT and HLE, agentic inference alone cuts output length by up to 66% with mixed accuracy, and combining it with GRPO training gives the best accuracy with shorter traces.

  • Turning Database Grading into RL Rewards: Post-Training Agents with ThinkingBox

    Hugging Face hardMaster

    Executable checks on terminal database state, originally built to grade agents in ThinkingBox-Bench, double as binary RL rewards for post-training tool-using agents. Fine-tuning Qwen3.8-27B with token-mean GRPO for 50 steps on 187 out-of-distribution tasks raised pass@1 from 51.70% to 60.78% and tasks solved on all 20 attempts from 38 to 107, while pass@20 coverage dipped slightly, consistent with sharpening. The key lever is offline policy-relative difficulty: candidate tasks are probed against the base policy, a Jeffreys Beta posterior estimates success probability, and only tasks likely to yield mixed reward groups (non-zero GRPO advantage) are kept. Cost per dependable task fell from $24.36 to $8.00, approaching frontier models.

The quest for software engineering knowledge.

Look:
Layout: