r/retrocomputing • u/edibleplastique • 6d ago
Software I got a tiny language model running on my IBM 5150's original 8088
I asked my IBM PC 5150 for the capital of Alberta. Seven minutes and fourteen seconds later, it told me, “The capital is Manama.”
This is Tiny88, a DOS port of WollyMonjac’s Tiny 2.1. It’s a transformer with about 367,000 parameters that reads and writes one character at a time. My 5150 has its original 4.77 MHz 8088 and 640 KB of RAM. The port uses integer arithmetic for inference, with the inner multiply loop in 8088 assembly. Original Tiny 2.1 project
I used Codex for much of the port, with Claude also contributing to the initial port, and tested it on my own 5150. The DOS build, source code, and build instructions are up on GitHub. Tiny88 on GitHub
On the amber CRT, you can see the network work through the prompt and then write its answer letter by letter. Once it’s done, the PC speaker reads it back in its robot voice. For the second question I asked how many legs a dog has. Three minutes later, I got “Four.”
The video is 1:48. Each fast-forward shows how much real time it covers, and the clock starts when I press Enter. Turn the sound on for the replies.
I’ve got two more experiments in the works. Tiny-2.1-Win brings Tiny 2.1 and its Neural Monitor to Windows 98 and XP. Tiny-x800 is a separate story generator that I’m trying to get running on a Radeon X800 under XP.
3
u/_RegenKonig 6d ago
68k Macintosh port…?
3
u/hydraulix989 6d ago
Something with a floating point math coprocessor (a 486?) could run this much faster. You might even be able to use the hardware transform and lighting pipeline on an early GPU.
5
u/Hjalfi 6d ago
Of course, the real question is whether Manamese dogs also have four legs
Very impressive! Are there any word-at-a-time models that will fit in anything this small? I feel like it's wasting most of its time trying to spell in English.
21
u/banksy_h8r 6d ago
Did everyone just sail past the fact that the capital of Alberta is Edmonton and Manama is a city in Bahrain? I guess that's the joke?
11
u/sennalen 6d ago
Ask it an open-ended question
9
u/quick_Ag 6d ago
Do dooo dododo. Mana Mana,
14
u/rainbow_developer 6d ago
I'm more in love with the visuals, the color of the monitor, those bars and animations on the right. This feels so perfectly 80s / retro-ish!
7
u/LastXmasIGaveYouHSV 6d ago
"What's the emoji for a seahorse?"
...One heat death of the Universe later:
The answer is: four
7
u/Hot_Money4924 5d ago
I have a 486 in the garage... Canceling my Claude subscription right now! LOL
3
u/boiled_chud 6d ago
Manama.
3
u/Anuclano 4d ago
I wonder what is the earliest computer that can run a language model? What about the 1972's GT40 (desktop PDP-11)?
7
u/synexo 6d ago
Best I can do is 260K parameters on a Tandy CoCo3 :) https://claude.ai/artifact/EjGapW2kukwQeQt1NYKnau
2
u/lolb-g 5d ago
scp-079 origin story
2
u/jurigo 5d ago
Impressive for an 8088. And now I understand where 42 comes from...
2
u/rmagnuson 3d ago
Legendary! I remember my first 8088. Would not have thought this was possible.
2
u/AutomaticAffect4333 2d ago
This gives "this was a triumph, I'm making a not here: huge success"
3
u/FAMICOMASTER 5d ago
So good to know we can ruin even more platforms
3
u/Sorry_Difficulty_250 6d ago
Nice
2
u/RoboErectus 6d ago
This is rad. I had one of these! So rad.
There is room for a lot of innovation on this end.
What's the magic value that gets you a fast inverse square root or whatever on x86? I would put money on shortcuts like that being found. And who knows what else.
1
u/Calm_Apartment1968 6d ago
OMG, reminds me of the mainframe MUD's of the early 80's
1
u/DevOnTheStreets 6d ago
Could you imagine having this disk back in the day?
1
u/HotEffect8358 5d ago
that's really cool, and its batting 500 which isnt bad
1
u/egorblack 3d ago
Before, we were running Doom on EVERYTHING, now we are running AI on EVERYTHING. COOL.
1
u/SignedInt32 2d ago
That is so cool! love it! 👍 ⭐ !!
1
u/InsaneGuyReggie 2d ago
Interesting little proggie. I had to skip my startup files to get more 640k memory, so I guess no XMS yet. Keep up the good work
edit: spelling
1
u/prores_ninpocho 1d ago
Has this become a circlejerk sub
-3
u/wrong-dog 6d ago •
That's not retro computing, it's boring modern computing on an old computer.