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.84B tokens of commercially clean, permissive-licensed data (FineWeb-Edu + FineMath 4+, ODC-By-1.0) in 29.3 hours on free 2 Γ— Tesla T4 GPUs.
  • Public Benchmark Result (E17): 41.57% 6-task zero-shot average (acc_norm), beating both GPT-2 124M (39.57%) and Pythia-160M (39.53%, trained on 105Γ— more tokens) on 5 of 6 standard public benchmarks.
  • 4-Bit CPU Runtime (Q4): 56.7 MB weight footprint (7.1Γ— smaller than FP32) with 0.00% average accuracy drop across all 6 benchmarks (41.57% acc_norm) β€” streaming at 102.8 tok/s live on a 2017 dual-core Intel Pentium G4560 CPU (no AVX/AVX2).

Note: PS-0.2.0 is a base (pretrained) model designed for text completion, scientific/math continuation, and benchmark verification. Supervised instruction-tuned chat checkpoints (PS-0.2.0-Chat and PS-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 (500 items, ARC-Easy + OpenBookQA): f32 37.20% β†’ int8 37.40% (100.5%, 2.04Γ— faster) β†’ int4 36.60% (98.4%, 3.06Γ— faster). Across the full 3,000-item 6-task suite, int4 matched int8 at 41.57% acc_norm (0.00% drop) and scored slightly higher on raw acc (38.53% vs 38.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.cpp on 8-bit CPU decode (E13): On identical 134.5M Transformer geometry (SmolLM2-135M shape) on a 2017 Intel Pentium G4560 (SSE4.2, no AVX/AVX2), pyro-infer (int8) hit 49.5 tok/s (1T, +51% vs llama.cpp 31.9–33.4 tok/s) and 56.8 tok/s (4T, +22% vs llama.cpp 46.6 tok/s).
  • Group-64 int4 (Q4) SIMD runtime: Custom overflow-free SSSE3/AVX2 pmaddubsw + pmaddwd kernels and SSE2 KV-cache attention run PS-0.2.0 at 102.8 tok/s live generation (128.6 tok/s micro-bench) in 56.7 MB RAM on that same dual-core Pentium G4560.
  • Custom CUDA FP16 + Muon optimizer (E15): Our custom GPU Newton-Schulz Muon optimizer already verified ~2Γ— sample efficiency over AdamW at 100M scale (1.4712 BPB in 65.5M tokens vs AdamW 1.4755 in 131.1M tokens, 0 skipped steps) and is now powering our next-generation PS-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:

  1. PS-0.2.0-Chat (100.7M): Multi-turn chat fine-tune on our curated 26,425-conversation clean SFT dataset (ready to train).
  2. PS-0.5-Chat (210.8M, 18L, Muon): Already 14% through its 10B-token pretraining run (4.56Γ— more effective data efficiency via Muon + Wikipedia/Edu/Math mix), targeting strong SmolLM2-135M parity and beyond.
  3. PS-1.0 (350M–500M): Full edge-deployable Rust reasoning & coding assistant running locally in < 300 MB int4 RAM.

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.7M pretrained base model with a 1024-token context window, PS-0.2.0 may 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
Safetensors
Model size
0.1B params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Space using Pyleon/pyro-ps-0.2.0 1