Skip to content
NewA calmer, faster ZeroHour

QuantCode Model: Specializing Language Models for Executable Algorithmic Trading Code

Hugging Face daily papersby Alexey Chernysh, Orkhan Ekhtibarov, Dmitry Zmitrovich ()1 min read8 · 3 reads
AI summary · grok-4.7Summaries by Vani AI

Continued pretraining and SFT specialize Qwen models for executable Backtrader trading code, raising Judge Pass to 58.2%.

The paper specializes language models for executable algorithmic trading via continued pretraining on framework code and supervised fine-tuning on agent-validated request-to-code pairs. On the 400-task QuantCode-Bench for Backtrader, continued pretraining raises Judge Pass from 41.5% to 47.5% for Qwen3.5-397B-A17B and from 27.8% to 33.0% for Qwen3.6-35B-A3B. SFT then lifts the smaller model to 58.2% Judge Pass, 83.5% successful backtests, and 79.5% final agentic success, while domain specialization can degrade tool-call formatting.

Key facts
  • QuantCode-Bench has 400 Backtrader strategy-generation tasks plus a repository track.
  • Continued pretraining lifts Qwen3.5-397B-A17B Judge Pass from 41.5% to 47.5%.
  • SFT after pretraining raises Qwen3.6-35B-A3B to 58.2% Judge Pass and 83.5% successful backtests.
  • Domain specialization degrades structured tool calling; recovery SFT restores formatting only.
Explain this AI news with Vani AIWhat was announced, what is new and why it matters, in a new chat

From the original article

1 min read at huggingface.co

Large language models are strong general-purpose code generators, but executable algorithmic trading remains a demanding specialization target: a model must translate a natural-language strategy specification into correct program logic for a specialized trading framework, execute on historical data, produce trades, and remain semantically faithful to the request.

Hugging Face daily papers

By Alexey Chernysh, Orkhan Ekhtibarov, Dmitry Zmitrovich · huggingface.co

Read the full article at Hugging Face daily papers

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.