/ Модель

Характеристики

Контекст
1 048 576 токенов
Параметры
1,8 млрд
Лицензия
Своя лицензия
Архитектура
kimi_k2 · dense
Базовая модель
Kimi-K3
Библиотека
transformers
Опубликована
9 сен 2026

kimi-k3-eagle3.1-mla

Генерация текстаТекст → текст3 профессии

Вспомогательная модель EAGLE-3.1 для ускорения генерации Kimi-K3 посредством speculative decoding.

454скачиваний за 30 дней2лайкавеса обновлены9 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

kimi-k3-eagle3.1-mla — вспомогательная модель чернового предсказания EAGLE-3.1 от lightseekorg для ускорения генерации Kimi-K3 методом speculative decoding. Это дообученный чекпойнт архитектуры Eagle3DeepseekV2ForCausalLM размером 1,8 млрд параметров с Multi-Latent Attention; он предсказывает токены-кандидаты, которые основная модель проверяет, и сам по себе не предназначен для обычного диалога. В README описано обучение TorchSpec с Anchored EAGLE-3 и нормализацией скрытых состояний; MLA уменьшает нагрузку на KV-кэш и согласуется с архитектурой целевой модели.

Модель рассчитана на ускорение обслуживания запросов Kimi-K3, включая диалоговые, математические, программные и длинноконтекстные сценарии. Для указанной конфигурации в README приведены результаты принятия токенов и пропускной способности на конкретном оборудовании; выигрыш зависит от нагрузки, настроек декодирования, точности целевой модели и корректной конфигурации захвата вспомогательных состояний. Совместимое обслуживание описано для TokenSpeed и vLLM от версии 0.20.0, требуется NVIDIA GPU с CUDA 12.0 или новее. Лицензия в метаданных обозначена как other; конкретные условия следует сверять с карточкой репозитория.

Сценарии применения

  • ускорение генерации ответов Kimi-K3 в чате
  • ускорение генерации кода на Kimi-K3
  • ускорение математических рассуждений Kimi-K3
  • снижение задержки декодирования при длинном контексте Kimi-K3
  • повышение пропускной способности сервера Kimi-K3 при обслуживании запросов

Ограничения

Это вспомогательный драфтер для Kimi-K3, а не самостоятельная диалоговая модель; ускорение зависит от целевой модели, оборудования и параметров обслуживания. Для соответствия обучению требуется корректно настроить индексы вспомогательных слоёв и режим aux capture.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

kimi-k3-eagle3.1-mla

Model Overview

kimi-k3-eagle3.1-mla is an EAGLE-3.1 MTP draft model with MLA (Multi-Latent Attention) for accelerating inference of Kimi-K3, trained with TorchSpec — an online speculative decoding training framework that runs FSDP training and inference concurrently. If you find this draft model useful, please give our project TorchSpec a star on GitHub.

It is the final checkpoint of a completed one-epoch run, continued from lightseekorg/kimi-k3-eagle3-mla.

Why an MLA (Multi-Latent Attention) Draft Model

Compared with an MHA draft model, the MLA variant is a better fit for Kimi-K3 deployment:

  • Uses less KV cache, which reduces serving memory pressure.
  • Matches Kimi-K3's MLA architecture, so it fits more naturally into the inference engine's KV-cache handling under different serving scenarios such as PD-Disaggregation.

What EAGLE-3.1 Adds Over EAGLE-3

EAGLE-3.1 applies the normalization scheme introduced in Attention Drift: What Autoregressive Speculative Decoding Models Learn: a post-norm on the drafter's hidden states, and a per-hidden-state RMSNorm applied to each captured target hidden state before fusion.

Both address the same failure mode. An EAGLE-style drafter's hidden state magnitude grows monotonically with the depth of the speculation chain, so the drafter starts behaving like another stack of target layers rather than a standalone predictor. As magnitude grows, attention drifts off the prompt and onto the tokens the drafter has just generated. Constraining that growth gives three practical improvements:

  • Higher acceptance. More tokens accepted per verification step across ordinary workloads — chat, math, and code.
  • Out-of-distribution resilience. The gain is largest exactly where EAGLE-3 drafters are weakest. The paper reports up to 2x acceptance under template perturbation, where a drafter trained on one chat template meets another.
  • Slower acceptance decay. Acceptance falls off far more gently as the draft chain deepens and as context grows, rather than collapsing at depth. This is what makes long-context serving hold up.

Performance

Acceptance Length

The primary metric is accept_length — the average number of tokens accepted per speculation step at topk=1, num_steps=3, num_draft_tokens=4. Higher is better; the ceiling for this configuration is 4.

Measured against a BF16 Kimi-K3 target on GB200 (TP=16, 4 nodes) served with TokenSpeed, at temperature=1.0, top_p=0.95, reasoning effort max. Acceptance is attributed per request from the scheduler log, so N is the number of requests measured.

CategoryBenchmarkNAcc Len
DialogueMTBench1602.834
ChineseCEval13462.486
MultilingualSPEED-Bench multilingual802.986
MathGSM8K13193.571
MathMATH5005003.151
MathAIME 2026302.262
CodeHumanEval1643.326
CodeSPEED-Bench coding893.101
RAGSPEED-Bench rag913.050
QASPEED-Bench qa802.739
WritingSPEED-Bench writing842.447

The acceptance table published for kimi-k3-eagle3-mla was measured on an NVFP4 target on GB300 at TP=8. Target precision, hardware and TP degree all move accept_length, so the two tables should not be read as a controlled A/B.

Throughput

Speculation on versus off, same build, same hardware, same allocation, run uncontended on a mixed multi-turn workload with max_tokens=32768. Output token throughput in tokens/s.

ConcurrencyEAGLE-3.1 tok/sNo speculation tok/sSpeedupITL (ms) spec / no-spec
1206.696.32.15x4.62 / 10.08
2333.7174.71.91x5.34 / 10.66
4566.6310.21.83x6.36 / 11.80
161263.5838.21.51x11.65 / 16.99

Measured accept_length on this workload was 2.66 and was flat across all four concurrency levels. As with any speculative decoder the gain is largest at low concurrency, where decode is memory-bandwidth bound and there is spare compute available to verify draft tokens.

Training

Trained with TorchSpec using Anchored EAGLE-3, which supervises the drafter from anchor positions sampled across the sequence instead of only from the tail. This exposes the drafter to a much wider spread of context lengths and chain depths per sample, and is a large part of why acceptance holds up at long context.

Targetmoonshotai/Kimi-K3 (mxfp4, 93 layers)
Aux layers2, 46, 90 (one-based)
ObjectiveLK^lambda (lk_eta=3.0); forward KL for the first 1000 steps
Anchored EAGLE-3512 anchors/sample, max_gap=0
Sequence length46000
OptimizerAdamW, peak LR 2e-5, cosine to 0, 1% warmup
Epochs1 (218,109 steps, 51.0 h on 20x GB300)
Draft vocab163840 (unpruned)

Quick Start

Requirements

Launch Server (TokenSpeed)

This is the configuration the numbers above were measured on.

python3 -m tokenspeed.cli serve /models/Kimi-K3 \
  --served-model-name moonshotai/Kimi-K3 \
  --attn-tp-size 16 --moe-tp-size 16 --mm-encoder-tp-mode data \
  --max-model-len 80000 --max-num-seqs 16 \
  --gpu-memory-utilization 0.92 --trust-remote-code \
  --attention-backend tokenspeed_mla --kda-backend cutedsl_kda \
  --moe-backend flashinfer_trtllm --kv-cache-dtype fp8_e4m3 \
  --speculative-algorithm EAGLE3 \
  --speculative-draft-model-path /models/eagle3_1 \
  --speculative-num-steps 3 --speculative-eagle-topk 1 \
  --speculative-num-draft-tokens 4 \
  --speculative-draft-model-quantization unquant \
  --sampling-backend flashinfer \
  --drafter-attention-backend tokenspeed_mla \
  --max-cudagraph-capture-size 16 --cudagraph-capture-sizes 1 2 4 8 16 \
  --host 0.0.0.0 --port 8000

/models/Kimi-K3 is the target checkpoint and /models/eagle3_1 is this draft; point both at your local paths.

--sampling-backend flashinfer keeps rejection sampling faithful to the requested temperature / top_p, which is required to reproduce the acceptance numbers above.

Launch Server (vLLM)

vllm serve moonshotai/Kimi-K3 \
    --tensor-parallel-size 16 \
    --speculative-config '{"model": "lightseekorg/kimi-k3-eagle3.1-mla", "method": "eagle3", "num_speculative_tokens": 3}' \
    --trust-remote-code

Launch Server (SGLang)

sglang serve \
  --model-path moonshotai/Kimi-K3 \
  --tp 16 \
  --trust-remote-code \
  --reasoning-parser kimi_k2 \
  --tool-call-parser kimi_k2 \
  --speculative-algorithm EAGLE3 \
  --speculative-num-steps 3 \
  --speculative-eagle-topk 1 \
  --speculative-num-draft-tokens 4 \
  --speculative-draft-model-path lightseekorg/kimi-k3-eagle3.1-mla

Serving Notes

Layer indexing. eagle_aux_hidden_state_layer_ids is [2, 46, 90], the one-based convention that both vLLM and TokenSpeed expect. An SGLang-native loader wants [1, 45, 89] instead. Getting this wrong does not error — it silently costs roughly 0.35 accept_length.

Aux capture mode. Trained against vLLM's prefix_only aux capture (VLLM_KIMI_K3_AUX_ATTN_RES_STREAM=0). Builds that default that flag on tap the AttnRes mixture instead, which is a different feature stream. Serve with VLLM_KIMI_K3_AUX_ATTN_RES_STREAM=0 to match training.

Citation

@misc{torchspec2026,
  title={TorchSpec: An Online Speculative Decoding Training Framework},
  url={https://github.com/lightseekorg/TorchSpec},
  year={2026}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Архитектура kimi_k2 неизвестна transformers в образе рантайма.

Класс архитектуры
Eagle3DeepseekV2ForCausalLM
Ревизия весов
8a27d4d

0 моделей