#182182nd of 190 in Open models

z80ai

Tiny character-level chat model that runs on a 4MHz Z80 in 40KB

Stars
1.1k
License
no license
Last commit
Apr 2026
Last release
Jan 2026
Language
Python
Stars, last 29 weeks+64
7 May 2026: 1,079 stars14 May 2026: 1,080 stars21 May 2026: 1,081 stars28 May 2026: 1,083 stars4 Jun 2026: 1,085 stars11 Jun 2026: 1,087 stars18 Jun 2026: 1,089 stars25 Jun 2026: 1,089 stars2 Jul 2026: 1,090 stars9 Jul 2026: 1,099 stars16 Jul 2026: 1,100 stars23 Jul 2026: 1,105 stars30 Jul 2026: 1,110 stars6 Aug 2026: 1,110 stars13 Aug 2026: 1,110 stars20 Aug 2026: 1,112 stars27 Aug 2026: 1,113 stars3 Sept 2026: 1,113 stars10 Sept 2026: 1,114 stars17 Sept 2026: 1,117 stars24 Sept 2026: 1,119 stars1 Oct 2026: 1,125 stars8 Oct 2026: 1,128 stars15 Oct 2026: 1,131 stars22 Oct 2026: 1,131 stars29 Oct 2026: 1,133 stars5 Nov 2026: 1,134 stars12 Nov 2026: 1,135 stars19 Nov 2026: 1,140 stars26 Nov 2026: 1,143 stars

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
Also in Open models
RankProjectScore
#180medicalnetPretrained 3D-ResNet models and PyTorch transfer-learning code for medical imaging2.3k starscustom licenseno commits in a year12 out of 100
#181paddlehelixBio-computing models for drug discovery and protein structure prediction1.1k starscustom license12 out of 100
#183pointllmMultimodal LLM that answers questions about colored 3D point clouds of objects1.1k starsno license10 out of 100
#184videoworldResearch code for learning world models from unlabeled video810 starsApache-2.010 out of 100
#185worldmemMinecraft world-simulation video diffusion model with long-term memory Live demo ↗ (opens in a new tab)405 starscustom license9 out of 100