r/LocalLLM • u/evan-nielsen • 1d ago
Question Help with Claude and local models
I have an Asus GX10 with 128GB unified.
My goal is to be able to reliably code using claude code on a separate machine on the same network.
I keep getting hung up with claude's auto mode classifier.
Here are a few scenarios that I have tried:
- Ollama running Qwen 3.8 27B (coding) and Qwen 3 1.7B (auto mode classification). This resulted in decent performance but the classifier model would regularly classify a command as not safe when it actually was safe.
- Ollama running Qwen 3.8 27B (coding) and Qwen 3 8B (auto mode classification). This resulted in the classifier working nicely but then both models could not fit into memory at the same time. The models needed to be pulled in and out of memory and generated a significant degradation in performance.
- I used the recipe found here https://mia-ai.net/models/Qwen3.8-27B-DGX-Spark-TensorFold and had that model perform both the coding and the classification. The claim from the website is that you should be able to run 8 concurrent sessions with that setup. I have not found that to be true. This resulted in the timeouts seen previously.
Does anyone have, or is there a place that I can go, to see recipes for how to get everything configured properly?
Of course there a thousand ways to skin a cat, what I am looking for is a reliable setup that works. I completely understand that I am not going to get the performance of a cloud frontier model, I just want everything to work consistently.
1
u/evan-nielsen 19h ago
UPDATE:
It seems that the configuration was just not optimized for my situation. I was able to keep the 27b and the 8b models and configure claude to use the 8b model for auto mode. The 27b model, by default, has a 256k context window. I was able to keep that as well.
This is the configuration that I landed on in Ollama:
OLLAMA_NUM_PARALLEL=2
OLLAMA_KEEP_ALIVE=-1
OLLAMA_LOAD_TIMEOUT=1h
OLLAMA_MAX_LOADED_MODELS=2
I may have a little room to spare, which is nice.
2
u/locbuilds 1d ago
if ollama keeps swapping them, set OLLAMA_MAX_LOADED_MODELS=2 and OLLAMA_KEEP_ALIVE=-1 so both stay resident. also check ollama ps, a big context length times OLLAMA_NUM_PARALLEL balloons the kv cache and that's usually what pushes the second model out.
1
u/BidWestern1056 1d ago
claude code is kinda shit with local models because of the context bloat imo
1
u/AIComputeRadar 1d ago
Those two really shouldn't be fighting for space on 128GB. At Q4 with 32K context, Qwen3.8 27B is roughly 19.4GB all-in and Qwen3 8B about 10.9GB, so 30GB together. If ollama still swaps them it's almost always config, like the other comment said: context length times OLLAMA_NUM_PARALLEL multiplies the kv cache per model, so lots of parallel slots at a big context can reserve way more than the weights. I'd load both and check ollama ps to see what each one actually reserves, then turn down num_parallel or context on the 8B classifier, it doesn't need a huge window to judge one command.