Live data from Hacker News

Show HN: Z80-μLM, a 'Conversational AI' That Fits in 40KB

github.com

31–40 of 126 posts

Re: Show HN: Z80-μLM, a 'Conversational AI' That Fits in 40KB

#32
post #28

This couldn't be more perfectly timed .. I have an Unreal Engine game with both VT100 terminals (for running coding agents) and Z80 emulators, and a serial bridge that allows coding agents to program the CP/M machines: https://i.imgur.com/6TRe1NE.png Thank you for posting! It's unbelievable how someone sometimes just drops something that fits right into what you're doing. However bizarre it seems.

Connections: Alternative History of Technology by James Burke documents these "coincidences".

Those "coincidences" in Connections are really no coincidence at all, but path dependence. Breakthrough advance A is impossible or useless without prerequisites B and C and economic conditions D, but once B and C and D are in place, A becomes obvious next step.

Re: Show HN: Z80-μLM, a 'Conversational AI' That Fits in 40KB

#33
There are two things happening here. A really small LLM mechanism which is useful for thinking about how the big ones work, and a reference to the well known phenomenon, commonly dismissively referred to as a "trick", in which humans want to believe. We work hard to account for what our conversational partner says. Language in use is a collective cultural construct. By this view the real question is how and why we humans understand an utterance in a particular way. Eliza, Parry, and the Chomsky bot at http://chomskybot.com work on this principle. Just sayin'.

Re: Show HN: Z80-μLM, a 'Conversational AI' That Fits in 40KB

#34

As far as I know, the last layer is very quantization-sensitive, and is typically not quantized, or quantized lightly. Have you experimented with having it less quantized, and evaluated the quality drop? Regardless, very cool project.

(Not OP)

It depends on the model, but from my experiments (quantizing one layer of a model to 2-bit and then training the model with that layer in 2-bit to fix the damage) the first layer is the most sensitive, and yes, the last layer is also sensitive too. The middle layers take the best to quantization.

Different components of a layer also have a different sensitivity; e.g. the MLP downscale block damages the model the most when quantized, while quantizing the Q projection in self attention damages the model the least.

Re: Show HN: Z80-μLM, a 'Conversational AI' That Fits in 40KB

#35
I love it, instant Github star. I wrote an MLP in Fortran IV for a punched card machine from the sixties (https://github.com/dbrll/Xortran), so this really speaks to me.

The interaction is surprisingly good despite the lack of attention mechanism and the limitation of the "context" to trigrams from the last sentence.

This could have worked on 60s-era hardware and would have completely changed the world (and science fiction) back then. Great job.

Re: Show HN: Z80-μLM, a 'Conversational AI' That Fits in 40KB

#37
post #19

Earlier quoted context omitted.

RAM is very expensive right now.

We're talking kilobytes, not gigabytes. And it isn't DDR5 either.

Yeah, even an average household can afford 40k of slow DRAM if they cut down on luxuries like food and housing.

Re: Show HN: Z80-μLM, a 'Conversational AI' That Fits in 40KB

#38

This couldn't be more perfectly timed .. I have an Unreal Engine game with both VT100 terminals (for running coding agents) and Z80 emulators, and a serial bridge that allows coding agents to program the CP/M machines: https://i.imgur.com/6TRe1NE.png Thank you for posting! It's unbelievable how someone sometimes just drops something that fits right into what you're doing. However bizarre it seems.

Super intrigued but annoyingly I can’t view imgur here
Post reply on HN