You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Access to Kimi-K3.1-Pro-DSpark is granted after manual review by the repository owner.

Log in or Sign Up to review the conditions and access this model content.

Kimi K3.1 Pro DSpark (ATOM / ROCm)

DSpark draft model for speculative decoding with Kimi K3.1 Pro, served through ATOM's dspark method on 8 x AMD Instinct MI355X. It has the same layout and parameter count as Inferact/Kimi-K3.1-Pro-DSpark-preview.

Component Value
Layers 5 dense decoder layers, 2.69B parameters (BF16)
Attention MLA in every layer, over the full context; 96 heads, q_lora_rank 1536, kv_lora_rank 512
Hidden size / FFN 7168 / 14336
Input hidden states from 5 target layers (75, 79, 83, 87, 91)
Draft block 7 tokens per forward pass, causal within the block
Heads Markov head (rank 512), confidence head; embedding and LM head shared with the target
Context 1,048,576 tokens (YaRN, factor 32 over 32,768)

Full-context MLA

Every draft layer attends to the whole context with MLA and caches only the compressed KV: 576 values per token per layer (512 latent + 64 RoPE), 5.6 KiB per token for all 5 layers in BF16, or 720 MiB for a 128K-token sequence.

Evaluation settings

  • Server: ATOM c63be4e4 (branch kimi-k31) with the patch in atom_patches/, TP=8, DCP=1 on 8 x MI355X, 7 speculative tokens, probabilistic draft sampling with block verification.
  • Client: chat completions, temperature 1.0, top_p 0.95, thinking on, concurrency 1, full test set per benchmark, with the reference card's sets and max tokens.
  • Metric: acceptance length = 1 + accepted draft tokens / target forward steps (counts the bonus token). Pooled is the same ratio over all prompts of the 9 sets.
  • Reference: Inferact/Kimi-K3.1-Pro-DSpark at e4e6e626, run by us with the same settings. ATOM has no path for its architecture (GQA with a 2,048-token sliding window), so we ported it and checked it step by step against vLLM's implementation (hidden-state cosine 0.99992, top-1 agreement 98.9%); its pooled result on ATOM, 3.789, equals our vLLM run of it. The numbers on its own card come from vLLM on NVIDIA GPUs (pooled 3.864).

Serving with ATOM

The draft needs ATOM c63be4e4 (branch kimi-k31) with the patch in atom_patches/ applied:

cd /path/to/ATOM
git checkout c63be4e4
git apply /path/to/this/repo/atom_patches/atom-c63be4e4-kimi-k31-pro-dspark.patch

The patch makes attention causal within the draft block, adds probabilistic drafting with block verification as in vLLM, and fixes two issues in MLA decode. The three environment variables in the command below turn on everything except the causal attention, which follows full_attention_causal in config.json. Keep DCP at 1.

docker run -d --name atom-k31pro-dspark \
  --device=/dev/kfd --device=/dev/dri --group-add video --group-add render \
  --security-opt seccomp=unconfined --cap-add=SYS_PTRACE \
  --shm-size 64g --ulimit memlock=-1:-1 --network host \
  -e AITER_LOG_LEVEL=WARNING -e ATOM_MONO_ENABLE=0 -e AITER_CUSTOM_AR_MAX_SIZE=134217728 \
  -e K31_DSPARK_BLK_META=page1 -e DSPARK_DIAG_MLA_PAD_HEADS=96 -e K31_PROB_VERIFY=1 \
  -v /path/to/Kimi-K3.1-Pro:/target:ro -v /path/to/this/repo:/draft:ro \
  <atom-image-with-patched-c63be4e4> \
  python -m atom.entrypoints.openai_server \
    --model /target --served-model-name Kimi-K3.1-Pro \
    --method dspark --draft-model /draft --num-speculative-tokens 7 \
    --level 0 --cudagraph-mode FULL \
    --kv_cache_dtype bf16 --index-cache-dtype fp8 -tp 8 --trust-remote-code \
    --max-model-len 131072 --max-num-seqs 8 --max-num-batched-tokens 10240 \
    --gpu-memory-utilization 0.85 --block-size 128 \
    --no-enable_prefix_caching --server-port 8000

Per-position draft acceptance

Positions 1–7 refer to the proposed draft tokens. Rates are percentages of verification steps.

Benchmark Prompts Max tokens Acceptance length Reference (ATOM) vs reference Position 1 Position 2 Position 3 Position 4 Position 5 Position 6 Position 7
GSM8K 1,319 1,024 5.347 5.396 99.1% 91% 80% 70% 61% 52% 44% 37%
HumanEval 164 1,024 4.633 4.745 97.6% 85% 70% 57% 47% 40% 34% 30%
MBPP 974 1,024 4.079 4.166 97.9% 82% 64% 50% 39% 30% 24% 19%
MATH-500 500 2,048 4.385 4.442 98.7% 84% 68% 55% 44% 35% 28% 23%
SPEED-Bench low entropy 302 1,536 3.873 3.690 105.0% 79% 60% 46% 35% 27% 22% 18%
SPEED-Bench coding 80 4,096 3.776 4.160 90.8% 78% 59% 44% 34% 26% 20% 17%
MT-Bench 80 1,024 3.180 3.382 94.0% 74% 51% 34% 23% 16% 11% 8%
SWE-bench Pro 642 2,048 3.444 3.280 105.0% 76% 56% 40% 28% 20% 14% 11%
AIME 2026 30 4,096 3.422 3.466 98.8% 76% 56% 40% 28% 20% 14% 10%
Pooled β€” β€” 3.856 3.789 101.8% 79% 61% 46% 35% 27% 21% 16%

SWE-bench Pro and SPEED-Bench low entropy make up 57.8% of the pooled forward steps.

SpeedBench acceptance

Multi-turn, every turn sent. The reference column is the SpeedBench table on its card (vLLM); on the 9 sets above, that card is 2.0% higher than our run of the same draft.

Category Conversations Model calls Max tokens Acceptance length Draft acceptance Reference card (vLLM) vs card
Coding 80 89 4,096 3.7373 39.10% 4.0957 91.2%
Humanities 80 88 4,096 3.0111 28.73% 3.0354 99.2%
Math 80 98 4,096 3.2514 32.16% 3.2025 101.5%
QA 80 80 4,096 3.3030 32.90% 3.4800 94.9%
RAG 80 105 4,096 4.1173 44.53% 4.2890 96.0%
Reasoning 80 190 4,096 3.5010 35.73% 3.5954 97.4%
STEM 80 86 4,096 3.1838 31.20% 3.1874 99.9%
Writing 80 84 4,096 2.6808 24.01% 2.8243 94.9%
Multilingual 80 80 4,096 4.2722 46.75% 4.0903 104.4%
Summarization 80 80 4,096 4.0116 43.02% 4.1758 96.1%
Roleplay 80 158 4,096 2.8271 26.10% 3.0310 93.3%
Pooled 880 1,138 4,096 3.1818 31.17% 3.2690 97.3%

Long context acceptance

Benchmark Prompts Prompt tokens Max tokens Acceptance length Reference (ATOM) vs reference Position 1 Position 2 Position 3 Position 4 Position 5 Position 6 Position 7
AA-LCR 100 95K mean 1,024 4.085 4.075 100.2% 82% 65% 51% 39% 30% 23% 18%
BEAM 128K 400 97K–125K 2,048 3.286 3.485 94.3% 75% 54% 37% 25% 17% 12% 8%

Raw results with accepted-length histograms are in benchmarks/ (this-draft--*, reference-draft--*). Per-prompt entries keep token counts and a hash of the output, not the text.

Downloads last month
2
Safetensors
Model size
3B params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support