Lewi Surge Preview
An open mixture-of-experts language model for programming, trained from scratch by one person on free and donated compute. The current model is Lewi Surge Preview.
- Parameters
- 3.45B total
- Active per token
- ~0.38B
- Experts
- 128, top-6 + 1 shared
- Context in training
- 128k tokens
Releases
Every published checkpoint, newest first. Each one lists how it was trained and what it scores, measured the same way we report everything else.
- LatestOpen on Hugging Face
Lewi Surge Preview 3B
PoliteChainsaw/Lewi-Surge-Preview-3B
- Released
- October 16, 2026
- Type
- Chat
- Parameters
- 3.45B
- Active
- ~0.38B
- Context
- up to 128k (PoSE)
TrainingMid-training on 0.5B tokens, then full chat fine-tuning on 0.52B tokens, fp32 on TPU v6e. Thinking mode off.
- HumanEval (chat-tuned)29.3%
- MBPP19.0%
- HellaSwag42.7%
- ARC-Easy54.2%
- Open on Hugging Face
Lewi Surge Preview 3B Chat-Early
PoliteChainsaw/Lewi-Surge-Preview-3B-Chat-Early
- Released
- October 13, 2026
- Type
- Chat (early)
- Parameters
- 3.45B
- Active
- ~0.38B
- Context
- 16k
TrainingLess than a quarter of the planned chat fine-tuning; stopped when the compute ran out.
- Open on Hugging Face
Lewi Surge Preview 3B Base
PoliteChainsaw/Lewi-Surge-Preview-3B-Base
- Released
- October 13, 2026
- Type
- Base
- Parameters
- 3.45B
- Active
- ~0.38B
- Context
- 16k
TrainingPretrained from scratch on 7.3B tokens, grown from 1.4B, then code-focused annealing.
- HumanEval25.0%
- MBPP29.6%
- HellaSwag43.4%
- ARC-C27.4%
Results
Measured on the base model before and after code-focused annealing. No fine-tuning tricks, no cherry-picked prompts: greedy decoding, standard prompts, local runs.
| Benchmark | Metric | Before | After annealing |
|---|---|---|---|
| HumanEval | pass@1 | 18.9% | 25.0% |
| MBPP (sanitized) | pass@1 | 23.7% | 29.6% |
| HellaSwag | acc_norm | 41.9% | 43.4% |
| ARC-Challenge | acc_norm | 26.5% | 27.4% |
Knowledge-heavy benchmarks (ARC) barely move at this size; that is what the next stages and the larger model are for.
Against small open base models
Same script for every model: base checkpoints, 0-shot, greedy, HumanEval with the better of two standard prompt formats. Lewi is a work in progress; the others are final releases trained on 40 to 3,200 times more data.
| Model | Training tokens | HumanEval | MBPP |
|---|---|---|---|
| Qwen2.5-0.5BAlibaba | 18T | 29.9% | 37.7% |
| Qwen2.5-Coder-0.5BAlibaba | 23.5T | 27.4% | 48.2% |
| Lewi Surge Preview BasePolite Chainsaw | 7.3B | 25.0% | 29.6% |
| SmolLM2-1.7BHugging Face | 11T | 23.2% | 44.0% |
| Granite 3.0 1B-A400MIBM | 10T | 22.6% | 36.2% |
| Pythia-1.4BEleutherAI | 300B | 5.5% | 7.0% |
Architecture
Sixteen layers in four identical blocks. Three layers of Gated DeltaNet linear attention keep a fixed-size memory; every fourth layer is full attention. Each layer routes tokens to 6 of 128 small experts plus one shared expert.
- Gated DeltaNet (linear attention)
- Full attention
- Experts used by one token
Why long context is cheap here
Only four of sixteen layers keep a key-value cache, with two KV heads each. That is about 4 KB per token: a 128k-token context fits in roughly half a gigabyte, so long documents and whole repositories run on consumer hardware.
Training log
- Stage 1A 1.4B model trained from scratch on English, code, math and Ukrainian.
- GrowthGrown to 3.45B: twice the experts, one more block of layers, without restarting.
- Code-first pretraining1.6B tokens of curated code, instructions and textbooks on an H200.
- Annealing1.4B tokens, more than half of them conversations, with the learning rate decayed to zero.
- Fine-tuningChat behaviour on 16k-token conversations (the Chat-Early checkpoint).
- Long contextContext extended to 128k on long documents, with the sequence split across TPU chips.
- Mid-training and SFT0.5B tokens of reasoning, math and code, then 0.52B tokens of chat fine-tuning, in fp32 on Google Cloud TPU v6e.
- NowLewi Surge Preview 3B is released. The next model is being built on memarch, our own architecture.
What comes next
Reasoning and tools
Fine-tuning with step-by-step reasoning traces and tool calls.
Learning from tests
Reinforcement learning where code only earns reward when its unit tests pass.
memarch 12B-A2B
The next model on our own architecture: light layers on every word, heavy experts only on surprising words, independent memory, the Instinct optimizer. ~12B parameters, ~2B active, trained on our ~320B-token corpus.
Lewi Surge 7B-A1B
On hold since October 27, 2026: not enough credits for a standard transformer recipe. May return as a fine-tune of the preview.
Open by default
Every Lewi release is on Hugging Face under Apache-2.0, with its limitations written down. The training code is on GitHub. Ukrainian is one of Lewi's first-class languages.