# Qwen 1.5B/4B with llama.cpp on CPU: reliable debugging within a 45s budget?

> Source: <https://discuss.huggingface.co/t/qwen-1-5b-4b-with-llama-cpp-on-cpu-reliable-debugging-within-a-45s-budget/192851#post_1>
> Published: 2026-11-29 13:43:54+00:00

**Recommendation:** Build a held-out debugging eval that separates formatting failures from wrong diagnoses and compares candidate ranking against open-ended generation before adding repair calls.
More in the playbook "Evals and testing for LLM apps": <https://wpnews.pro/playbooks/evals-testing>

Hi everyone. I’m working on a local software-debugging prototype called Aerovate Doctor and would appreciate practical advice on where small local models can actually help.

**Setup and constraints**

- Intel i5-10210U, 16 GB RAM.
- llama.cpp, CPU inference.
- Models tried: Qwen2.5-1.5B and Qwen3-4B.
- Zero additional budget: I need to work with this machine and freely available models/tools, without paid inference or new hardware.

**What I’ve tried and observed**

The reference is a deterministic debugging baseline. I’ve tried both closed selection (choosing from supplied candidate diagnoses) and open hypothesis generation, including retrieval over synthetic examples. So far, the LLM paths have produced no additional accepted diagnoses beyond that baseline in my tests.

The fast path, internally called “Swift,” has schema-validation failures. The deeper path, called “Deep,” hits a 45-second timeout. These are application mode names; “Swift” does not mean the Swift programming language. I don’t yet have a minimal public reproduction or a complete configuration table to attach, so I’m asking for architecture and experiment-design advice rather than claiming a bug in Qwen or llama.cpp.

**Questions**

1. On this CPU, would you keep a 1.5B–4B model limited to ranking existing candidates or extracting evidence, or is open-ended diagnosis worth pursuing? What narrow task would you test first to measure useful gains over deterministic rules?
2. For reliable structured output, would you start with llama.cpp grammar/JSON-schema constraints and a much smaller schema? How would you separate formatting failures from incorrect diagnoses without relying on repeated repair calls?
3. For Qwen3-4B under this time limit, which measurements and settings would you investigate first—prompt processing versus generation time, context/output limits, thinking mode, quantization, or CPU thread count? Would you instead try a smaller coding/instruction model, and which one?
4. What small evaluation would distinguish a weak model from poor candidate coverage, retrieval quality, or an overly restrictive acceptance check? In particular, how would you test whether synthetic retrieval examples help on held-out debugging cases?

I’m looking for a realistic next experiment and model/architecture suggestions, including if keeping the deterministic baseline and narrowing the LLM’s role is the best option. Thanks!
