--- license: apache-2.0 language: - en pipeline_tag: text-generation library_name: transformers tags: - kestrel - aquila - small-language-model - base - pretrained - hybrid - gated-deltanet-2 - attnres - tngram - custom_code --- Kestrel Preview **Kestrel Preview** is a small, experimental 98.6M-parameter English base language model trained from scratch in a single 8-hour run on one GPU. It is our first working checkpoint from the Kestrel Architecture, built to test whether modern recurrent-hybrid architectures, tensorized n-gram memory, and token-superposition training can make small models meaningfully more sample-efficient before scaling up. It is still very early. With only 7.85B raw tokens seen (3.15B forward positions), Kestrel Preview is not meant to compete with heavily trained models yet, it is a transparent baseline and a starting point for what comes next. --- ## Results Evaluated zero-shot on the [Open SLM Leaderboard](https://huggingface.co/spaces/AxiomicLabs/Open_SLM_Leaderboard) suite (`lm-eval` 0.4.13, `acc_norm` on ARC/HellaSwag/PIQA; official continuation log-likelihood scoring on ArithMark-3): | Benchmark | Kestrel Preview (98.6M, 7.85B raw) | |---|---:| | **ARC-Easy** | 52.53% | | **ARC-Challenge** | 26.11% | | **HellaSwag** | 34.50% | | **PIQA** | 63.76% | | **ArithMark-3** | 41.00% | | **Intelligence Index** | **20.04** | For context, crossing an Intelligence Index of 20 typically takes 15B–50B tokens for standard 100M–150M Transformers on the same leaderboard. We are encouraged by the efficiency, while mindful that commonsense fluency (especially HellaSwag and PIQA) still has a long way to go with more training tokens. --- ## Architecture & Training Kestrel Preview is a 24-layer hybrid model built in plain PyTorch for portable inference (`trust_remote_code=True`, runs on CUDA, Apple Silicon, or CPU without custom kernels): - **Parameters:** 98,631,096 (tied input/output embeddings) - **Backbone:** 24 layers, hidden size 576, 3:1 **Gated DeltaNet-2** (18 layers, 4 heads × 128) to **Grouped-Query Attention** (6 layers, 9 Q / 3 KV heads × 64, RoPE, QK-norm, value residual mixing) - **Feed-forward:** SwiGLU (hidden size 1,088) - **Residuals:** Block Attention Residuals (8 blocks of 3 layers) - **Memory:** TN-gram tensorized n-gram embeddings (orders 2, 3, 4, and 5; CP rank 224; inserted before layers 2 and 18) - **Context & Tokenizer:** 2,048 tokens; reuses the 4,100-token (4,160-padded) Apache-2.0 tokenizer from [MinimaLabs/KLM-1.6](https://huggingface.co/MinimaLabs/KLM-1.6) - **Training Recipe:** 12,000 steps (128 × 2,048) on 1× RTX PRO 6000 Blackwell (~8.1 hours): 1. **Superposition phase (steps 0–2,999):** Token-Superposition Training (`s = 7`, ~5.50B raw tokens of ClimbMix) with TN-gram bypassed. 2. **Next-token & `1−√t` decay phase (steps 3,000–11,999):** ~2.35B tokens from a balanced, strictly decontaminated mix (ClimbMix, FinePhrase, Cosmopedia v2, FineWeb-Edu, Dolmino Q&A & flashcards, WikiHow, Pretrain-Behaviors, FineMath-4+, OpenMathInstruct-2, Dolmino math, SciQ/QASC train splits, and procedural arithmetic), with TN-gram ramped smoothly over 763 steps. 3. **Optimization:** Row-equilibrated Muon (`MuonEq-R`, lr `0.01`, decoupled weight decay `0.05`) for 2-D linear weights and AdamW (`lr 3e-3`) for embeddings, norms, convolutions, and memory factors. ## Acknowledgements & License Kestrel Preview builds directly on open research and open weights from the community — especially [MinimaLabs/KLM-1.6](https://huggingface.co/MinimaLabs/KLM-1.6) (Apache-2.0) for its tokenizer and architectural inspiration, alongside Gated DeltaNet-2 (`arXiv:2605.22791`), Attention Residuals (`arXiv:2603.15031`), TN-gram (`arXiv:2606.08347`), Token-Superposition Training (`arXiv:2605.06546`), and MuonEq (`arXiv:2603.28254`). Released under the **Apache-2.0** license.