5 ms·
Inference on very large LLMs where model + backprop exceed 48GB is already way faster on a 128GB MacBook than on NVidia unless you have one of those monstrous H
by treprinum 2y ago
Inference on very large LLMs where model + backprop exceed 48GB is already way faster on a 128GB MacBook than on NVidia unless you have one of those monstrous Hx00s with lots of RAM which most devs don't.
- m00x 2y agoBecause the CPU has to load the model in parts for every cycle so you're spending a lot of time on IO and it offsets processing. You're talking about completely different things here. It's fine if you're doing a few requests at home, but if you're actually serving AI models, CUDA is the only reasonable choice other than ASICs.
- treprinum 2y agoMy comment was about Intel having a starter project, getting enthusiastic response from devs, network effects and iterate from there. They need a way to threaten Nvidia and just focusing on what they can't do won't bring them there. There is one route where they can disturb Nvidia's high end over time and that's a cheap basic GPU with lots of RAM. Like Ryzen 1st gen whose single core performance was two generations behind Intel trashed Intel by providing 2x as many cores for cheap.
- m00x 2y agoIt would be a good idea to start with some basic understanding of GPU, and realizing why this can't easily be done.
- Muskyinhere 2y agoNo one is running LLMs on consumer NVidia GPUs or apple MacBooks. A dev, if they want to run local models, probably run something which just fits on a proper GPU. For everything else, everyone uses an API key from whatever because its fundamentaly faster. IF a affordable intel GPU would be relevant faster for inferencing, is not clear at all. A 4090 is at least double the speed of Apples GPU.
- treprinum 2y ago4090 is 5x faster than M3 Max 128GB according to my tests but it can't even inference LLaMA-30B. The moment you hit that memory limit the inference is suddenly 30x slower than M3 Max. So a basic GPU with 128GB RAM would trash 4090 on those larger LLMs.
- m00x 2y agoDo you have the code for that test?
- treprinum 2y agoI ran some variation of llama.cpp that could handle large models by running portion of them on GPU and if too large, the rest on CPU and those were the results. Maybe I can dig it from some computer at home but it was almost like a year ago when I got M3 Max with 128GB RAM.
- skirmish 2y agoQuantized 30B models should run in 24GB VRAM. A quick search found people doing that with good speed: [1] I have a 4090, PCIe 3x16, DDR4 RAM. oobabooga/text-generation-webui using exllama I can load 30B 4bit GPTQ models and use full 2048 context I get 30-40 tokens/s [1] https://old.reddit.com/r/LocalLLaMA/comments/14gdsxe/optimal_setup_for_larger_models_on_4090/ https://old.reddit.com/r/LocalLLaMA/comments/14gdsxe/optimal...
- treprinum 2y ago