Skip to content

Local models

Luis edited this page Dec 2, 2026 · 3 revisions

Local models

What creep does today on a local model in Ollama, measured on the real user path: creep init, doctor, estimate, then creep scan --mode pr on every testdata/apps twin, with a real calibration and no --tier override. The Ollama e2e workflow re-runs it daily and uploads the numbers as the ollama-e2e artifact (#367).

Short version: the pinned small model is refused as unfit (exit 3), which is the correct answer for it. The ollama preset stays unverified until a local model passes end to end.

Latest run (2026-11-28)

Model qwen2.5-coder:1.5b (digest d7372fd82851, temperature 0, seed 7, num_ctx 16384) in Ollama 0.40.17 on a GitHub ubuntu-latest runner (CPU), HTTP contract openai, creep from PR #379 on top of main 7a2591e. Workflow Ollama e2e, run 46100283203 (21 min, green). Nothing forced: no --tier, fresh calibration cache.

Step Result
creep init exit 0, commented-out creep.yaml
creep doctor exit 0: model reachable, a synthetic tier S discovery batch came back inside the schema with its canary; usable context holds the 10 KiB tier S needs (num_ctx is raised to 16384, so the too-small-context warning had nothing to catch here)
creep estimate 73 calls, ~43k tokens in, "6m5s" per tier
Calibration (first scan) 89 calls (83 tasks, 3 tool, 3 context), 62,049 tokens in, 1,736 out, 6 min 56 s; tier S; unfit (below_chance): 16 of 64 planned-class tasks right (95% lower bound 0.160, needs 0.5), 23 of 32 safe twins flagged (needs at most half)
creep scan --mode pr (default), every twin exit 3 on all 8 twins: model unfit (below_chance); the calibration is cached, so each later refusal takes under a second
creep why sink-1 exit 0

Past the floor (--allow-unfit-model, every finding labeled unreliable_model):

App Vulnerable: recall Vulnerable: other findings Safe twin: false positives Exit and reason (vulnerable / safe)
express 2/4 2 3 4 truncated / 4 invalid_output
fastapi 2/3 2 4 4 parse_failed / 4 parse_failed
flask 3/4 1 4 4 truncated / 4 truncated
flaskpg 2/2 2 4 4 parse_failed / 4 inconclusive
total 9/13 7 15 no run with exit 0 or 1

Each scan after calibration took 26 to 132 s.

What this means for you

  • A 1–3B model is too small: calibration finds it below chance and creep scan exits 3. --allow-unfit-model scans anyway, but every finding is labeled unreliable_model, and on these apps the safe twins got as many findings as the vulnerable ones.
  • Calibration costs about 7 minutes on a 4-core CPU runner (89 calls); it is cached for 30 days per model and settings.
  • Raise Ollama's num_ctx (16384 was used here); creep doctor warns when the usable context is below what a discovery call needs.
  • No mid-size (7–8B) model has been measured yet. Results from your own hardware are welcome: Sharing model results.

Setting up Ollama

Moved from the README (2026-12-02).

Point the openai contract at http://127.0.0.1:11434/v1 (or use the ollama preset) and give the model a context window large enough for creep's calls. Ollama's default num_ctx is far smaller than a discovery call (the whole call, prompt included: about 11 KiB at tier S, 36 KiB at M, 133 KiB at L, plus the reply), and Ollama cuts a longer input silently, system prompt first. Create the model with num_ctx 16384 or more, as the nightly bench does:

printf 'FROM qwen2.5-coder:7b
PARAMETER num_ctx 16384
PARAMETER temperature 0
' > Modelfile
ollama create creep-qwen -f Modelfile   # then model.name: creep-qwen

creep doctor checks the usable context: Models and presets.

Which replay fixtures are live

Sources: #356, ADR 0038. The reader's tier-S replies, the small-model discovery batch (internal/discover/testdata/replay/live-s), one calibration (internal/calibrate/testdata/replay/live_seed1.json) and the published bench fixture were recorded on 2026-12-02 from the pinned qwen2.5-coder:1.5b (run); each has a header naming the model, digest, date and the outcomes it replays to. That model is unfit and calibrates at S, so it cannot stand in for a model that calibrates at M or L (the 7B the nightly bench pins since #355 is unfit too): the reader's tier-M and tier-L replies were recorded on 2026-12-02 on a maintainer's machine through the claude-code preset (Claude Code 2.1.327, every call through the gateway, tool canary first), tier M from claude-haiku-5-5, which creep's calibration places at M (57 of 64), and tier L from claude-sonnet-5-5, which it places at L (64 of 64); they agree with expected.json on 16 and 15 of 18 verdicts, and their headers name the model, preset and CLI version instead of a digest and run (#385, ADR 0038 amendment, Proposed). Only the three seed-1 calibration fixtures are still synthesized from ground truth, by design, and say so in their headers. Live replies vary between runs of the same pinned model (the committed reader run agreed with expected.json on 9 of 18, an earlier run on 7 of 18): the committed run is the reviewed one.

Clone this wiki locally