Quickstart · Hardware Support · Benchmarks · Documentation · Blog · Releases · Developer Slack
SpeCo keeps speculative drafters aligned with evolving RL policies. It reuses training features, adapts the drafter online, and hot-updates rollout engines without restarting the RL job. Built as an import-only extension of verl, it leaves upstream verl unmodified. Standalone training can also produce a deployable drafter or initialize co-training.
In the Qwen3-8B + DSpark evaluation, async Train+Freeze achieved 1.50× GPU and 1.58× Ascend NPU end-to-end step speedup against each platform's synchronous baseline without speculative decoding. See the comparison.
- Online adaptation: reuse rollout responses and old-policy features; train from current data or replay, then safely publish drafter weights.
- Acceptance-guided control: mix hard and uniform samples, and pause/resume updates as adaptation gains change.
- Flexible execution: synchronous and asynchronous co-training. Optional Bubble Time moves optimizer work into rollout-idle windows and supports the legacy trainer and synchronous V1 with verl 0.9 and vLLM.
- Extensible infrastructure: EAGLE-1/2/3, DFlash/DFlash2, DSpark, Domino, and P-EAGLE training backends, with backend-specific rollout support on GPU/NPU.
- Standalone training: independently generate features and train deployable drafters using shared training infrastructure.
- Hardware portability: CUDA GPU and Ascend NPU paths for co-training and standalone training; availability depends on the drafter and serving runtime.
The scheduler coordinates collect → train → publish. Online co-training captures target features, performs distributed drafter updates, and publishes successful weights at rollout-safe points. Standalone and online workflows share training backends and checkpointing.
Scheduler guide · Legacy Bubble Time guide · V1 Bubble Time guide
Paper Table 1 compares Qwen3-8B + DSpark on DAPO-Math-17k using GRPO and vLLM. All speedups use the synchronous baseline without speculative decoding on the same platform. End-to-end (E2E) step time includes adaptation costs and excludes checkpoint I/O and validation. Asynchronous rollout time measures exposed generation wait.
Async Train+Freeze reaches 1.50× GPU and 1.58× NPU E2E step speedup in these single runs, combining asynchronous execution, speculative decoding, and online adaptation.
Paper Table 2 compares average acceptance length (tokens per verification round) after three epochs of standalone drafter training under matched conditions.
Across the five benchmarks, the absolute difference is at most 0.08 tokens per verification round on GPU and 0.05 on NPU.
See the evaluation guide for the experiment curves and Bubble Time comparison.
| Platform | Rollout runtime and examples | Support status |
|---|---|---|
| NVIDIA GPU (CUDA) | vLLM DSpark example; SGLang for supported drafters | Available in this repository |
| Huawei Ascend NPU | vLLM-Ascend DSpark example | Available in this repository |
| AMD Instinct MI355X (ROCm) | DFlash with SGLang or vLLM, and DSpark with vLLM | End-to-end runs reported in PR #83 |
See runtime compatibility for supported drafter and engine combinations.
For packaged installs, the release workflow builds a wheel and a source distribution and uploads them to GitHub Releases. Follow the installation guide to set up a compatible upstream verl checkout and rollout runtime.
- Install SpeCo and upstream verl, then check runtime compatibility.
- Prepare the target model, a compatible drafter checkpoint, and the training and validation datasets. Set their paths in the launch script. Co-training setup
- For a first run on NVIDIA GPUs, use
examples/run_qwen3-8b_drafter_dspark_vllm.sh. - For other modes or update policies, see V1 examples, Hard Sampling and Freeze, Legacy Bubble Time, and V1 Bubble Time.
For Ascend, use examples/run_qwen3-8b_drafter_dspark_vllm_npu.sh. See hardware smoke tests for the CI cases.
| Training method | Qwen3-8B vLLM examples | Availability |
|---|---|---|
| Draft-OPD | DFlash · DSpark | v0.2.1 |
| Verification-Aware Training | DFlash · DSpark | v0.2.1 |
| SpecOPD | DSpark on Ascend with synchronous V1 and vLLM MRV2 | main after v0.2.1 |
SpecOPD distills from full drafter proposals during online co-training.
Train a DSpark drafter against a fixed target model for deployment or to
initialize online co-training. Start with examples/run_qwen3-8b_drafter_dspark_separate_training.sh.
The standalone training guide
covers target model setup, streaming features, and reusing saved hidden states.
Support for inputs with tool definitions and custom served model names is
available on main after v0.2.1.
- GLM-5.3 on Ascend covers response generation, hidden-state serving, and DSpark training.
- DeepSeek-V4-Flash on Ascend provides an offline DSpark training example.
Advanced usage:
Support varies by drafter, engine, and hardware; P-EAGLE currently supports training only. For V1 and native MRV2 deployments, follow the verl 0.9 and runtime requirements in the detailed guide.
| Goal | Workflow | Start here |
|---|---|---|
| Accelerate generation-heavy RL, such as long-reasoning GRPO | Adapt the drafter alongside the actor and evaluate generation savings against adaptation costs | Co-training quickstart |
| Address declining fixed-drafter acceptance | Train from current or replayed features with hard-sample mixing and freeze/resume control | Scheduler guide |
| Use early-finishing workers in synchronous rollout | Run part of the configured optimizer quota through Bubble Time | Bubble Time guide |
| Add online adaptation to asynchronous RL | Coordinate feature capture, updates, and publication with V1 execution modes | V1 support |
| Build a deployable drafter for a fixed target | Decouple feature generation and optimization, or reuse saved features, then deploy on a compatible engine | Standalone training |
| Integrate drafter algorithms or study scheduling | Reuse training infrastructure while implementing algorithm-specific models, feature alignment, objectives, or scheduling policies | Scheduling and extension |
The reported speedups are for the paper's DSpark, Qwen3-8B, GRPO, and vLLM configuration. Check runtime compatibility and measure E2E gains for new setups.
- [2026/11] v0.2.1 released.
- Draft-OPD and Verification-Aware Training (VAT) add training objectives for DFlash and DSpark. Draft-OPD and VAT examples
- Standalone training adds DSpark examples for GLM-5.3 and DeepSeek-V4-Flash and supports training from saved raw hidden states. Standalone examples
- Synchronous V1 Bubble Time runs drafter optimizer steps during rollout-idle windows on verl 0.9 with vLLM. V1 Bubble Time guide
- [2026/11] v0.2.0 released: V1 synchronous/asynchronous DSpark co-training, Bubble Time, acceptance-guided freezing and hard sampling, standalone training, and expanded runtime integration.
- [2026/08] v0.1.0 released: end-to-end DSpark support, decoupled feature collection/training, and more drafter backends.
- [2026/06] v0.1.0-pre pre-released: speculative drafter collection, training, and hot-updates on verl.
Join the verl-SpeCo Feishu or WeChat group to discuss setup and training.
| Feishu | |
|---|---|
![]() |
![]() |
Before contributing, follow AGENTS.md, including duplicate-work checks and test reporting. See the usage guide for test commands.
Built on verl, vLLM, SGLang, and vLLM-Ascend.




