Paper: 2DSD: Two-Dimensional Speculative Decoding for Looped Language Models
Code: SqueezeAILab/2DSD
This is Nanbeige/Nanbeige4.2-3B (R = 2 loops) adapted to last-loop KV cache sharing with a lagged window W = 64. It is the shared-KV target for Nanbeige4.2-3B in 2DSD.
Run it with the last-loop KV sharing rule implemented in the 2DSD repository;
--model nanbeige4.2-3b loads this model with its drafter:
python scripts/generate.py --model nanbeige4.2-3b --prompt "What is the sum of the first 100 positive integers?"
Decoding is greedy by default. Add --temperature 0.6 --top-p 0.95 to sample. 2DSD verifies with the last
loop, so it keeps this model's greedy outputs and sampling distribution.
Apache-2.0, the license of the base model Nanbeige/Nanbeige4.2-3B, from which this
model is derived. The license text is in LICENSE.
@misc{kim2026twodsd,
title = {2DSD: Two-Dimensional Speculative Decoding for Looped Language Models},
author = {Kim, Minseo and Chavan, Arnav and Seo, Minhyuk and Hu, Yuezhou and Lee, Minjae and
Kang, Wonjun and Mahoney, Michael W. and Keutzer, Kurt and Hooper, Coleman and Gholami, Amir},
year = {2026},
url = {https://github.com/SqueezeAILab/2DSD}
}
model-00001-of-00002.safetensors 5.0 GBmodel-00002-of-00002.safetensors 3.4 GBNanbeige/Nanbeige4.2-3B