#182182nd of 190 in Open models
z80ai
Tiny character-level chat model that runs on a 4MHz Z80 in 40KB
Watch puts z80ai on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.z80ai is on your watch list. Its new releases and problems show there.
- Stars
- 1.1k
- License
- no license
- Last commit
- Apr 2026
- Last release
- Jan 2026
- Language
- Python
1,079 on 7 May 20261,143 on 26 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Z80-μLM is a quantization-aware-trained micro language model that generates short replies character by character on a Z80 CPU with 64KB RAM. It ships as a ~40KB CP/M .COM binary or ZX Spectrum .TAP containing inference, 2-bit weights and a chat UI. Input is hashed into 128 trigram buckets, and inference uses 16-bit integer math only. Two examples are included: tinychat and a 20-questions game called guess.
Who it is for: Retrocomputing hobbyists and tiny-model experimenters
Strengths
- Full inference, weights and chat UI fit in a ~40KB .COM file
- Integer-only 16-bit math with 2-bit packed weights, no floating point
- Builds for CP/M and ZX Spectrum 48K, runs in emulators
- Trigram hashing tolerates typos and word-order changes in short inputs
Weaknesses
- Replies are one or two words; it does not generate novel sentences
- Longer or order-dependent inputs blur together in the 128 hash buckets
- Little multi-turn context tracking
- Training and building from source require separate Python tooling documented in TRAINING.md
What it needs
- no GPU
- Needs CP/M emulator (iz-cpm) or ZX Spectrum emulator (Fuse), Ollama or Claude API (optional, for generating training data)
- Models: Custom 2-bit quantized MLP (trigram hash input, character output)
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in Open models
See all 190| Rank | Project | Score |
|---|---|---|
| #180 | medicalnetPretrained 3D-ResNet models and PyTorch transfer-learning code for medical imaging | 12 out of 100 |
| #181 | paddlehelixBio-computing models for drug discovery and protein structure prediction | 12 out of 100 |
| #183 | pointllmMultimodal LLM that answers questions about colored 3D point clouds of objects | 10 out of 100 |
| #184 | videoworldResearch code for learning world models from unlabeled video | 10 out of 100 |
| #185 | worldmemMinecraft world-simulation video diffusion model with long-term memory | 9 out of 100 |