3 ms·
You no longer need a powerful latest-gen GPU to run SOTA models, plus going through complicated setups. MLC-LLM makes it possible to use GPUs from any vendors,
by junrushao1994 3y ago
You no longer need a powerful latest-gen GPU to run SOTA models, plus going through complicated setups. MLC-LLM makes it possible to use GPUs from any vendors, including AMD/Apple/NV/Intel, to run LLMs at reasonable speed, at any platform (win/linux/macos), even a steam deck :-)
The way we make this happen is via compiling to native graphics APIs, particularly Vulkan/Metal/CUDA, making it possible to run with good performance.
- tyfon 3y agollama.cpp is not using the GPU, it runs fine on the CPU (if fast enough) I've scoured the web page for ram requirements for the various models but I can't see anything, will it be able to run let's say the 30B open assistant llama or 65B raw llama model on a consumer gpu (let's say 3060 with 12gb vram) using this? Not trying to take anything away, but the readme etc is very lacking in actual technical details I feel without reading through the code or actually testing it.
- junrushao1994 3y agoThanks for the feedback! This is definitely something we need to do. To share some data, currently the default model is Vicuna-7b, aggressively quantized to 2.9G. We are expanding the coverage to more models, particularly, Dolly and StableLM are just around the corner, needing some clean up work. As a fresh new project, right now we are starting to collect data points of which GPU models are supported well and fixing issues being reported. Please don't hesitate to report in our github issue!
- tyfon 3y agoI see, the 2.9 GB requirements seems to imply a 3 bit weights? In any case I am happy to see these projects taking form. Perhaps one can eventually make the level of quantization dynamic based on the available vram etc :) I will definitively play around with it (on linux though, not a phone!)
- int_19h 3y agoWhen people tried 3-bit quantization for 7B models before, it did not exactly go well in terms of detrimental side effects. Are you using some new quantization techniques that mitigate that?
- azeirah 3y agoLlama.cpp recently added partial GPU acceleration. Model dequantization as well as some BLAS operations have been moved to GPU. It runs a lot faster if you compile with cuBLAS (nvidia) or clblast (other). GPU vram doesn't matter much since it doesn't offload the model to vram.
- eulers_secret 3y agoThe local llama subreddit wiki has good info about RAM requirements: https://www.reddit.com/r/LocalLLaMA/wiki/models/ https://www.reddit.com/r/LocalLLaMA/wiki/models/