Skip to content
プロジェクト

概要

フロッピーディスクに収まる DOS 用言語モデル

AI・機械学習

この数値の測り方

計測したスター増加

24時間
履歴を収集中
7日間
履歴を収集中
15日間
履歴を収集中
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

TINY 2.1 — a transformer for DOS

TINY 2.1 running under DOS

A tiny question-answering transformer written in Turbo C 2.0. It runs on a Pentium or 486DX under plain DOS and fits on a floppy disk.

  • 367,000 parameters: 4 layers, 96 wide, reads and writes letter by letter
  • 8-bit weights (one scale per row), 380 KB in all
  • Needs about 540 KB of free conventional memory
  • Trained on about 3,500 facts, each asked in many wordings Outside those it makes things up confidently
  • Neon full-screen interface with a live neural monitor and a PC-speaker robot voice

Written by Fable 5.2 and trained by Opus 5.5.

Run

Copy the files from the dos folder to the DOS machine, then:

C:\> CD \TINY
C:\TINY> TINY

Keep TINY.EXE and TINY.BIN in the same folder. dos/README.TXT has the keys, options and details. To rebuild: TCC -ml TINY.C

Train it yourself

The training folder is the complete training kit: the facts, the generator that turns them into question/answer pairs in many wordings (gen2.py), and the PyTorch training script (train2.py). Needs Python 3, NumPy and PyTorch; a normal CPU is enough.

cd training
python3 gen2.py                                   # show sample questions
python3 train2.py train 60 more.pt --resume tiny2.pt --lr 5e-4 --decay 0.3 --eval-every 20
python3 train2.py eval more.pt
python3 train2.py export more.pt TINY.BIN         # TINY.EXE reads the new file

Add your own facts to training/facts/ (format in training/TRAINING.TXT). Exporting tiny2.pt unchanged gives exactly the released TINY.BIN.

Licence

Code: MIT (LICENSE). Three data files derived from public datasets keep their own licences (ODbL and CC BY-SA); see DATA_LICENSES.md.

関連プロジェクトを探す

読み込み中…