Pyro PS-0.2.0-Chat (100.7M) β 100% From-Scratch Rust Chat LLM
Live CPU Demo: Try it live right now at Pyleon/pyro-demo (runs in
56.7 MBint4RAM on free CPU). Base pretrained weights: Pyleon/pyro-ps-0.2.0.
Pyro PS-0.2.0-Chat is the Stage-2 instruction-tuned chat checkpoint of Pyro PS-0.2.0 (100.7M parameters), trained 100% from random initialization using a completely custom Rust + CUDA training and inference engine β with zero PyTorch/Transformers training code, zero borrowed weights, and zero proprietary synthetic chat data.
- Stage-1 Pretraining (
PS-0.2.0base):2.84Btokens of commercially cleanFineWeb-Edu+FineMath 4+(ODC-By-1.0) in29.3 hourson free2 Γ Tesla T4GPUs. - Stage-2 Chat SFT (
PS-0.2.0-Chat): Fine-tuned with assistant-only masked cross-entropy (ASSISTANT_TURNloss masking,7/7CUDA parity verified) on26,425unique 100%-human-written conversations (Dolly-15k+ human EnglishOASST1/OASST2+GSM8Ktrain;6.18Mtokens,3.05epochs,0skipped steps) in18.5 minuteson2 Γ T4.- Held-out assistant-only chat perplexity dropped
11.54 β 8.53(-26.1%,val_bpb 0.9013 β 0.7897).
- Held-out assistant-only chat perplexity dropped
- 4-Bit CPU Runtime (
Q4): Runs live in56.7 MBweight RAM (7.1Γsmaller than FP32) at100β147 tok/son standard CPUs (including a 2017 dual-core Intel Pentium G4560 with no AVX).
Verified Base Model Benchmarks (PS-0.2.0, E17 & E14)
Before Stage-2 chat fine-tuning, base PS-0.2.0 (100.7M, 2.84B tokens) was scored zero-shot across 6 standard public benchmarks (500 items per task = 3,000 items total, tokenizer-independent byte-normalized acc_norm matching lm-evaluation-harness):
| Model | Params | Train Tokens | 6-Task Avg (acc_norm) |
OpenBookQA | ARC-Easy | ARC-Challenge | WinoGrande | HellaSwag | BoolQ |
|---|---|---|---|---|---|---|---|---|---|
Pythia-160M-deduped |
162.3M |
~300B |
39.53% |
25.4% |
42.6% |
22.8% |
48.0% |
39.6% |
58.8% |
GPT-2 124M |
124.4M |
~10B |
39.57% |
25.8% |
41.0% |
20.8% |
53.2% |
40.0% |
56.6% |
Pyro PS-0.2.0 (int8) |
100.7M |
2.84B |
41.57% |
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% |
28.4% |
45.6% |
22.0% |
50.4% |
40.2% |
62.8% |
SmolLM2-135M |
134.5M |
2,000B |
46.20% |
33.2% |
58.0% |
27.2% |
52.0% |
44.0% |
62.8% |
- 4-bit quantization retention:
0.00%macro accuracy drop vsint8across3,000items (98.4%retention vs exact FP32 on a500-item audit at3.06ΓFP32 CPU speed). - Held-out compression (
E14, FP32,T=1024, BPB β):eval-edu1.0025(vs GPT-21.0200, Pythia-160M1.2334),eval-math0.8540(edgingSmolLM2-135M0.8613).
Stage-2 SFT Metrics (PS-0.2.0-Chat)
Metric (sft-mix/valid, 174,406 active assistant tokens) |
Pre-SFT (PS-0.2.0) |
Post-SFT (PS-0.2.0-Chat, step 288) |
|---|---|---|
Held-out assistant val_bpb β |
0.9013 |
0.7897 (best 0.7887) |
Held-out assistant val_loss β |
2.4461 |
2.1434 |
Held-out assistant val_ppl β |
11.54 |
8.53 (-26.1%) |
Chat Format (PSTOK v1 Reserved Turn Tokens)
<BOS=1> [<SYSTEM=3> system text] <USER=4> user message <ASSISTANT=5> assistant reply <EOS=2> ...
Multi-turn conversations alternate <USER=4> and <ASSISTANT=5> ... <EOS=2> within the 1024-token context window.
Architecture & Provenance
| Property | Value |
|---|---|
| Architecture | Pre-RMSNorm Transformer, 12L, d=768, 12Q/4KV GQA (hd=64), QK-Norm, RoPE (ΞΈ=10,000), SwiGLU (F=2048), tied embeddings |
| Parameters | 100,684,032 (100.7M) |
| Tokenizer | Custom byte-level BPE (PSTOK v1, 32,768 vocab, tokenizer.json) |
| Custom Engine | Standalone Rust + CUDA (pyro-engine, pyro-infer, zero PyTorch runtime; beats llama.cpp Q8_0 on 1T/4T CPU decode; custom GPU Muon optimizer gives ~2Γ sample efficiency) |
| Checksums | All release files (model.safetensors, config.json, tokenizer.json, MODEL_CARD.md) SHA-256 verified in manifest.json |
Roadmap & Compute Sponsorship
PS-0.2.0-Chat proves our full from-scratch stack β custom tokenizer, custom CUDA FP16 trainer, assistant-masked SFT, and 57 MB int4 Rust web server β works end-to-end on free tier hardware.
Next up: PS-0.5-Chat (210.8M, 18L, T=2048, Muon optimizer, Edu + Math + Wikipedia) is already underway (Segment 1 complete; cross-GPU resume ready for A100/L40S/H100), followed by PS-1.0 (350Mβ500M). We are actively seeking cloud GPU compute sponsors β even a single A100/L40S/H100 for 24β48 hours completes PS-0.5-Chat and launches PS-1.0. Reach out via Hugging Face to discuss sponsorship, benchmarks, 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.
- Honest Limitations: At
100.7Mparameters and2.84Bpretraining tokens (without Wikipedia yet),PS-0.2.0-Chatfollows conversational structure and stops cleanly, but multi-step arithmetic and specific factual recall can still be inaccurate. Do not use for medical, legal, or safety-critical decisions.
- Downloads last month
- 53