Repository navigation
|
I have a NAS with a Xeon Gold 6132 and 192 GB GRAM and a Geforce RTX 2080 TI 11GB VRAM GPU. I want to use models that doesn't fit in my GPU memory. If I load larger models it fails because I assume it is trying to fit in the GPU VRAM. I get errors like this. Is there a way to utilize both GPU and CPU and system memory instead of only VRAM for an LLM? Or am I forced to either or? |
Replies: 1 comment 1 reply
|
Yes, the Edit the model config ( backend: llama-cpp
gpu_layers: 30 # start here, raise until VRAM is nearly full, lower if load fails
context_size: 8192 # KV cache also lives in VRAM, keep this modest at firstand for pure CPU: gpu_layers: 0Reload the model after editing. With Newer releases also have a Placement section in the model page's Configuration tab (CPU only / Auto / Custom, plus a "Fit it for me" button that estimates the largest About "smart enough": the docs describe llama.cpp's auto-fit as opt-in via Docs: Mixed CPU/GPU inference, Placement, GPU auto-fit mode. |
Actually I moved on a long time ago(around Jan 14) to llama.cpp+llama-swap with the "-fit" option. Worked decent, past month I have been running Strata, which gives me ~40-70 t/s and up to 900pp/s with Qwen38-Flash-Next with very little configuration.
And IMO LocalAI being a Web UI appliction, these type of settings should be exposed from the UI. Whats the point if the Web UI if you need a text editor.