News for hackers. Stuff that matters.
Re:Running a 180B parameter LLM on a single Apple M2 Ultra by ls612 on Thursday September 07, 2023 @11:59AM (#37420948)
For me the test is; when will a Siri-LLM be able to run locally on my iPhone at at least GPT-4 levels? 2030? Farther out? Never because of governments forbidding it? To what extent will improvements be driven by the last gasps of Moore’s Law vs by improving model architectures to be more efficient?
Re:Running a 180B parameter LLM on a single Apple M2 Ultra by adam_arthur on Thursday September 07, 2023 @12:02PM (#37420983)
Given that phones are a few years behind PCs on RAM, likely whenever the average PC can do it, plus a few years. There are phones out there with 24GB of RAM already, it looks like.

Of course battery life would be a concern there, so I think LLM usage on phones will remain in the cloud.

Haven't studied phone RAM capacity growth rates in detail though

Re:Running a 180B parameter LLM on a single Apple M2 Ultra by nico on Thursday September 07, 2023 @12:23PM (#37421363)
That’s for LLMs, but at the same time, there are other types of models coming out

Wouldn’t be surprised if we get small models that can run locally on a phone and just retrieve data from the network as needed (without sending your data out), within the next couple of years

Re:Running a 180B parameter LLM on a single Apple M2 Ultra by baq on Thursday September 07, 2023 @04:21PM (#37425019)
Wonder if someone is thinking of LLM specific RAM, slower but much denser. Bonus points for not having to reload the model after power cycling.

Maybe call this fantastic technology something idiotic like 3d XPoint?

Re:Running a 180B parameter LLM on a single Apple M2 Ultra by ronsor on Thursday September 07, 2023 @04:57PM (#37425474)
The problem with that is LLM speed is mostly bottlenecked by memory bandwidth. Slower RAM means worse performance.
Re:Running a 180B parameter LLM on a single Apple M2 Ultra by AnthonyMouse on Thursday September 07, 2023 @06:41PM (#37426620)
> slower but much denser. Bonus points for not having to reload the model after power cycling.

This is called a solid state drive.

Re:Running a 180B parameter LLM on a single Apple M2 Ultra by baq on Friday September 08, 2023 @04:00AM (#37430833)
Goes to show how badly Intel executed that one.
Re:Running a 180B parameter LLM on a single Apple M2 Ultra by AnthonyMouse on Friday September 08, 2023 @04:05AM (#37430876)
What? You can do this right now. Put your >100GB model on your SSD in your computer with <100GB of RAM and use mmap. It's not fast, but it runs.
Re:Running a 180B parameter LLM on a single Apple M2 Ultra by baq on Friday September 08, 2023 @06:54AM (#37432010)
My point is Intel had the perfect tech for this and killed it.

https://en.wikipedia.org/wiki/3D_XPoint

Re:Running a 180B parameter LLM on a single Apple M2 Ultra by AnthonyMouse on Friday September 08, 2023 @11:47AM (#37435180)
They didn't really. What this wants is gobs of memory bandwidth. The fastest NVMe SSDs can essentially saturate the PCIe bus. Using a dozen or more of them in parallel might even have reasonable performance for this. (Most desktops don't have this many PCIe lanes but HEDT and servers do). And they're a lot cheaper than Optane was.

To do better than that would have required the version of Optane that used DIMM slots, which was something like a quarter of the performance of actual DRAM for half the price.

So you had something that costs more than ordinary SSDs if your priority is cost and is slower than DRAM if your priority is performance. A lot of times a middle ground like that is still valuable, but since cache hierarchies are a thing, having a bit of fast DRAM and a lot of cheap SSD serves that part of the market well too.

And in the meantime ordinary SSDs got faster and cheaper and DRAM got faster and cheaper. Now you can get older systems with previous generation DRAM that are faster than Optane for less money. They stopped making it because people stopped buying it.

Re:Running a 180B parameter LLM on a single Apple M2 Ultra by bugglebeetle on Thursday September 07, 2023 @12:40PM (#37421670)
Apple is already training their own LLM to rival GPT-4, so I doubt it will take that long.
Re:Running a 180B parameter LLM on a single Apple M2 Ultra by visarga on Thursday September 07, 2023 @01:09PM (#37422133)
> vs by improving model architectures to be more efficient?

or data quality, you get more from small models if you use high quality data