Our research
Pushing the frontier for small models
Nenya is our open base model: a mixture-of-experts language model with 0.5B active parameters.
Nenya-2.5B-A0.5B
Nenya is a general purpose 0.5B active, 2.5B total parameter mixture-of-experts (MoE) base model. Nenya rivals Qwen3.5 2B on pretraining benchmarks with 500× lower training compute and 3.4× fewer active FLOPs/token.
- Total parameters
- 2.59B
- Active per token
- 553M
- Layers
- 32
- Context length
- 16,384 tokens
- Experts
- 120 routed, 6 per token, plus 2 shared
- Attention
- 23 GDN-2 + 9 MLA layers
- Vocabulary
- 100,278
- Modality
- Text
Run it
Nenya loads through transformers on any device. On a Mac, the Metal engine is the fastest way to run it.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
repo = "contrastivelabs/Nenya-2.5B-A0.5B-Base"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, dtype=torch.bfloat16).to(device)
inputs = tok("The mitochondrion is the organelle responsible for", return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=40) # samples: temperature 0.9, top-k 20 (the default)
print(tok.decode(out[0], skip_special_tokens=True))# pip install "nenya[cuda]" on NVIDIA GPUs, pip install "nenya" otherwise
import torch
import nenya # registers the model with transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
repo = "contrastivelabs/Nenya-2.5B-A0.5B-Base"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype=torch.bfloat16).to(device)# pip install "nenya[mac]"
import nenya
print(nenya.generate("The mitochondrion is the organelle responsible for", max_new_tokens=40))
print(nenya.generate("Question: What is the capital of Australia?\nAnswer:", max_new_tokens=8, temperature=0))Results
More accuracy per unit of compute
Nenya is compared with five open models of a similar class, on the same benchmarks and settings. All of it is reproducible from the model card.
Mean accuracy, 12 benchmarks (%)
| Model | mean accuracy | FLOPs per token | Active parameters | Training tokens |
|---|---|---|---|---|
| Nenya | 58.3 | 1.1B | 0.55B | 0.06T |
| Qwen3.5 0.8B | 52.8 | 1.5B | 0.75B | >10T (est.) |
| OLMo-2 1B | 61.1 | 2.6B | 1.28B | 4.05T |
| Qwen3.5 2B | 58.1 | 3.8B | 1.88B | >10T (est.) |
| Gemma 4 E2B | 64.8 | 4.6B | 2.30B | >10T (est.) |
| SmolLM3 3B | 64.9 | 6.2B | 3.08B | 11.2T |
| Model | Active | FLOPs / token | Mean accuracy | |
|---|---|---|---|---|
| Nenya | 0.55B | 1.1B | 58.3 | |
| Qwen3.5 0.8B | 0.75B | 1.5B | 52.8 | |
| OLMo-2 1B | 1.28B | 2.6B | 61.1 | |
| Qwen3.5 2B | 1.88B | 3.8B | 58.1 | |
| Gemma 4 E2B | 2.30B | 4.6B | 64.8 | |
| SmolLM3 3B | 3.08B | 6.2B | 64.9 | |
Mean accuracy on 12 pretraining benchmarks, scored with lm-eval. FLOPs per token is one forward pass: two per active parameter. Source: Nenya technical report.
On a laptop
Fast on the Mac you already have
- At 16K context
- 92.5 tok/s
- Peak memory at 1K
- 4.10 GB
- At 16K context
- 55.5 tok/s
- Peak memory at 1K
- 4.07 GB
Source: Nenya technical report, Table 4.
Speed as the context fills
A full 16K context costs about a quarter of the speed: the model keeps a fixed-size state for most of its layers, so there is little more to read as the text grows.
Tokens generated per second, Metal engine
| Tokens already in the context | M4 (tok/s) | M1 (tok/s) |
|---|---|---|
| Empty | 127.1 | 74.3 |
| 1K | 123.9 | 72.5 |
| 4K | 114.1 | 67.6 |
| 16K | 92.5 | 55.5 |
On a GPU server
And quick behind an API, through vLLM
Our engine for vLLM serves Nenya behind an OpenAI-compatible API. On one RTX 5090 a single request generates 620 tokens a second, about twice the speed of Qwen3.5 2B, and it slows by 14% with 16,000 tokens of context where Qwen3-0.6B slows by 40%.
One request, short context
Tokens a second · 128 tokens of context
- Nenya620
- Qwen3-0.6B618
- Qwen3.5 2B322
One request, long context
Tokens a second · 16,000 tokens of context
- Nenya531
- Qwen3-0.6B368
- Qwen3.5 2B311
256 requests at once
Tokens a second in total, generating
- Nenya20,503
- Qwen3-0.6B16,379
- Qwen3.5 2B16,928
Served: 256 chats at once
Tokens a second out · 1,024 in, 256 out
- Nenya10,001
- Qwen3-0.6B7,348
- Qwen3.5 2B8,036
Put this research to work on your task
Nenya 1 is this research, trained to call tools, extract structured data and classify text.