MATERIA v2 — 1B, trained from scratch
A 1.03B decoder built from scratch with three non-standard pieces: a parallel SNN branch, a diagonal SSM branch, and HSAQ, an adaptive activation-sparsity transform. Not a fine-tune, not a distillation: trained on raw text from random initialisation.
Architecture (measured from the weights)
| Component | Value |
|---|---|
| parameters | 1.03B |
| dim | 2560 |
| blocks | 28 |
| heads / kv-heads | 16 / 4 |
| MLP (SwiGLU) hidden | 2048 |
| SNN channels | 448 |
| positions | RoPE (no learned table, no fixed ceiling) |
| SNN threshold | calibrated by quantile every 50 steps |
Training
- 344M tokens over 30000 optimizer steps
- density: 0.33 tokens per parameter
- data:
HuggingFaceFW/fineweb-edu(streaming) - context: 1024, micro-batch 6, effective batch 12
- selected by held-out loss, not training loss
For scale: Chinchilla suggests ~20 tokens per parameter. This model saw a small fraction of that, so treat it as a working prototype of the architecture rather than a capable language model.
Results
| Benchmark | Accuracy | Chance |
|---|---|---|
| ARC-easy (log-likelihood over 4 choices) | 0.345 (69/200) | 0.250 |
| GSM8K (greedy, exact match on final number) | 0.000 (0/30) | ~0 |
GSM8K used 30 items, not the full test set: MATERIA has no KV cache, so generation is quadratic in tokens. That sample is an indicator, not a publishable benchmark figure.
Held-out loss
Best validation cross-entropy: 3.8603 (wikitext-style held-out slice, 4 fixed batches). Lower is better; the run went from 4.74 to 3.86 without a single regression over 17 measurements.
Install and run
Everything needed is in this repository; no other repo is required.
huggingface-cli download MethodWhite/materia-v2-1b --local-dir materia-v2-1b
cd materia-v2-1b
pip install -r requirements.txt
python load_model.py "The capital of France is"
| File | Purpose |
|---|---|
model.safetensors |
bf16 weights, 2.32 GB |
config.json |
geometry, enough to rebuild the model |
modeling_materia.py |
the architecture, self-contained |
load_model.py |
loader + greedy generation |
requirements.txt |
torch, safetensors, transformers |
eval-materia.json |
every benchmark item, answer and correctness |
materia-loss.csv |
training and held-out loss per step |
training.log |
the full training log |
*.png |
accuracy vs chance, GSM8K stability, training curve |
Usage
from load_model import load, generate
model, tok, cfg = load() # geometry comes from config.json
print(generate(model, tok, 'The capital of France is', max_new_tokens=16))
Training code lives in
MethodWhite/materia-core;
loading does not need it.
Limits
- Trained on a token budget one to two orders of magnitude below what the architecture needs; benchmark numbers reflect that, not the design.
- GSM8K sample is small (see above) and the model has no KV cache.
- No instruction tuning, no chat template, no safety tuning.
- The SNN branch was measured contributing at inference (rate ~0.45-0.55 against a 0.47 target); no ablation of its effect on quality is claimed.
Reproduce
train_materia_fast.py --steps 30000 --batch 6 --accum 2 --seq 1024 \
--dim 2560 --blocks 28 --cycles 1 --hidden 2048 --snn-dim 448 \
--lr 6e-5 --val-batches 4 --val-every 1000 \
--dataset HuggingFaceFW/fineweb-edu --out run/
Card generated from the run artifacts on 2026-11-29.
- Downloads last month
- 235