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 MB int4 RAM 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.0 base): 2.84B tokens of commercially clean FineWeb-Edu + FineMath 4+ (ODC-By-1.0) in 29.3 hours on free 2 Γ— Tesla T4 GPUs.
  • Stage-2 Chat SFT (PS-0.2.0-Chat): Fine-tuned with assistant-only masked cross-entropy (ASSISTANT_TURN loss masking, 7/7 CUDA parity verified) on 26,425 unique 100%-human-written conversations (Dolly-15k + human English OASST1/OASST2 + GSM8K train; 6.18M tokens, 3.05 epochs, 0 skipped steps) in 18.5 minutes on 2 Γ— T4.
    • Held-out assistant-only chat perplexity dropped 11.54 β†’ 8.53 (-26.1%, val_bpb 0.9013 β†’ 0.7897).
  • 4-Bit CPU Runtime (Q4): Runs live in 56.7 MB weight RAM (7.1Γ— smaller than FP32) at 100–147 tok/s on 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 vs int8 across 3,000 items (98.4% retention vs exact FP32 on a 500-item audit at 3.06Γ— FP32 CPU speed).
  • Held-out compression (E14, FP32, T=1024, BPB ↓): eval-edu 1.0025 (vs GPT-2 1.0200, Pythia-160M 1.2334), eval-math 0.8540 (edging SmolLM2-135M 0.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.7M parameters and 2.84B pretraining tokens (without Wikipedia yet), PS-0.2.0-Chat follows 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
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-chat 1