I can now run a GPT-4 class model on my laptop
simonwillison.net
simonwillison.net
The problem is always RAM. On Apple Silicon RAM is shared between CPU and GPU, which means a 64GB of RAM machine can run really big models with GPU acceleration.
On Windows/Linux machines you usually need to consider the VRAM available to your GPU. I haven't got a great feel for what kind of VRAM numbers are common for different consumer setups there, so I don't tend to write much about those.
Of course llama.cpp will happily run models on CPU as well, but again I don't have a great feel for how usable that is.
I think the main impediment is Intel and SYCL not working on all their cards... AMD is good to go, I think.
Btw, this is my favorite laptop of all time. Highly recommend it.
It’s painful, but the results are night and day compared to the models that will fit entirely in vram. Of course perhaps I’m doing something wrong so if others have advice it would be great to hear!
I have a 9800x3d/48gb ddr5/3090 and this model still being ~40GB when quantized is a challenge. Sure would be nice to have a 30B version that can quantize down to ~16GB. Or I guess I could upgrade my PSU and get another 3090 and use NVlink...
It’s the throughput. For whatever reason they’re a good 5-10x lower.
Even if it’s a large amount and gpu accessible if the throughput sucks that badly then 70B models aren’t usable
What puzzles me is that the even the newer AMD APUs have this issue. The upcoming strix halo is rumoured to be around 140 ish which puts it at very bottom end of Apple devices
Windows machines with dual channel DDR5 are only around 80 GB/s bandwidth.
Nvidia cards are around 1 TB/s, but models with 40+GB of VRAM are more expensive than macs with equivalent RAM capacity.
I would expect that an Nvidia card on Windows would be around twice as fast as apple silicon if you have a model with 40+GB, and from some quick research this seems to be true.
edit: "Any Macbook 64GB can run it at about 6-7 Tok/s using Q4 quantization. 2x3090 can do it much faster at about 18 tok/s" https://www.reddit.com/r/LocalLLaMA/comments/1h9kci3/comment...
The actual ram is lpddr5 - miles slower than what you’d find in even very old dedicated GPUs
It’s as you say though - for some tasks like LLMs that doesn’t matter if you’ve got enough bandwidth to said slow ram…ends up being almost the same thing as having actual fast ram.
It’s a neat trick & little bit frustrated that nobody is copying it. Cause using dirt cheap lpddr5 (about a dollar per gig) but paying Apple’s comical ram upgrade prices feels like a cruel joke.
Rumors are there may be a X3D Threadripper in the works, would be nice to not have to choose between RAM bandwidth and IPC again.
So, neat, I guess, but not convinced I would pay four macbook airs for that.
> The first time I tried it consumed every remaining bit of available memory and hard-crashed my Mac
Also, hallucinations so easily dismissed these days:
> (Deborah Penrose was the mayor of Half Moon Bay for a single year from December 2016 to December 2017—so a hint of some quite finely grained world knowledge there, even if it’s not relevant for the present day.)
I don't think listing an outdated mayor of a tiny town really counts as a hallucination, especially since Half Moon Bay appears to change mayors about once a year.
It told me I used to work for GitHub which is definitely a hallucination, that's never been true. Weirdly a bunch of models make that mistake.
LLMs have incomplete world knowledge and frequently make mistakes. The challenge is learning how to use them anyway.
When I say GPT-4 class I'm talking about being comparable to the GPT-4 that was released in March 2023.
The Llama 3.3 70B model is clearly no way near as good as today's GPT-4o family of models, or the other top-ranking models today like Gemini 1.5 Pro and Claude 3.5 Sonnet.
To my surprise, Llama 3.3 70B is ranking higher than Claude 3 Opus on https://livebench.ai/ - I'm suspicious of that result, personally. I think Opus was the best available model for a few months earlier this year.
There's still a gpt-4 model available via the OpenAI API, but it's gpt-4-0613 from June 2023 - the March 2023 snapshot gpt-4-0314 is no longer available.
I ran one of my test prompts against that old June 2023 GPT-4 model here: https://gist.github.com/simonw/de4951452df2677f2a1a3cd415168...
I'm not going to try for an extensive evaluation comparing it with Llama 3.3 though, life's too short and that's already been done better than I could by https://livebench.ai/
The bar for GPT-4 was so low that unambiguously clearing that threshold should be pretty easy.
What I care about is the things that they're proven to be good at - can I do those kinds of things (RAG, summarization, code generation, language translation) directly on my laptop?
The default llama3.3 model in ollama is heavily quantized (~4 bit). Running the full fp16 model, or even an 8-bit quant wouldnt be possible on your laptop with 64G RAM.
There is no llama 3.3 405B to test, 3.3 only comes in 70B. Are you sure you aren't thinking of llama 3 or 3.1?