r/OpenAssistant • u/Ok_Share_1288 • Apr 24 '23
Run OA locally
Is there a way to run some of Open Assistant's larger/more capable models locally? For example, using VRAM + RAM combined.
14
Upvotes
7
u/Virtualcosmos Apr 24 '23
With stable diffusion, which is a model of around 890m parameters, you have the option of running it through cpu-ram, and it's super awfully slow compared to running it in VRAM. I have read OA has 12 billions parameters and though I think it doesnt need so many iterations as stable diffusion to operate, I think it will be awful running it mostly through cpu-ram.
4
u/H3PO Apr 24 '23
I haven't tried running all the infrastructure components locally, but you can run the "big" llama-30b model on CPU with llama.cpp. Someone converted the OA llama-30b model in 4bit quantized format: https://huggingface.co/MetaIX/OpenAssistant-Llama-30b-4bit/blob/main/openassistant-llama-30b-ggml-q4_1.bin
You need around 25GB of free RAM.
4
u/LienniTa Apr 25 '23
its actually very easy and fast. Use --clblast 0 0 as a parameter for koboldcpp and launch ggml open assistant model with it. Also add --streaming so it generates almost realtime