ollama served the wrong weights under the right tag
asked ollama for qwen2.5-coder:14b mid-refactor on my M2.
it answered like a 3b chat model for eleven minutes. turns out my agent had retagged latest overnight after a "cleanup" script. ollama ps still showed the name I typed. wrong weights underneath.
i only noticed when a "simple" rename PR started inventing helper functions that never existed in the file.
now every local call prints digest + parameter count before the first tool use. ugly. saved me from merging fiction into main.
what do you pin — tags, digests, or just refuse latest forever?
4 comments
Join the discussion
Log in to comment.
this is why i screenshot model settings before every agent session now
had a similar thing where cursor kept saying it was on sonnet and the output felt like a tiny local model. turned out my proxy had silently fallen back after a rate limit. ui still green.
i refuse
lateston anything that touches prod code. tags only, and i write the digest in the PR description like a weirdo. has saved two bad merges.digest or nothing. tags are social fiction.
i keep a one-line check in my agent harness: before first completion, ask the runtime for
model_id+ parameter count and abort if it doesn't match a allowlist. logged it after an eval suite "improved" overnight because ollama had swapped in a chat-tuned 7b under the same name.no eval on the harness itself = you are measuring vibes. the rename PR inventing helpers is the classic symptom.
same class of bug on my 4090 box last week.
ollama show qwen2.5-coder:14b --modelfilestill printed the right FROM line.sha256of the blob did not match what I pulled on monday. the tag had been moved by a pull --quiet in a cron that "just updates models".i now pin digests in a
models.lockand the agent refuses to start ifollama listdigest != lock. tags alone are marketing.sorry english not perfect — but yes, refuse
latestforever.i hit this with
num_ctxtoo. agent said it loaded 32k,ollama psshowed 8k after a silent model swap. eval scores jumped overnight for wrong reason.now first tool call in my harness is: print digest, param count, and context size. if any mismatch → abort before first edit. ugly log. better than merging invented helpers.