[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110558":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":14,"forks30d":14,"starsTrendScore":18,"compositeScore":19,"rankGlobal":8,"rankLanguage":8,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":8,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":14,"starSnapshotCount":14,"syncStatus":15,"lastSyncTime":29,"discoverSource":30},110558,"DSpine","Tencent\u002FDSpine","Tencent",null,"Python",280,19,1,6,0,2,22,201,9,65.9,"Other",false,"main",true,[],"2026-11-23 19:11:36","2026-11-23 16:47:54","\u003Ch1 align=\"center\">DSpine\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\n  \u003Cb>Draft in Parallel, Condition Through Depth: Adjacent Causal Injection for Speculative Decoding\u003C\u002Fb>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fabs\u002F2609.36173\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FarXiv-2609.36173-b31b1b.svg\" alt=\"arXiv\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fdspine-project.github.io\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FProject-Page-blue\" alt=\"Project Page\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fcollections\u002Ftencent\u002Fdspine\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%A4%97%20Hugging%20Face-Collection-yellow\" alt=\"Hugging Face Collection\">\u003C\u002Fa>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-Apache%202.0-green\" alt=\"License: Apache 2.0\">\n\u003C\u002Fp>\n\nDSpine is a parallel drafter for speculative decoding. Each draft layer passes the\npredicted feature of each position to the next, allowing token dependencies to be\nmodeled during parallel drafting.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"asset\u002Foverview.png\" alt=\"DSpine overview\" width=\"90%\">\n\u003C\u002Fp>\n\n## News\n\n- **[2026-11]** Added support for Qwen3.8-27B inference.\n- **[2026-11]** 🍎 Added support for Apple Silicon inference via mlx-lm and SGLang-MLX.\n- **[2026-10]** 🚀 [Training code](https:\u002F\u002Fgithub.com\u002Fsgl-project\u002FSpecForge\u002Fpull\u002F1038) released in SpecForge.\n- **[2026-10]** 🤗 [Qwen3-8B draft weights](https:\u002F\u002Fhuggingface.co\u002Ftencent\u002FQwen3-8B-DSpine-b16) released.\n- **[2026-10]** 💻 [Inference code](https:\u002F\u002Fgithub.com\u002Ftencent\u002Fdspine) released.\n- **[2026-10]** 📄 [Paper](https:\u002F\u002Farxiv.org\u002Fabs\u002F2609.36173) released on arXiv.\n\n## Supported Models\n\n| Target model | Draft model |\n| --- | --- |\n| `Qwen3-8B` | [tencent\u002FQwen3-8B-DSpine-b16](https:\u002F\u002Fhuggingface.co\u002Ftencent\u002FQwen3-8B-DSpine-b16) |\n| `Qwen3.8-27B` | [tencent\u002FQwen3.8-27B-DSpine-b16](https:\u002F\u002Fhuggingface.co\u002Ftencent\u002FQwen3.8-27B-DSpine-b16) |\n\n## Results\n\n### Qwen3-8B\n\nAcceptance length on Qwen3-8B. DSpine, DSpark and DFlash2 are trained on the same\n[Open-PerfectBlend](https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002Fmlabonne\u002Fopen-perfectblend) data with the same training budget.\n\n| Temp. | Method | GSM8K | MATH-500 | HumanEval | MBPP | LCB | MT-Bench | Arena-Hard | Avg. |\n|---|---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|\n| T = 0 | DFlash\u003Csup>†\u003C\u002Fsup> | 6.32 | 7.99 | 6.56 | 6.29 | 6.11 | 4.26 | 3.91 | 5.92 |\n|  | Domino\u003Csup>†\u003C\u002Fsup> | 9.68 | 9.40 | 7.23 | 6.89 | 6.40 | 5.12 | 4.65 | 7.05 |\n|  | DSpark | 10.00 | 9.88 | 7.78 | 7.35 | 6.81 | 5.39 | 4.87 | 7.44 |\n|  | DFlash2 | 10.06 | 10.04 | 7.99 | 7.33 | 6.96 | 5.40 | 5.06 | 7.55 |\n|  | **DSpine** | **10.55** | **10.30** | **8.27** | **7.66** | **7.25** | **5.63** | **5.13** | **7.83** |\n| T = 1 | DFlash\u003Csup>†\u003C\u002Fsup> | 5.75 | 6.51 | 5.52 | 5.23 | 4.53 | 3.77 | 3.25 | 4.94 |\n|  | Domino\u003Csup>†\u003C\u002Fsup> | 8.01 | 7.13 | 5.89 | 5.56 | 4.59 | 4.36 | 3.61 | 5.59 |\n|  | DSpark | 9.33 | 8.64 | 6.91 | 6.66 | 5.78 | 4.99 | 4.25 | 6.65 |\n|  | DFlash2 | 9.07 | 8.42 | 6.99 | 6.43 | 5.67 | 4.90 | 4.25 | 6.53 |\n|  | **DSpine** | **9.83** | **8.99** | **7.39** | **6.97** | **6.11** | **5.09** | **4.49** | **6.98** |\n\n\u003Csup>†\u003C\u002Fsup> Official checkpoints: [z-lab\u002FQwen3-8B-DFlash-b16](https:\u002F\u002Fhuggingface.co\u002Fz-lab\u002FQwen3-8B-DFlash-b16) and\n[Huang2020\u002FQwen3-8B-Domino-b16](https:\u002F\u002Fhuggingface.co\u002FHuang2020\u002FQwen3-8B-Domino-b16).\n\n### Qwen3.8-27B\n\nWe evaluate Qwen3.8-27B on [WorkBuddy Bench](https:\u002F\u002Fgithub.com\u002FTencent\u002Fworkbuddy-bench) using trajectories collected in the CodeBuddy sandbox. See the [model card](https:\u002F\u002Fhuggingface.co\u002Ftencent\u002FQwen3.8-27B-DSpine-b16) for acceptance length and throughput results.\n\n## Installation\n\nThe SGLang plugin uses SGLang 0.5.22 and requires Python 3.11+ and CUDA.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Ftencent\u002Fdspine.git\ncd dspine\npython -m pip install -e .\n```\n\n## Usage\n\n### Qwen3-8B\n\n```bash\nsglang serve \\\n  --model-path Qwen\u002FQwen3-8B \\\n  --speculative-algorithm DSPINE \\\n  --speculative-draft-model-path tencent\u002FQwen3-8B-DSpine-b16 \\\n  --speculative-num-draft-tokens 16 \\\n  --tp-size 1 \\\n  --dtype bfloat16 \\\n  --attention-backend fa3 \\\n  --page-size 1 \\\n  --mem-fraction-static 0.65 \\\n  --context-length 8192 \\\n  --max-running-requests 64 \\\n  --cuda-graph-bs-decode 1 2 4 8 16 32 64 \\\n  --trust-remote-code\n```\n\n### Qwen3.8-27B\n\nThe implementation uses [DSpark](https:\u002F\u002Fgithub.com\u002Fdeepseek-ai\u002FDeepSpec)-based\ndynamic verification and [ReplaySSM](https:\u002F\u002Fgithub.com\u002FJohnny-Liou\u002FReplaySSM).\n\nRun [SPS tuning](docs\u002Fsps_tuning.md) to tune dynamic verification for your workload.\nAdd `--speculative-dspark-sps-table-path sps.json` to the command below to load the result.\n\n```bash\nsglang serve \\\n  --model-path \u002Fpath\u002Fto\u002FQwen3.8-27B \\\n  --speculative-algorithm DSPINE \\\n  --speculative-draft-model-path tencent\u002FQwen3.8-27B-DSpine-b16 \\\n  --speculative-num-draft-tokens 16 \\\n  --tp-size 1 \\\n  --dtype bfloat16 \\\n  --attention-backend fa3 \\\n  --speculative-draft-attention-backend fa3 \\\n  --linear-attn-backend triton \\\n  --enable-linear-replayssm-spec \\\n  --mamba-ssm-dtype float32 \\\n  --mamba-radix-cache-strategy extra_buffer \\\n  --max-mamba-cache-size 64 \\\n  --mem-fraction-static 0.80 \\\n  --context-length 131072 \\\n  --max-running-requests 8 \\\n  --cuda-graph-max-bs-decode 8 \\\n  --min-free-slots-delay 1 \\\n  --sampling-backend flashinfer \\\n  --reasoning-parser qwen3 \\\n  --tool-call-parser qwen3_coder \\\n  --trust-remote-code\n```\n\n## Apple Silicon (MLX)\n\nInstall with `pip install -e dspine_mlx`. See the [MLX guide](dspine_mlx\u002FREADME.md)\nfor mlx-lm and SGLang-MLX usage.\n\n## Training\n\nSee the [SpecForge training guide](https:\u002F\u002Fgithub.com\u002Fsgl-project\u002FSpecForge\u002Fblob\u002Fmain\u002Fdocs\u002Fsections\u002Fbasic_usage\u002Ftraining.md)\nand [DSpine online training example](https:\u002F\u002Fgithub.com\u002Fsgl-project\u002FSpecForge\u002Fpull\u002F1038).\n\n## Roadmap\n\n- [x] Training code for DSpine\n- [x] Qwen3.8-27B inference\n- [x] [Qwen3.8-27B draft weight release](https:\u002F\u002Fhuggingface.co\u002Ftencent\u002FQwen3.8-27B-DSpine-b16)\n\n## Acknowledgements\n\nWe thank [DFlash](https:\u002F\u002Fgithub.com\u002Fz-lab\u002Fdflash), [SpecForge](https:\u002F\u002Fgithub.com\u002Fsgl-project\u002FSpecForge),\n[SGLang](https:\u002F\u002Fgithub.com\u002Fsgl-project\u002Fsglang) and [FlashInfer](https:\u002F\u002Fgithub.com\u002Fflashinfer-ai\u002Fflashinfer)\nfor their open-source work.\n\n## Citation\n\n```bibtex\n@article{zhang2026dspine,\n  title   = {Draft in Parallel, Condition Through Depth: Adjacent Causal Injection for Speculative Decoding},\n  author  = {Zhang, Haohui and Chen, Keyu and Sun, Haocheng and Gu, Weibo and Qiao, Ruizhi and Sun, Xing and Jiang, Bo},\n  journal = {arXiv preprint arXiv:2609.36173},\n  year    = {2026}\n}\n```\n\n## License\n\n[Apache 2.0](https:\u002F\u002Fgithub.com\u002FTencent\u002FDSpine\u002Fblob\u002Fmain\u002FLicense.txt)\n","DSpine 是一个面向大语言模型推理加速的并行推测解码（speculative decoding）草案生成器。它通过深度方向的相邻因果注入机制，在并行 drafting 过程中建模位置间 token 依赖关系，提升草案质量与接受率；支持 Qwen3 系列模型（如 Qwen3-8B、Qwen3.8-27B），兼容 Hugging Face 生态及 Apple Silicon 平台（via mlx-lm\u002FSGLang-MLX）。适用于需要低延迟、高吞吐 LLM 推理的服务场景，如实时对话系统、API 后端与边缘部署。","2026-11-24 04:39:18","CREATED_QUERY"]