- 2026-09-01: Agentic-Preview: Initial training with SFT + OPD + GRPO; training datasets and scenarios are being expanded. On SWE-Bench Verified, results show ~20% cost savings with only ~5% accuracy drop; more training and experiments are ongoing. We expect to release a stable version in about one month.
- 2026-07-23: Paper on arXiv:2607.20327.
- 2026-07-22: Release project page, math evaluation code, EasyHard-24K, and models on Hugging Face · pyromind (SFT, GRPO λ=0.05, GRPO λ=0.6). Milestone 1 math eval loop largely done; Collaborate Engine & one-click reproduce still in progress.
| Agentic-Preview | Math |
|---|---|
![]() |
![]() |
Important
Agentic-Preview changes
- Control token upgraded from
<|llm_offload|>to<|llm_offload|>N<|/llm_offload|>, where N is an integer in 0–9 that selects the thinking level when handing off to a more capable model (finer-grained agentic coding collaboration). - Stage 2 training updated from offload SFT alone to SFT + OPD, improving the cold-start offload policy for agentic coding trajectories.
- Agentic coding training datasets: ScaleSWE, TMax.
- Evaluation: see
evaluation/evaluation_code/README.md - More details will be released later.
During training, PyroDash follows a three-stage progressive optimization pipeline: (1) train the control-token embedding layer so the small model acquires basic offloading expressiveness; (2) cold-start the offload capability to establish a collaboration pattern between the small and large models; and (3) apply GRPO reinforcement learning that jointly optimizes the dynamic offloading policy with a task-accuracy reward and a large-model call-cost penalty, achieving an adaptive balance between reasoning quality and compute cost. For more details, please refer to our paper (citation below).
git clone https://github.com/PyroMind-Dynamics/PyroDash.git
cd PyroDash
pip install -r requirements.txtEdit placeholders in evaluation/evaluation_math/math_eval.sh, then:
bash evaluation/evaluation_math/math_eval.shThe script (1) starts a local vLLM server for the small model on port 8001, (2) runs math_eval.py, and (3) stops vLLM on exit.
| Variable / flag | Meaning | Example |
|---|---|---|
MODEL |
Local model path (vLLM serve + tokenizer) | /path/to/your/slm_model |
--glm-base-url |
OpenAI-compatible API for the large/relay model | http://your-glm-host:8000/v1 |
--glm-api-key |
API key for that endpoint | your-glm-api-key |
--glm-model |
Served model name on the GLM side | your-glm-model |
--output-dir |
Per-dataset JSON output directory | ./results_500 |
--datasets |
Benchmarks (space-separated) | gsm8k minerva olympiad aime2024 aime2025 |
Tokenizer must include the special token <|llm_offload|>.
Milestone 1 — Math eval loop
- Baselines: GLM-5.2 upper bound / Qwen3.5-4B lower bound + token cost stats
- vLLM + GLM relay (
<|llm_offload|>) + per-dataset JSON + cost aggregation - Comparisons: PyroDash / Query Router / Token Router + Pareto curve
- λ sweep & ablations
- One-click reproduce on PyroMind Console (end-to-end eval)
- Collaborate Engine
Milestone 2 — Coding + Agentic
- SWE-Bench (Verified / Lite) harness
- Terminal-Bench v2 harness
- Sandbox / scoring + offload trajectory & token stats
- Qwen3.5-4B / GLM-5.2 / PyroDash comparison + cost tables
- Unified Math + SWE + Terminal results & end-to-end scripts
- Optimize agentic performance
Milestone 3 — Coding Plan release
- Product definition & collaborative inference integration
- Coding-scenario optimizations (completion / refactor / debug)
- Release & promotion
| Resource | Link |
|---|---|
| Project website | PyroMind-Dynamics.github.io/PyroDash |
| Paper | arXiv:2607.20327 |
| Dataset (EasyHard-24K) | huggingface.co/datasets/pyromind/easyhard-24k |
| Hugging Face org | huggingface.co/pyromind |
If you find PyroDash useful, please cite:
@misc{lyu2026pyrodash,
title = {PyroDash: Cost-Efficient Token-Level Small-Large Language Model Collaborative Inference},
author = {Niqi Lyu and Pengtao Shi and Wei Qiu and Jianlin Zhong and Sicong Xia and Jianyao Ma and Yicheng Ding},
year = {2026},
eprint = {2607.20327},
archivePrefix= {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2607.20327}
}Dataset:
@misc{pyromind2026easyhard24k,
title = {{EasyHard-24K} v0.02},
author = {{PyroMind Dynamics}},
year = {2026},
howpublished = {\url{https://huggingface.co/datasets/pyromind/easyhard-24k}}
}


