News for hackers. Stuff that matters.
Re:LLaMA-7B in Pure C++ with full Apple Silicon support by minxomat on Saturday March 11, 2023 @04:49AM (#35106925)
So if I'm reading this right, 65B at 4bit would consume around 20GB of VRAM and ~130GB of system RAM?
Re:LLaMA-7B in Pure C++ with full Apple Silicon support by MacsHeadroom on Saturday March 11, 2023 @06:32AM (#35107396)
No, LLaMA it doesn't require any system RAM to run.

It requires some system RAM to load the model into VRAM and to compile the 4bit quantized weights.

But if you use pre-quantized weights (get them from HuggingFace or a friend) then all you really need is 20GB of VRAM and maybe around 2GB of system RAM.

Re:LLaMA-7B in Pure C++ with full Apple Silicon support by minxomat on Saturday March 11, 2023 @07:34AM (#35107783)
The full use case includes quantisation, which the repo points out uses a large amount of system RAM. Of course that’s not required if you skip that step.
Re:LLaMA-7B in Pure C++ with full Apple Silicon support by MacsHeadroom on Saturday March 11, 2023 @07:22PM (#35114605)
Judging from downloads of the 4bit file and how many people I've seen post about quantizing it themselves, around 99% of people are just downloading the pre-quantized files.

I would not personally call compilation of software part of its "use case." It's use case is text generation.

Re:LLaMA-7B in Pure C++ with full Apple Silicon support by nl on Sunday March 12, 2023 @12:43AM (#35117083)
Quantisation is a once off process. I suspect most people who don't have access to a machine with enough RAM and don't want to use the pre-quantized version can afford the $20 to hire a big cloud server for an day.

Or it is probably possible to make it work slowly using a swapfile on Linux.

Re:LLaMA-7B in Pure C++ with full Apple Silicon support by Tepix on Monday March 13, 2023 @05:02AM (#35133000)
Closer to 38-40GB VRAM (and hardly any RAM).