Run this model with HF Jobs
Run Emergent-Knowledge/kestrel on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Emergent-Knowledge/kestrel. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Emergent-Knowledge/kestrel on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Emergent-Knowledge/kestrel. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Emergent-Knowledge/kestrel. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Emergent-Knowledge/kestrel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Emergent-Knowledge/kestrel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Emergent-Knowledge/kestrel", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Emergent-Knowledge/kestrel", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Emergent-Knowledge/kestrel with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Emergent-Knowledge/kestrel" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Emergent-Knowledge/kestrel", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Emergent-Knowledge/kestrel
- SGLang
How to use Emergent-Knowledge/kestrel with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Emergent-Knowledge/kestrel" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Emergent-Knowledge/kestrel", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Emergent-Knowledge/kestrel" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Emergent-Knowledge/kestrel", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Emergent-Knowledge/kestrel with Docker Model Runner:
docker model run hf.co/Emergent-Knowledge/kestrel
Kestrel is a 98.6M-parameter English base language model trained from scratch on 110.0B raw tokens (43.89B forward positions) on a single GPU. It is the first full-scale checkpoint following Kestrel Preview, bringing together a recurrent-hybrid backbone, tensorized n-gram memory, and decaying token-superposition training to see how far careful pretraining can carry a sub-100M model.
At under 100M parameters, it is still a small base model meant for research, fine-tuning experiments, and exploring sample-efficient architectures. Training at this scale has taught us a lot about where recurrent hybrids shine β particularly on structured reasoning and retrieval-heavy questions β and where commonsense world knowledge still takes patience and tokens to earn.
Results
Evaluated zero-shot (limit=None) on the Open SLM Leaderboard suite (lm-eval, acc_norm on ARC, HellaSwag, and PIQA; official continuation log-likelihood scoring on ArithMark-3):
| Benchmark | Kestrel (98.6M, 110.0B raw) |
|---|---|
| ARC-Easy | 56.57% |
| ARC-Challenge | 28.75% |
| HellaSwag | 42.00% |
| PIQA | 66.54% |
| ArithMark-3 | 41.80% |
| Intelligence Index (3-bench) | 26.43 |
| Intelligence Index (legacy AM-3 weighted) | 25.71 |
Held-out ArithMark-4 is omitted in local evaluation, so the 3-bench Intelligence Index averages normalized ARC, HellaSwag, and PIQA scores; held-out validation NLL loss sits at 1.987. Compared to our early 7.85B-token Kestrel Preview, scaling through the full 110B-token schedule lifts HellaSwag by +7.5 points and ARC-Easy by +4.0 points while keeping a small footprint that fits comfortably in memory anywhere.
Architecture & Training
Kestrel is a 24-layer hybrid model (KestrelForCausalLM) exported in plain PyTorch (trust_remote_code=True) so it runs without custom CUDA extensions on GPUs, Apple Silicon, or CPU.
- Parameters: 98,631,096 with tied input and output embeddings
- Backbone: 24 layers (hidden size 576), alternating 3:1 between Gated DeltaNet-2 (18 layers, 4 heads Γ 128) and Grouped-Query Attention (6 layers, 9 query / 3 key-value heads Γ 64, RoPE, QK-norm, and value residual mixing)
- Feed-forward: SwiGLU with intermediate size 1,088
- Residuals: Block Attention Residuals grouped in 8 blocks of 3 layers
- Memory: TN-gram tensorized n-gram embeddings across orders 2, 3, 4, and 5 (CP rank 224), inserted before layers 2 and 18
- Context and tokenizer: 2,048-token context window with a 4,100-token (4,160-padded) BPE tokenizer
Training ran for 142,011 steps on a single RTX PRO 6000 Blackwell GPU across two phases. First came 91,148 steps of Decaying Token-Superposition Training (90.0B raw tokens / 23.89B forward positions) over globally shuffled OptimalScale/ClimbMix, stepping bag size down smoothly from 7 to 2 in 15.0B-token stages with a 1,000-step linear warmup and TN-gram bypassed (tn_scale = 0.0). Second came a 50,863-step (20.0B token) standard next-token prediction and 1 β βt cooldown phase (192 Γ 2,048 batch) over an 18-source, 16-gram decontaminated mix spanning web text, textbooks, Q&A, math, science, and procedural arithmetic (OptimalScale/ClimbMix, IFM/TxT360-v2, openbmb/UltraX-Preview, HuggingFaceTB/smollm-corpus, HuggingFaceTB/cosmopedia, allenai/dolma3_dolmino_mix-100B-1025, nvidia/OpenMathInstruct-2, openbmb/UltraData-Math, IFM/Math-Reasoning, HuggingFaceTB/finemath, mlfoundations/dclm-baseline-1.0, allenai/sciq, and IFM/Pretrain-Behaviors), ramping TN-gram from 0.0 to 1.0 over the first 1,000 steps. Optimization used row-equilibrated Muon (MuonEq-R, peak lr 0.01, weight decay 0.05) on 2-D weights and AdamW (peak lr 3e-3) on embeddings, norms, convolutions, and memory factors.
Usage
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo_id = "Emergent-Knowledge/kestrel"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = AutoModelForCausalLM.from_pretrained(repo_id, trust_remote_code=True)
model.eval()
inputs = tokenizer("The kestrel is a small falcon", return_tensors="pt")
with torch.no_grad():
out = model.generate(**inputs, max_new_tokens=48, do_sample=True, temperature=0.7, top_p=0.9)
print(tokenizer.decode(out[0], skip_special_tokens=True))
Acknowledgements & License
Kestrel builds gratefully on open research from the community β including 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.
- Downloads last month
- -