A Tiny Language Model Runs on a 486 PC From a Floppy Disk
一张软盘里装下语言模型,486 老电脑也能跑
Tiny 2.1 holds 367,000 parameters in about 380KB. It answers from roughly 3,500 facts, and reads them out through the PC speaker.
A developer who goes by WollyMonjac has put a language model on a floppy disk, so that 486DX and Pentium machines running DOS can use AI. The software is called Tiny 2.1.
It is not a large language model, and the developer is the first to say so. It uses the same Transformer architecture, but it is a tiny question-and-answer model written in Turbo C 2.0.
Space was the hard constraint. A floppy of that era held under 1.475 million bytes. Tiny 2.1 was squeezed to fit: 367,000 parameters, four layers, a hidden dimension of 96, reading and writing one letter at a time. The weights are stored at 8 bits with one scale factor per row, and the whole model comes to about 380KB.
It was trained on roughly 3,500 facts, each written in several different ways so that the model learns to recognise the question however it is phrased. To run it, an old PC needs about 540KB of free conventional memory.
The interface is more complete than the size suggests. There is a window for the conversation history, a panel that shows the network at work, and an Ask Tiny box for typing questions. Following DOS tradition, a row of function keys handles the shortcuts.
It also speaks. Answers are read out through the machine's built-in speaker in a robot voice, which is either a charming touch or an unnecessary one, depending on your tolerance for 1980s sound. The project page credits the code to one AI model and the training to another, and WollyMonjac cheerfully admits that beyond its training data the model “will very confidently make things up”. That is normally a defect. Here it reads as part of the joke.
Anyone who wants more can add it: the package is released under the MIT licence with a folder for extra training data, so a user can build a tiny transformer for whatever subject they care about.
It belongs to a wider habit. People have written a ChatGPT client for DOS so that a 1984 IBM PC can reach it, run Minecraft on a Game Boy, generated sprites for a Commodore 64, and ported Doom to an Atari ST. None of these is useful in the ordinary sense. Each is a demonstration that the limits people assume are limits are often just the first obstacle.
中文翻译(全文)
一位网名 WollyMonjac 的开发者把语言模型装进了软盘,让运行 DOS 的 486DX 与 Pentium 老机器也能用上 AI。这个软件叫 Tiny 2.1。
它不是大语言模型,开发者自己也是这么说的。它用的是同样的 Transformer 架构,但只是一个用 Turbo C 2.0 写的微型问答模型。
空间是硬约束。那个年代的软盘容量不到 147.5 万字节。Tiny 2.1 被压缩到能装下:36.7 万个参数、4 层、隐藏维度 96,一次读写一个字母。权重以 8 位存储、每行一个缩放系数,整个模型约 380KB。
它用大约 3500 条事实训练,每条事实都写成好几种不同的问法,这样无论问题怎么问,模型都能认出来。要跑起来,老电脑需要约 540KB 的可用常规内存。
界面比体积所暗示的要完整。有一个对话历史窗口,一个显示网络运行状态的面板,还有一个输入问题的 Ask Tiny 窗口。按 DOS 的老传统,一排功能键负责快捷操作。
它还会说话。答案通过机内喇叭以机器人嗓音念出来——算是迷人的一笔,还是多余的一笔,取决于你对 1980 年代音效的容忍度。项目页面把代码归给一个 AI 模型、把训练归给另一个,而 WollyMonjac 也坦率承认:在训练数据之外,这个模型「会非常自信地编造内容」。这通常是缺陷;放在这里,它像是玩笑的一部分。
想要更多的人可以自己加:软件按 MIT 许可证发布,随包提供一个用于补充训练数据的文件夹,用户可以为自己关心的领域做一个微型 Transformer。
它属于一种更广泛的习惯。有人为 DOS 写了 ChatGPT 客户端,让 1984 年的 IBM PC 也能连上它;有人让《我的世界》跑在 Game Boy 上;有人为 Commodore 64 生成像素图;还有人把《毁灭战士》移植到了 Atari ST。这些按通常意义都不实用。每一个都在说明:人们以为的限制,往往只是第一道障碍。
重点词汇
- floppy disk/ˈflɒpi dɪsk/n.— an old magnetic storage disk软盘It runs from a floppy disk.
- parameter/pəˈræmɪtə/n.— a value a model learns参数It has 367,000 parameters.
- architecture/ˈɑːkɪtektʃə/n.— the overall design of a model架构It uses the Transformer architecture.
- quantisation/ˌkwɒntɪˈzeɪʃn/n.— storing numbers with fewer bits量化It uses 8-bit quantisation.
- conventional memory/kənˈvenʃənl ˈmeməri/n.— the memory DOS programs can use directly常规内存It needs 540KB of it.
- train/treɪn/v.— to teach a model from examples训练It was trained on 3,500 facts.
- make up/meɪk ʌp/phrasal v.— to invent something untrue编造It will make things up.
- licence/ˈlaɪsns/n.— the terms under which software is released许可证It is under the MIT licence.
- port/pɔːt/v.— to move software to another machine移植They ported Doom to an Atari ST.
- sprites/spraɪts/n.— small images used in games精灵图AI generated the sprites.
阅读测验
共 5 道题目
What did the developer do?
How big is the model?
Tiny 2.1 is a large language model.
Which points does the article make? (Select all that apply)
The software is released under the ______ licence, with a folder for extra training data.

评论
0 条讨论
登录后发表评论
立即登录暂无评论
成为第一个分享想法的人吧!