News for hackers. Stuff that matters.
Re:Alpaca- An Instruct Tuned Llama 7B. Responses on par with... by zitterbewegung on Monday March 13, 2023 @09:36PM (#35146143)
LLAMA.cpp with 65B parameters runs on a MacBook M1 Max with 64GB of RAM. See https://gist.github.com/zitterbewegung/4787e42617aa0be6019c3...
Re:Alpaca- An Instruct Tuned Llama 7B. Responses on par with... by notpushkin on Monday March 13, 2023 @11:55PM (#35147249)
What's the correlation between parameter count and RAM usage? Will LLaMA-13B fit on my MacBook Air with 8 GB of RAM or am I stuck with 7B?
Re:Alpaca- An Instruct Tuned Llama 7B. Responses on par with... by maxxk on Tuesday March 14, 2023 @01:07AM (#35147647)
13B uses about 9GB on my MacBook Air. If you have another machine (x86) with enough RAM to convert the original LLaMA representation to GGML, you can give it a try. But quantization step must be done on MacBook.

Maybe it is more feasible for you to use 7B with larger context. For some "autocompletion" experiments with Python code I had to extend context to 2048 tokens (+1-1.5GB).

Re:Alpaca- An Instruct Tuned Llama 7B. Responses on par with... by cfn on Tuesday March 14, 2023 @03:38AM (#35148405)
I have also seen it working on a Mac Studio with 64Gb of RAM. It is quite slow, not unbearably so, but slow.
Re:Alpaca- An Instruct Tuned Llama 7B. Responses on par with... by aortega on Tuesday March 14, 2023 @04:33AM (#35148725)
That is still a 4000 usd computer. You can get 2 RTX3900 used for ~1000 usd and run 65B much faster.

I have a discord server up serving almost 500 users with 65B.

https://twitter.com/ortegaalfredo/status/1635402627327590400

For some things is better than GPT3, for other even Alpaca is better.

Re:Alpaca- An Instruct Tuned Llama 7B. Responses on par with... by zitterbewegung on Tuesday March 14, 2023 @09:11AM (#35150883)
How do you make it load on two GPUs or does llama.cpp does it automatically? I have a setup with a threadrippper and a RTX3090 and a Titan RTX. I haven't had the time to set it up so that's why I have been using my Mac.
Re:Alpaca- An Instruct Tuned Llama 7B. Responses on par with... by kkielhofner on Tuesday March 14, 2023 @10:30AM (#35152116)
llama.cpp doesn't use the GPU at all. The genius *.cpp (whisper.cpp, llama.cpp) projects are specifically intended to optimize/democratize otherwise GPU only models to run on CPU/non-GPU (CUDA, ROCm). Technically speaking the released models are capable of running on GPU via standard framework (PyTorch, TensorFlow) support for CPU but in practice without a lot of optimization they are incredibly slow to the point of useless, hence *.cpp.

You want something along these lines (warning: unnecessarily potentially offensive):

https://rentry.org/llama-tard-v2

Re:Alpaca- An Instruct Tuned Llama 7B. Responses on par with... by aortega on Tuesday March 14, 2023 @11:34AM (#35153191)
Llama.cpp takes advantage that LLaMa 7B is a tiny, very optimized model. It would run in anything, and very fast. I really doubt you can run the 30B or 65B models at acceptable speed on a CPU at least for a couple years. (I'm ready to eat my words in a couple weeks)
Re:Alpaca- An Instruct Tuned Llama 7B. Responses on par with... by zitterbewegung on Tuesday March 14, 2023 @11:54AM (#35153549)
Okay my thread ripper can handle it because it has a 128GB of Ram.