EV1-3M-Base is a 2,963,917-parameter decoder-only language model, pretrained from scratch. It was trained on about 4.18B tokens on a single laptop GPU (RTX 3050, 6 GB).
All scores are zero-shot, fp32, on the full test or validation sets.
eval_results.json.| Benchmark | acc_norm | acc |
|---|---|---|
| HellaSwag | 27.44 ±0.45 | 27.03 |
| ARC-Easy | 31.90 ±0.96 | 32.58 |
| ARC-Challenge | 21.76 ±1.21 | 18.09 |
| PIQA | 54.62 ±1.16 | 55.55 |
| ArithMark-3 | – | 52.20 ±1.58 |
The Open SLM Leaderboard Intelligence Index is 10.55 with PIQA acc_norm, or 11.06 with PIQA acc.
| Parameter | Value |
|---|---|
| Type | Decoder-only transformer (custom code, trust_remote_code=True) |
| Layers | 6 |
| Hidden size | 192 |
| Attention heads | 4 |
| MLP | ReLU², hidden 560 |
| Extras | QK-norm, value residual, U-Net skip connections, logit softcap 15 |
| Position | RoPE (base 10,000), context 1,024 |
| Vocabulary | 4,096 BPE tokens, digits split one per token |
| Embeddings | Tied |
| Parameters | 2,963,917 (786,432 embedding + 2,177,485 other) |
Optimizer: Muon for matrices, AdamW for embeddings and scalars.
Stages (all trained by us from random initialization; no merging, no distillation):
Data:
| Source | License |
|---|---|
| FineWeb-Edu | ODC-By 1.0 |
| Cosmopedia (wikihow, openstax, stanford, web_samples_v1) | Apache-2.0 |
| TinyStories | CDLA-Sharing-1.0 |
| Wikipedia introductions | CC-BY-SA-3.0 / GFDL |
| nvidia/OpenMathInstruct-2 (stage 2) | CC-BY-4.0 |
| microsoft/orca-math-word-problems-200k (stage 2) | MIT |
| deepmind/math_dataset (stage 2) | Apache-2.0 (generator repository) |
| Project-generated arithmetic | Ours |
Synthetic arithmetic:
Question/answer text:
Decontamination:
The model computes log-likelihoods. It is meant for scoring and evaluation; generate() is not implemented.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("erengz/EV1-3M-Base")
model = AutoModelForCausalLM.from_pretrained("erengz/EV1-3M-Base", trust_remote_code=True).eval()
def loglik(context, continuation):
ctx = tok(context).input_ids
full = tok(context + continuation).input_ids
with torch.no_grad():
lp = model(input_ids=torch.tensor([full[:-1]])).logits.log_softmax(-1)[0]
return sum(lp[i - 1, full[i]].item() for i in range(len(ctx), len(full)))
ctx = "Mia had 23 apples. Mia got 19 more apples. Now Mia had"
print(max([" 41 apples.", " 42 apples.", " 43 apples."], key=lambda c: loglik(ctx, c)))
For benchmarks, use lm-evaluation-harness:
lm_eval --model hf --model_args pretrained=erengz/EV1-3M-Base,trust_remote_code=True,dtype=float32 \
--tasks hellaswag,arc_easy,arc_challenge,piqa --num_fewshot 0