#438 · Primary category: Education & Research

z80ai

chatbot code-golf cpm language-model machine-learning nlp quantization retro retrocomputing tinyml z80

Z80-μLM is a 2-bit quantized language model small enough to run on an 8-bit Z80 processor. Train conversational models in Python, export them as CP/M .COM binaries, and chat with your vintage computer.

Project last updated:04/29/26

GitHub Stars

1.1K

Forks

50

Contributors

7

License

Other

Why we included this project

Z80-μLM pushes a language model down to the smallest practical scale: 2-bit weights and 16-bit integer math packed into a ~40KB binary that runs on a 4MHz Z80 with just 64KB of RAM. You train a conversational model in Python, export it as a CP/M .COM file, and chat with it on an emulator or real vintage hardware. The included examples, a terse chatbot and a 20-questions game, give quick tangible results. For anyone curious about quantization and extreme resource limits, the project is a clear walkthrough from training to a working binary, which makes it a good learning resource and a fun retrocomputing experiment.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category