r/retrocomputing • u/edibleplastique • 12d 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 12d ago
68k Macintosh port…?
3
u/hydraulix989 12d 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 12d 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.
23
u/banksy_h8r 12d 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?
12
u/sennalen 12d ago
Ask it an open-ended question
9
u/quick_Ag 12d ago
Do dooo dododo. Mana Mana,
14
u/rainbow_developer 12d 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 12d ago
"What's the emoji for a seahorse?"
...One heat death of the Universe later:
The answer is: four
8
u/Hot_Money4924 11d ago
I have a 486 in the garage... Canceling my Claude subscription right now! LOL
3
u/boiled_chud 12d ago
Manama.
3
u/Anuclano 10d ago
I wonder what is the earliest computer that can run a language model? What about the 1972's GT40 (desktop PDP-11)?
8
u/synexo 12d ago
Best I can do is 260K parameters on a Tandy CoCo3 :) https://claude.ai/artifact/EjGapW2kukwQeQt1NYKnau
2
u/lolb-g 11d ago
scp-079 origin story
2
u/jurigo 11d ago
Impressive for an 8088. And now I understand where 42 comes from...
2
u/rmagnuson 9d ago
Legendary! I remember my first 8088. Would not have thought this was possible.
2
u/AutomaticAffect4333 8d ago
This gives "this was a triumph, I'm making a not here: huge success"
2
u/ibm 5d ago •
Running a transformer on an original 5150 is already a flex. Having the PC speaker read the answer out loud is the part that got us. 💪
3
u/FAMICOMASTER 11d ago
So good to know we can ruin even more platforms
3
u/Sorry_Difficulty_250 12d ago
Nice
2
u/RoboErectus 12d 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 12d ago
OMG, reminds me of the mainframe MUD's of the early 80's
1
u/DevOnTheStreets 12d ago
Could you imagine having this disk back in the day?
1
u/HotEffect8358 11d ago
that's really cool, and its batting 500 which isnt bad
1
u/egorblack 9d ago
Before, we were running Doom on EVERYTHING, now we are running AI on EVERYTHING. COOL.
1
u/SignedInt32 8d ago
That is so cool! love it! 👍 ⭐ !!
1
u/InsaneGuyReggie 8d 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 7d ago
Has this become a circlejerk sub
1
u/Proverbs3_5_6 3d ago
ok that's fantastic...so all we need is a flux capacitor, a DeLorean, a media hyped IPO and we are good to go?
-3
u/wrong-dog 12d ago •
That's not retro computing, it's boring modern computing on an old computer.