QuantCode: domain pretraining + SFT lifts Qwen trading-code pass from 27.8% to 58.2%

Alexey Chernysh · hf · 2026-10-06

A study on specializing LLMs for executable Backtrader trading code, with the 400-task QuantCode-Bench. Continued pretraining lifts Qwen3.6-35B-A3B Judge Pass from 27.8% to 33.0%; adding SFT reaches 58.2% pass and 83.5% backtest success, raising agentic first-turn success from 22.3% to 58.3% and 10-turn success from 47.5% to 79.5%. Continued pretraining alone degrades instruction following (final success 47.5%→32.5%), and domain specialization harms structured tool calling, with recovery SFT restoring format but not repository-level agent performance.

Original post →

More from Models

Models channel →