/ Модель

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

Контекст
4 096 токенов
Параметры
476 млн
Лицензия
Своя лицензия
Архитектура
kimi_linear · MoE
Опубликована
6 авг 2026

Kimi-K3-for-All

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

Небольшая текстовая модель Kimi K3, обученная с нуля на английской Википедии для локальных запусков и экспериментов с архитектурой MoE.

152скачиваний за 30 дней2лайкавеса обновлены7 авг 2026

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

ArneshBanerjee создал небольшую текстовую модель Kimi K3 с нуля, используя исходный код архитектуры Moonshot AI и обучив её на английской Википедии. Это языковая модель с архитектурой Kimi Linear и смесью экспертов (MoE): в карточке указано 476,1 млн параметров, а README приводит для описанной конфигурации около 1,27 млрд параметров, из которых активно около 364 млн. Размеры расходятся, поэтому точное число параметров требует уточнения. Контекст составляет 4096 токенов.

Модель предназначена прежде всего для изучения и запуска архитектуры Kimi K3 на локальном оборудовании, а также для экспериментов с генерацией текста. Она обучена на одном проходе по англоязычной Википедии, без инструкционной настройки; в README указаны результаты perplexity 14,0 и HellaSwag 33,7% на выборке из 1000 примеров. Реализация текстовая: визуальная часть K3 исключена. README описывает отклонения от полной архитектуры, включая более высокую долю активируемых экспертов.

Факты модели ненадёжны, а отсутствие инструкционной настройки ограничивает диалоговое применение. README сообщает о проблеме работы в bf16 на Mac/MPS. Лицензия указана как other; README ссылается на лицензию Kimi K3 для архитектуры и кода, но точные условия следует сверить с файлом LICENSE репозитория.

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

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

Ограничения

Модель недообучена, обучалась только на англоязычной Википедии и не проходила инструкционную настройку, поэтому её факты ненадёжны и она не предназначена для качественного диалога. README также сообщает о проблеме bf16 на Mac/MPS; размер параметров в README и метаданных различается.

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

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

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

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

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

Открыть на Hugging Face

Kimi K3 for All

A small-scale Kimi-K3 trained from scratch on English Wikipedia, using Moonshot's original, unmodified K3 modeling code. The full 2.8T K3 is unrunnable locally; this is a faithful ~1.27B-parameter version (0.36B active) that runs on a laptop.

What this is: a real Kimi K3 — every structural switch that defines the architecture (lower-bounded KDA decay, Attention Residuals, Gated MLA, Stable LatentMoE, SiTU-GLU, Per-Head Muon) is preserved exactly, only the scale is reduced.

What this is not: a competitive general-purpose model. It is trained on one epoch of Wikipedia only (~18% of a Chinchilla-optimal token budget for this size), has no instruction tuning, and its facts are unreliable. Judge it on architectural fidelity and runnability, not benchmark scores.

Code: https://github.com/ArneshBanerjee/Kimi-K3-for-All


Architecture

Kimi-K3 (official)this model
total params2.8T1.270B
activated params104B0.364B (ex-embed)
layers9324
attention69 KDA + 24 Gated MLA18 KDA + 6 Gated MLA
hidden size71681024
attention heads9614
experts89640
experts / token164
shared experts22
latent MoE dim3584512
expert FFN dim3072448
vocab163,840163,840

Ratios preserved under scaling

ratioK3this model
latent / hidden0.50000.5000
expert FFN / hidden0.42860.4375
attention width / hidden1.71431.7500
KDA : MLA layers2.8753.000
final layer is MLAyesyes

K3's per-head geometry is kept exactly — MLA qk_nope=128 / qk_rope=64 / v=128 and KDA head_dim=128 are unchanged from the released config. Only the head count scales (96 → 14).

Matched verbatim from the released config.json: gate_lower_bound=-5.0, attn_res_block_size=12, mla_use_output_gate=true, mla_use_nope=true, latent_moe_use_norm=true, hidden_act="situ" (betas 4.0 / 25.0), sigmoid noaux_tc routing, moe_renormalize=true, first_k_dense_replace=1, rms_norm_eps=1e-5, tie_word_embeddings=false.


Training

Completed 2026-08-05: 15,600 steps, 4.601B tokens = 1.00 epoch of English Wikipedia (wikimedia/wikipedia, 20231101.en, CC BY-SA 3.0 / GFDL) — every token seen exactly once.

final validation perplexity14.0 (CE 2.6417), best 13.3
measured val perplexity (benchmark)13.89 (CE 2.6313, 102,400 held-out tokens)
HellaSwag zero-shot (1000 ex.)33.7% (random = 25.0%)

33.7% against a 25% floor shows the model has learned real commonsense structure, not just memorized surface patterns — but it is far short of what a compute-optimal model this size would reach. That gap is tokens, not architecture: 4.6B trained vs. a Chinchilla-optimal ~25B for this size (~18%).

Known deviations from K3

  1. Quantile Balancing → DeepSeek-style sign update. K3 balances experts with Quantile Balancing, a training-side procedure absent from the released inference code and described only qualitatively. We use the aux-loss-free sign update on e_score_correction_bias instead — it random-walks rather than converging.
  2. Expert sparsity: 10% vs. K3's 1.8%. K3 activates 16/896 experts; with only 40 experts the closest workable setting is 4/40. 1.8% would require top-1 of 56+, too coarse to route at this scale. This is the single largest deviation, and it is forced by expert count, not chosen.
  3. Text-only. K3's MoonViT-V2 vision tower (401M) is dropped.
  4. bf16, not MXFP4/MXFP8. Trained in bf16 rather than the released quantized format.
  5. MTP enabled (num_nextn_predict_layers=1); the released config ships 0. The mtp.safetensors head is included but optional at inference.
  6. SDPA, not FlashAttention-2. Numerically equivalent, different kernel.

Usage

pip install torch "transformers==4.57.1" safetensors tiktoken blobfile einops numpy
git clone https://github.com/ArneshBanerjee/Kimi-K3-for-All
cd Kimi-K3-for-All
huggingface-cli download ArneshBanerjee/Kimi-K3-for-All --local-dir checkpoints/hf \
    --include "model.safetensors" "mtp.safetensors" "config.json"

python inference/generate.py -p "The history of computing began"

inference/generate.py picks its own backend: real fla Triton kernels on CUDA, and a pure-PyTorch KDA fallback (fla_shim.py) on Mac/CPU where Triton is unavailable. Both were verified to produce identical text from the same checkpoint.

Measured performance:

peak VRAM, inference (H100, bf16)3.50 GiB (2048-token prefill + KV cache)
decode, batch 1 (H100, bf16)14.7 tok/s
decode, batch 16 (H100, bf16)135.5 tok/s
decode, batch 1 (Apple Silicon, MPS, fp32, pure-PyTorch KDA fallback)1.7 tok/s

The Mac number uses the fla_shim pure-PyTorch KDA path (no Triton), float32. It has a known issue: bf16 currently fails on MPS due to a dtype mismatch in fla_shim's depthwise conv (F.conv1d gets mismatched input/weight dtypes) — use float32 there for now.

Example greedy output:

"World War II began in" → September 1939, and the first aircraft arrived in the

"The capital of France is" → in the 15th arrondissone of Paris. The

Fluent, syntactically solid, and — as expected from an undertrained base model — not always factually reliable.


Snapshots

snapshots/step_* contains 12 intermediate checkpoints from steps 1,656 → 15,440 across the training run — the trajectory of how the model's capabilities emerged, not just the final state. Each is model.safetensors + config.json in the same format as the top-level checkpoint.


Limitations

  • Undertrained. ~18% of a Chinchilla-optimal token budget. Facts are unreliable.
  • Wikipedia only. No code, conversation, or diverse web text.
  • Expert sparsity 10% vs. K3's 1.8%, forced by the smaller expert count. Analysis shows 0 dead experts of 40 and content-dependent routing that sharpens with depth, but the fine-grained-MoE advantage K3 relies on doesn't fully survive the scale-down (see the GitHub README's MoE analysis).
  • No instruction tuning. This is a base model.
  • Mac/MPS bf16 is currently broken (see above); float32 works at ~1.7 tok/s.

Credits and licensing

The architecture and kimi_original/ code are Moonshot AI's, redistributed unmodified under the Kimi K3 License (see LICENSE; the MLA / MoE gating portions are adapted from DeepSeek-V3 under Apache 2.0). All credit for the architecture belongs to Moonshot AI — this project only shrank it and rebuilt what was needed to train it from scratch.

Training data: wikimedia/wikipedia (20231101.en), CC BY-SA 3.0 / GFDL.

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Ревизия весов
5762a05

0 моделей