Pyro PS-0.2.0: A Language Model Built From Scratch in Rust and CUDA
2 min readupdated
Pyro PS-0.2.0 is a compact 100.7M-parameter base language model trained completely from scratch without libraries like PyTorch or Hugging Face Transformers. The developers built a custom engine in Rust and CUDA, training the model on 2.84B tokens from clean datasets like FineWeb-Edu and FineMath. Designed for text generation, math tasks, and benchmarks, it outperforms larger alternatives like GPT-2 and Pythia across several metrics. The release targets developers, researchers, and hobbyists looking to run lightweight models on low-end hardware.
Key features
- Clean architecture: Written on a custom engine with no third-party frameworks or imported weights.
- Strong benchmarks: Outperforms GPT-2 124M and Pythia-160M in most tests despite using less training data.
- Fast 4-bit runtime: Weighs just 56.7 MB in Q4 quantization and delivers over 100 tokens per second on older processors.
- Token efficiency: Shows excellent results on math tests (Bits Per Byte) thanks to the Muon optimizer.
What you can do
- Run on a weak CPU: Use the 4-bit version of the model for local text generation on older laptops and PCs without a dedicated GPU.
- Check benchmarks: Test the model on standard tasks (ARC, OpenBookQA, HellaSwag) to evaluate its baseline capabilities.
- Explore the custom engine: Examine the implementation of inference and training in Rust within the project repository.
- Wait for SFT versions: Watch for the release of chat versions (PS-0.2.0-Chat and PS-0.5) for conversational tasks.
Example
Example of model inference in Python using the custom runtime:
import pyro
model = pyro.load_model("Pyleon/pyro-ps-0.2.0")
output = model.generate("The future of custom AI engines is", max_tokens=64)
print(output)
Read more
DetailsArchitecture: Pre-RMSNorm Transformer, GQA, RoPE, SwiGLU
Parameters: 100.7M, context length 1024 tokens
Training: 2.84B tokens in 29.3 hours on 2 x Tesla T4
Performance: 102.8 tokens/sec in 4-bit on Pentium G4560
License: research evaluation preview










Comments