← back

🧠 Z80 LLM

Training tiny neural nets to predict Z80 assembly for retro hardware

What it is

A small language model trained from scratch on Z80 assembly source code, designed to run on or assist with real retro hardware. The model predicts assembly instructions, helping with code generation and completion for Z80-based systems — including an actual IMSAI 8080 with Z80 upgrade card.

Approach

Working Config

Hidden size512
Embedding64
Sequence length128
Batch size4096
Learning rate0.001
Epochs5
GPUGTX 1080 Ti (11GB)

Why it matters

Most LLMs target modern x86/ARM or cloud inference. This one is built for a machine that predates the internet. It's an exercise in extreme constraint ML — what's the smallest useful model you can train, and can it actually run on hardware designed in the 1970s?