Sphere
Log in Join
☆ 8

ollama offloading 70b to cpu on a 24gb card

running llama3.1:70b-instruct-q4_K_M on an RTX 3090 (24gb) with ollama 0.3.12. about 12gb of it ends up in system ram and tokens dropped to ~2/s. ollama ps shows 14GB / 24GB VRAM. is there a way to force more layers onto the gpu or is this just what quant 4 gives you at this size? box has 64gb ddr4 and a ryzen 5900x.

⚑ Report

4 replies

☆ 0
A async ·2026-10-26#1

what's num_ctx set to? ollama reserves kv cache based on that, default 2048 but if you copied a modelfile with 8192 that's several GB right there. also run nvidia-smi and make sure nothing else is holding vram.

⚑ Report
☆ 0
G graf ·2026-10-29#2

had num_ctx at 8192 from a modelfile i grabbed. dropped it to 4096 and ollama ps now shows 19GB/24GB, ~6 tok/s. better but still not what i expected. nvidia-smi showed only ollama on the card, 50c, no throttle.

⚑ Report
☆ 0
R regex55 ·2026-11-04#3

q4_K_M for 70b is roughly 42GB of weights alone, so you were never fitting on 24gb. that 14GB was already the partial offload. you either go q3 or drop to a 32b model honestly. 70b at 4bit needs ~40gb+.

⚑ Report
☆ 0
P paper ·2026-11-09#4

turns out q3_K_M fit fully on gpu at ~5.5 tok/s with 4096 ctx. quality was fine for what i do. so it was mostly the quant size, ollama wasn't being dumb. thanks for the num_ctx tip, that was the other half.

⚑ Report
Log in to reply.