/ Модель

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

Контекст
2 048 токенов
Параметры
47,6 млн
Лицензия
Apache 2.0
Архитектура
kilat · MoE
Библиотека
transformers
Опубликована
15 ноя 2026

kilat-small-150M

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

Компактная базовая языковая модель Kilat для продолжения английского текста и последующего дообучения.

653скачиваний за 30 дней0лайковвеса обновлены30 ноя 2026

Бенчмарки

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

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

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

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

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

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

Kilat SMALL 10B — компактная базовая языковая модель семейства Kilat, разработанная AiRukua и обученная с нуля на 10 млрд токенов набора FineWeb-Edu. Она предназначена для продолжения текста и как основа для последующего дообучения, адаптации к предметной области или выравнивания с помощью SFT и DPO; готовым чат-ассистентом модель не является.

Модель имеет архитектуру Kilat v2.0: чередует рекуррентное линейное внимание с экспоненциальным затуханием и сжатое латентное внимание MLA, а в блоках FFN использует разреженную смесь экспертов DeepSeekMoE с восемью маршрутизируемыми экспертами, двумя активными на токен, и общим экспертом. В карточке указано 47,6 млн параметров, контекст — 2048 токенов; README приводит приблизительную оценку 151 млн параметров и около 66,5 млн активных на токен. Модель принимает текст и генерирует текст; данные обучения и языковой тег указывают на английский язык.

Компактный размер и разреженная маршрутизация рассчитаны на эффективную генерацию и дообучение. При генерации модель склонна к повторам и несвязным продолжениям при неподходящих настройках выборки; она может выдавать недостоверные или предвзятые утверждения. Для диалогового применения требуется дополнительное выравнивание. Лицензия — Apache-2.0.

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

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

Ограничения

Модель не настроена для чата и может повторяться или выдавать несвязный текст при неподходящих настройках генерации. Её выводы могут быть недостоверными или предвзятыми; для разговорного применения требуется дообучение и проверка ответов.

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

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

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

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

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

Открыть на Hugging Face

⚡ 150M - Kilat SMALL 10B

A 151M-Parameter Sub-Quadratic Hybrid Language Model with Latent MLA & DeepSeekMoE
Pre-trained from scratch on 10 Billion tokens of FineWeb-Edu

License: Apache 2.0 Architecture: Kilat v2.0 Tokens: 10B FineWeb-Edu Parameters: 151.5M Total / 66.5M Active


📌 Executive Summary

Kilat SMALL 10B is a compact, high-efficiency Base Pre-Trained Language Model built on the Kilat v2.0 Macro-Synergy architecture. It combines:

  1. Sub-Quadratic Global Exponential Decay (Recurrent Linear Attention) for linear-time sequence processing and constant memory state.
  2. Latent Multi-Head Latent Attention (MLA) for compressed key-value representations (inspired by DeepSeek-V2).
  3. Fine-Grained Mixture of Experts (DeepSeekMoE) featuring 8 routed experts (Top-2 active) and 1 dedicated shared expert.

Trained from scratch on 10 Billion tokens of high-quality educational web text (FineWeb-Edu), Kilat SMALL 10B delivers dense-model capacity (~151.5M parameters) while consuming compute equivalent to only ~66.5M active parameters per token.

⚠️ Important Notice on Base Models:
This checkpoint is a raw pre-trained foundation model, NOT an instruction-tuned or chat assistant. It does not use conversational templates (<|user|>, <|assistant|>). It is designed for continuous text completion and serves as the ideal foundation for Supervised Fine-Tuning (SFT), Direct Preference Optimization (DPO), or Domain Adaptation.


💡 Crucial Guide: Getting Clean Generation from a Base Model

Because this is a compact 150M base language model, generation output quality heavily depends on sampling settings:

❌ What Causes "Jelly" or Repetitive Generation?

  • Pure Greedy Search (do_sample=False, repetition_penalty=1.0):
    Without repetition penalties, compact models fall into recursive n-gram loops (e.g., "The process of photosynthesis is the process by which...").
  • High Unclipped Temperature (temperature >= 1.0, top_p=1.0):
    Without top-k/top-p truncation, small models sample low-probability tokens from the long tail, resulting in hallucinated syntax.
  • Prompting Like a Chatbot ("Question: ... Answer:" or "User: ... Assistant:"):
    Base models have never seen conversational chat markers and will hallucinate dialog transcripts.

✅ Optimal Generation Hyperparameters

For coherent, factually grounded educational completions, always use:

  • temperature: 0.70 – 0.75 (optimal balance between creativity and determinism)
  • top_p (Nucleus): 0.90 – 0.92
  • top_k: 50 (clips the erratic vocabulary tail)
  • repetition_penalty: 1.15 – 1.20 (eliminates looping phrases)
  • no_repeat_ngram_size: 3 (strictly forbids 3-gram repetitions)

🚀 Quickstart & Inference

1. Python Code Snippet (Transformers)

Ensure you have transformers >= 4.45.0 installed:

pip install --upgrade transformers torch accelerate
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "AiRukua/150M-Kilat-SMALL-10B"

print(f"📥 Loading model from {model_id}...")
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    trust_remote_code=True,
    dtype=torch.bfloat16 if torch.cuda.is_available() else torch.float32,
    device_map="auto" if torch.cuda.is_available() else None,
)

# Base models excel at continuing factual, scientific, and educational sentences
prompts = [
    "Photosynthesis is the process by which green plants",
    "In computer science, an algorithm is defined as",
    "The fundamental difference between DNA and RNA is",
]

for prompt in prompts:
    inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
    
    outputs = model.generate(
        **inputs,
        max_new_tokens=50,
        do_sample=True,
        temperature=0.75,
        top_p=0.92,
        top_k=50,
        repetition_penalty=1.18,
        no_repeat_ngram_size=3,
        use_cache=True,
        eos_token_id=tokenizer.eos_token_id,
        pad_token_id=tokenizer.eos_token_id,
    )
    
    generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
    print("\n" + "=" * 50)
    print(f"PROMPT : {prompt}")
    print(f"OUTPUT : {generated_text}")

2. Sample Output Comparisons

PromptNaive Greedy (rep_penalty=1.0)Optimized Base Settings (Recommended)
Photosynthesis is the process by which green plants"...convert sunlight into carbohydrates. The process is called photosynthesis. The process of photosynthesis is the process by which plants..." (Endless loop)"convert sunlight into energy. The plant can use this energy to produce food, especially carbohydrates, as well as photosynthesis. However, while there are many other methods for converting light energy into chemical energy..."
The fundamental difference between DNA and RNA is"...that DNA is DNA and RNA is RNA. The difference between DNA and RNA is that DNA is...""that the cell has to get information from itself, or its own genome. This means you have to create an mRNA copy of your gene in order to make a protein molecule that can be translated into proteins..."

🏛️ Architecture Specifications

Kilat implements a Macro-Synergy Hybrid Topology that decouples long-range semantic retention from local causal recall:

[Input Tokens] ──> [Word Embeddings (wte)] ──> [12x Macro-Synergy Blocks] ──> [RMSNorm (ln_f)] ──> [LM Head]
                                                      │
               ┌──────────────────────────────────────┴──────────────────────────────────────┐
               │                                                                             │
      [Odd Layers: Latent MLA]                                                     [Even Layers: Global Decay]
  Compressed Low-Rank Key/Value Projection                                    Recurrent Linear-Time State Matrix
  Decoupled RoPE Rotary Position Embeddings                                   Analytical Exponential Horizon σ(λ)
               │                                                                             │
               └──────────────────────────────────────┬──────────────────────────────────────┘
                                                      │
                                           [DeepSeekMoE Feed-Forward]
                                      1 Shared Expert (Global Knowledge)
                                    8 Routed Experts (Sparse Specialization)
                                          Top-2 Activation + Aux Loss

Hyperparameter Breakdown

HyperparameterValueDescription
Total Parameters ($\Phi_{\text{total}}$)151,466,340 (~151.5M)Full weights stored in memory / safetensors
Active Parameters ($\Phi_{\text{active}}$)66,531,684 (~66.5M)Effective parameters computed per token
Number of Layers ($L$)126 Global Decay layers + 6 Latent MLA layers
Hidden Dimension ($d_{\text{model}}$)384Internal representation width
Attention Heads ($H$)6Head dimension $d_{\text{head}} = 64$
Latent MLA Dimension ($d_{\text{latent}}$)964x compression ratio for KV state
Decoupled RoPE Dimension32Rotary position embeddings on queries & decoupled keys
Total Routed Experts ($N_r$)8Fine-grained SwiGLU expert feed-forward networks
Active Routed Experts ($K_r$)2 (Top-2)Sparse softmax-gated expert selection
Shared Experts ($N_s$)1Always-active dense feed-forward trunk
Expert Intermediate Size1,024$8/3 \times d_{\text{model}}$ SwiGLU expansion
Context Length ($S_{\text{max}}$)2,048Pre-training sequence window
Vocabulary Size ($V$)50,257Byte-level BPE tokenizer (GPT-2 vocabulary)
Weight TyingTruelm_head.weight tied to wte.weight

🔬 Mathematical Formulation

1. Global Exponential Decay Path (Even Layers)

The recurrent decay state $S_t \in \mathbb{R}^{H \times d_k \times d_v}$ evolves causally: $$S_t = \lambda \odot S_{t-1} + K_t^T V_t, \quad \lambda = \sigma(\text{log_lambda}) \in (0, 1)$$ $$O_t = \frac{Q_t S_t}{\sum_{\tau=1}^t \lambda^{t-\tau} + \epsilon}$$ This operates in $\mathcal{O}(S)$ linear time and constant $\mathcal{O}(1)$ memory per step during autoregressive decoding.

2. Compressed Latent Attention MLA (Odd Layers)

Queries, keys, and values are compressed into low-rank latent spaces: $$c_t^{KV} = W^{DKV} h_t \in \mathbb{R}^{d_{\text{latent}}}, \quad K_t^C = W^{UK} c_t^{KV}, \quad V_t = W^{UV} c_t^{KV}$$ Queries and keys receive decoupled rotary position embeddings ($K_t^R = \text{RoPE}(W^{KR} h_t)$), allowing long-range position awareness without storing full-rank KV states.

3. DeepSeekMoE Sparse Routing

For input token representation $x$: $$\text{MoE}(x) = \sum_{s=1}^{N_s} \text{FFN}s^{\text{shared}}(x) + \sum{i \in \text{Top-}K} g_i(x) \text{FFN}i^{\text{routed}}(x)$$ where gate weights $g_i(x) = \operatorname{Softmax}(\text{Top-}K(x W_g))$ are balanced across training steps with load-balancing auxiliary loss $\mathcal{L}{\text{aux}} = \alpha \cdot N_r \sum_{i=1}^{N_r} f_i P_i$.


📊 Pre-Training Details & Telemetry

  • Hardware: 1× NVIDIA RTX PRO 6000 Blackwell Server Edition (96 GB, BF16 Tensor Core)
  • Dataset: FineWeb-Edu (10B tokens, single-pass, zero duplication)
  • Optimizer: Fused CUDA AdamW ($\beta_1 = 0.9, \beta_2 = 0.95, \epsilon = 10^{-8}$, weight decay = $0.05$)
  • Schedule: Warmup-Stable-Decay (WSDLR, peak LR $4.0 \times 10^{-4}$, 16,954 steps)
  • Batch Size: 589,824 tokens/step (micro_batch=96 × grad_accum=3 = 288, $S = 2048$)
  • Precision & Throughput: Mixed Precision BF16, sustained ~320,000 tok/s (~8.7 hours total)
  • Final Telemetry: Train/Eval Loss ~3.0 (PPL ~20), MoE normalized router entropy ~1.00 (uniform expert utilization), and natural multi-timescale Global Decay specialization ($\lambda_{\min} \approx 0.54$ for local syntax, $\lambda_{\max} \approx 0.97$ for long-horizon context)

Kilat 150M MoE 10B Training Telemetry Overview


🎯 Recommended Downstream Roadmap

  1. Supervised Fine-Tuning (SFT):
    Use trl.SFTTrainer or Kilat's native kilat sft CLI with datasets like Open-Orca, SlimOrca, or Indonesian instruction corpora (indo-instruct).
  2. Continued Pretraining (CPT):
    Expand multilingual knowledge by continuing pre-training on Indonesian Wikipedia, formal Indonesian news, and domain-specific code/STEM data.
  3. PEFT (LoRA):
    Use get_kilat_lora_config(r=16, target_modules=["gate", "up", "down", "q_proj", "v_proj_global"]) to adapt the model with $< 1%$ additional parameters.

⚠️ Limitations & Ethical Considerations

  • Knowledge Boundary: Knowledge is strictly derived from web crawls up to the pre-training cutoff.
  • Base Model Behavior: May produce offensive, biased, or untruthful continuations if prompted with leading or controversial prefixes.
  • Hallucinations: Like all compact language models, factual accuracy must be verified by external retrieval or human review.
  • Not a Chatbot: Must be aligned via SFT/RLHF before deployment in conversational customer-facing environments.

📜 License & Citation

This model is licensed under the Apache License 2.0.

If you use Kilat or this model in your research or applications, please cite:

@misc{kilat2026,
  author = {AiRukua},
  title = {Kilat: Kernelized Lightweight Attention Transformer with Hybrid Macro-Synergy and Sparse MoE},
  year = {2026},
  publisher = {Hugging Face},
  journal = {Hugging Face Hub repository},
  howpublished = {\url{https://huggingface.co/AiRukua/150M-Kilat-SMALL-10B}}
}

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

Класс архитектуры
KilatForCausalLM
Ревизия весов
7721dfc

0 моделей