2DSD shared-KV target: Ouro-2.6B-Thinking (W = 64)
Paper: 2DSD: Two-Dimensional Speculative Decoding for Looped Language Models
Code: SqueezeAILab/2DSD
This is ByteDance/Ouro-2.6B-Thinking (R = 4 loops) adapted to last-loop KV cache sharing with a lagged window W = 64. It is the shared-KV target for Ouro-2.6B-Thinking in 2DSD.
- KV cache sharing. For committed tokens outside a local window of W = 64 tokens, queries at every loop depth read one shared last-loop KV cache. Inside the window, queries read their own loop's KV entries, so depth-concurrent queries share only committed entries. The first-loop first-layer KV cache is also kept. The prompt is prefilled once with per-loop attention.
- Adaptation. The base model was fully fine-tuned with two-pass self-distillation for one epoch on 128M tokens from OpenThoughts3 (6.7 hours on four H100 GPUs). The architecture, tokenizer and chat template are the same as in the base model.
Usage
Run it with the last-loop KV sharing rule implemented in the 2DSD repository;
--model ouro-2.6b-thinking loads this model with its drafter:
python scripts/generate.py --model ouro-2.6b-thinking --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.
License
Apache-2.0, the license of the base model ByteDance/Ouro-2.6B-Thinking, from which this
model is derived. The license text is in LICENSE.
Citation
@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}
}