News for hackers. Stuff that matters.
Re:Mistral NeMo by simpaticoder on Thursday July 18, 2024 @11:32AM (#40996565)
Justine Tunney (of redbean fame) is actively working on getting LLMs to run well on CPUs, where RAM is cheap. If successful this would eliminate an enormous bottleneck to running local models. If anyone can do this, she can. (And thank you to Mozilla for financially supporting her work). See https://justine.lol/matmul/ and https://github.com/mozilla-Ocho/llamafile
Re:Mistral NeMo by illusive4080 on Thursday July 18, 2024 @11:50AM (#40996842)
I love that domain name.
Re:Mistral NeMo by wkat4242 on Thursday July 18, 2024 @12:46PM (#40997419)
I think it's mostly the memory bandwidth though that makes the GPUs so fast with LLMs. My card does about 1TB/s. CPU RAM won't come near that. I'm sure a lot of optimisations can be had but I think GPUs will still be significantly ahead.

Macs are so good at it because Apple solder the memory on top of the SoC for a really wide and low latency connection.

Re:Mistral NeMo by simpaticoder on Thursday July 18, 2024 @01:12PM (#40997698)
This is a good and valid comment. It is difficult to predict the future, but I would be curious what the best case theoretical performance of an LLM on a typical x86 or ARM system with DDR4 or DDR5 RAM. My uneducated guess is that it can be very good, perhaps 50% the speed of a specialized GPU/RAM device. In practical terms, the CPU approach is required for very large contexts, up to as large as the lifetime of all interactions you have with your LLM.
Re:Mistral NeMo by rustcleaner on Thursday July 18, 2024 @04:25PM (#40999389)
There's no good reason for consumer nvidia cards to lack SODIMM-like slots for video RAM, except to rake in big bucks and induce more hasty planned obsolescence.
Re:Mistral NeMo by timschmidt on Thursday July 18, 2024 @09:56PM (#41001481)
DIMM slots won't work for GPU VRAM due to the higher speeds, tighter signalling, and dense packing of memory on wide buses. Take a look at the speeds DDR5 is running at in a typical Xeon server, and compare to GDDR6. This is the problem LPCAMM2 was developed to solve for modern x86 CPUs in laptops and desktops. Seeing it applied to GPUs would be great.