Pyro PS-0.2.0 (100.7M) β 100% From-Scratch Rust LLM
Live CPU Demo: Try our chat-tuned release live at Pyleon/pyro-demo. Chat SFT checkpoint: Pyleon/pyro-ps-0.2.0-chat.
Pyro PS-0.2.0 is a 100.7M-parameter decoder-only language model trained 100% from random initialization using a completely custom Rust + CUDA training and inference engine β built from the ground up with zero PyTorch, zero Hugging Face Transformers training code, zero borrowed weights, and zero synthetic outputs from proprietary models.
- Trained on:
2.84Btokens of commercially clean, permissive-licensed data (FineWeb-Edu+FineMath 4+,ODC-By-1.0) in29.3 hourson free2 Γ Tesla T4GPUs. - Public Benchmark Result (
E17):41.57%6-task zero-shot average (acc_norm), beating bothGPT-2 124M(39.57%) andPythia-160M(39.53%, trained on105Γmore tokens) on 5 of 6 standard public benchmarks. - 4-Bit CPU Runtime (
Q4):56.7 MBweight footprint (7.1Γsmaller than FP32) with0.00%average accuracy drop across all 6 benchmarks (41.57%acc_norm) β streaming at102.8 tok/slive on a 2017 dual-core Intel Pentium G4560 CPU (no AVX/AVX2).
Note:
PS-0.2.0is a base (pretrained) model designed for text completion, scientific/math continuation, and benchmark verification. Supervised instruction-tuned chat checkpoints (PS-0.2.0-ChatandPS-0.5-Chat) are next in the release pipeline.
Verified Public Benchmarks (E17)
Evaluated zero-shot on 6 standard public benchmarks (500 items per task = 3,000 items total, identical canonical JSONL files and tokenizer-independent f64 byte-length-normalized acc_norm scoring matching lm-evaluation-harness):
| Model | Params | Train Tokens | 6-Task Avg (acc_norm) |
6-Task Avg (raw acc) |
OpenBookQA | ARC-Easy | ARC-Challenge | WinoGrande | HellaSwag | BoolQ |
|---|---|---|---|---|---|---|---|---|---|---|
| Random chance | β | β | 33.33% |
33.33% |
25.0% |
25.0% |
25.0% |
50.0% |
25.0% |
50.0% |
Pythia-160M-deduped |
162.3M |
~300B |
39.53% |
35.17% |
25.4% |
42.6% |
22.8% |
48.0% |
39.6% |
58.8% |
GPT-2 124M |
124.4M |
~10B |
39.57% |
35.80% |
25.8% |
41.0% |
20.8% |
53.2% |
40.0% |
56.6% |
Pyro PS-0.2.0 (int8, 101 MB) |
100.7M |
2.84B |
41.57% |
38.13% |
29.2% |
45.8% |
21.6% |
50.0% |
40.6% |
62.2% |
Pyro PS-0.2.0 (int4, 57 MB) |
100.7M |
2.84B |
41.57% |
38.53% |
28.4% |
45.6% |
22.0% |
50.4% |
40.2% |
62.8% |
SmolLM2-135M |
134.5M |
2,000B (2T) |
46.20% |
42.93% |
33.2% |
58.0% |
27.2% |
52.0% |
44.0% |
62.8% |
- Per-task standard error:
Β±1.7β2.2%(n = 500); 6-task macro average standard error:Β±0.85%. - 4-bit quantization retention audit (
500items,ARC-Easy+OpenBookQA):f3237.20%βint837.40%(100.5%,2.04Γfaster) βint436.60%(98.4%,3.06Γfaster). Across the full3,000-item 6-task suite,int4matchedint8at41.57%acc_norm(0.00%drop) and scored slightly higher on rawacc(38.53%vs38.13%).
Held-Out Textbook & Math Compression (E14)
Tokenizer-independent Bits Per Byte (BPB β lower is better) evaluated on 2.0M tokens (T = 1024, FP32) of held-out FineWeb-Edu (eval-edu) and FineMath 4+ (eval-math):
| Model | Params | Train Tokens | eval-edu BPB β |
eval-math BPB β |
|---|---|---|---|---|
Pythia-160M-deduped |
162.3M |
~300B |
1.2334 |
1.3087 |
GPT-2 124M |
124.4M |
~10B |
1.0200 |
1.2054 |
Pyro PS-0.2.0 (Ours) |
100.7M |
2.84B |
1.0025 |
0.8540 |
SmolLM2-135M |
134.5M |
2,000B (2T) |
0.8807 |
0.8613 |
Disclosure: eval-edu and eval-math are held-out splits of FineWeb-Edu and FineMath 4+ (in-distribution for both Pyro PS-0.2.0 and SmolLM2-135M, whereas GPT-2 and Pythia-160M were trained on earlier general web/Pile mixtures).
Custom Rust Engine Highlights
Pyro's inference and training stack (pyro-infer + pyro-engine) was engineered from scratch in Rust with zero ML framework dependencies:
- Beat
llama.cppon 8-bit CPU decode (E13): On identical134.5MTransformer geometry (SmolLM2-135Mshape) on a 2017 Intel Pentium G4560 (SSE4.2, no AVX/AVX2),pyro-infer(int8) hit49.5 tok/s(1T,+51%vsllama.cpp31.9β33.4 tok/s) and56.8 tok/s(4T,+22%vsllama.cpp46.6 tok/s). - Group-64
int4(Q4) SIMD runtime: Custom overflow-freeSSSE3/AVX2pmaddubsw+pmaddwdkernels and SSE2 KV-cache attention runPS-0.2.0at102.8 tok/slive generation (128.6 tok/smicro-bench) in56.7 MBRAM on that same dual-core Pentium G4560. - Custom CUDA FP16 +
Muonoptimizer (E15): Our custom GPU Newton-SchulzMuonoptimizer already verified~2Γsample efficiency overAdamWat100Mscale (1.4712BPB in65.5Mtokens vsAdamW1.4755in131.1Mtokens,0skipped steps) and is now powering our next-generationPS-0.5(210.8M) scaling run.
Architecture & Release Files
| Property | Value |
|---|---|
| Architecture | Pre-RMSNorm Transformer, Grouped-Query Attention (GQA), QK-Norm, RoPE (ΞΈ = 10,000), SwiGLU, tied embeddings |
| Dimensions | 12 layers, d_model = 768, 12 Q heads / 4 KV heads (head_dim = 64), ffn_hidden = 2048, max_seq_len = 1024 |
| Parameters | 100,684,032 (100.7M) |
| Tokenizer | Custom byte-level BPE (PSTOK v1, 32,768 vocab, tokenizer.json, exact UTF-8 round-trip) |
| Training Corpus | 2.84B tokens (~75% FineWeb-Edu + ~25% FineMath 4+, ODC-By-1.0), step 21,688, WSD cooldown |
| Checksum Verification | Every file (model.safetensors, config.json, tokenizer.json, MODEL_CARD.md) is SHA-256 verified against manifest.json |
Roadmap & Compute Sponsorship
PS-0.2.0 proves our custom Rust+CUDA architecture and Muon optimizer beat much larger and far more heavily trained baselines on a shoestring free-tier GPU budget. Our immediate roadmap:
PS-0.2.0-Chat(100.7M): Multi-turn chat fine-tune on our curated26,425-conversation clean SFT dataset (ready to train).PS-0.5-Chat(210.8M,18L,Muon): Already14%through its10B-token pretraining run (4.56Γmore effective data efficiency viaMuon+ Wikipedia/Edu/Math mix), targeting strongSmolLM2-135Mparity and beyond.PS-1.0(350Mβ500M): Full edge-deployable Rust reasoning & coding assistant running locally in< 300 MBint4RAM.
We are actively looking for cloud GPU compute sponsors (even a single L4 / A100 / H100 node cuts a 100h T4 run down to < 12 hours). Reach out via Hugging Face to discuss sponsorship, collaboration, or commercial licensing.
License & Limitations
- Evaluation Preview: Weights are released for public testing, benchmarking, and research evaluation. Contact the author regarding commercial redistribution or licensing.
- Limitations: As a
100.7Mpretrained base model with a1024-token context window,PS-0.2.0may hallucinate facts, produce incomplete math steps, and does not yet follow chat instructions without SFT. Do not use for medical, legal, or safety-critical decisions.
- Downloads last month
- 47