NewsCrawler.org

ZX-GPT 48K: a chatbot that runs on a 1982 ZX Spectrum

Sinclair ZX Spectrum ZXGPT 48K Cassette Cover — 8B · 27B · 500B LLM, by © 2026 AGI Labs LLC
Image: vest8.com

ZX-GPT 48K is a chatbot built by AGI Labs LLC that runs on a 1982 ZX Spectrum 48K. It executes as Z80 machine code in the browser, on a 3.5 MHz Zilog Z80 processor with 48 KB of RAM, with no external APIs or GPUs. The project reproduces features of modern AI services, including three monthly plans at £5, £10 and £50, chain-of-thought spinners, multi-color image generation, safety refusals, 5-hour usage caps and context compaction.

The Z80 cannot multiply, so the FNV-1a hashing[1] used to store words replaces the multiplication by 403 with doublings and additions, and each word becomes a 2-byte number. The topic of a reply is chosen by a sparse linear classifier[2] that adds weighted votes across 48 topic groups, and fact lookup uses binary search, which finds any of the 189 facts in at most 8 steps. Replies are stored compressed with byte-pair encoding[3] and canonical Huffman coding[4], which gives 1.6× compression for 21,420 bytes of text.

The page lists 21 of 21 Z80.js end-to-end test suites (148 assertions) and 185 of 185 stress prompts passing with 0 fallbacks. Streaming runs at 14 tok/s, and 30 bytes of RAM are left free below the stack ceiling.

Read the original vest8.comDiscussion

Sources

Published: First seen: Читать по-русски

Open as a page