Repository navigation
fix: remove granite 3 vision from warmup pin - #1392
AngeloDanducci wants to merge 1 commit into
Conversation
Signed-off-by: AngeloDanducci <[email protected]>
ajbozarth
left a comment
There was a problem hiding this comment.
the change looks ok, but it seems like the AI decided to pontificate in the comments
|
I was extra verbose in asking to show the work on why the existing pin should be removed and what would be needed to avoid this in the future (main problem seems to stem from having two models warmed and pinned simultaneously - and I know vision is large). Possible that this isn't sufficient and the parallel async calls end up causing the same resource problem anyway but in the interim this has potential to alleviate the issue I think. |
ajbozarth
left a comment
There was a problem hiding this comment.
Some feedback from Claude:
The diff is clean and correct as cleanup — both lists updated symmetrically, comments clear, and the audit table checks out (ollama vision e2e self-skips, openai vision uses granite4.1:3b under gh_run==1, docs examples aren't collected by pytest ... test).
One question on the framing / the bug label: I don't think the vision pin was ever resident in the quality job, so I'm not sure this fixes #1388.
- The quality workflow only pulls
granite4.1:3b(quality.yml:100-106) —granite3.2-visionis never pulled in CI (onlyrun_tests_with_ollama_and_vllm.shpulls it, and that script isn't wired into any GH Actions workflow). - The warmup does
POST /api/generate, which does not auto-pull a missing model — it returns aResponseErrorthat theexceptswallows as a warning. So in CI the vision warmup was a silent no-op consuming zero resident memory.
If that's right, this is safe/correct cleanup but won't reduce memory pressure — the actual segfault fixes are the ones #1388 lists (treat ResponseError/HTTP 500 as server-death, OLLAMA_MAX_LOADED_MODELS=1, pin the installer). Worth grepping a recent CI log for Warmed up and pinned: granite3.2-vision vs Warmup failed for granite3.2-vision to confirm which happened. If it was always "Warmup failed," suggest reframing as "remove dead vision pin" and leaving #1388 open for the memory-pressure fixes.
|
Hmm double checked and I think the claude feedback is correct.
Probably still worth adding the cleanup but this is a noop on #1388 now. Removed fixes, updated top PR comment as well as the comment on the followup vision CI issue. |
yeah that is used by |
Pull Request
Issue
Originally was for #1388 but after further investigation this is not currently contributing to that.
Description
test/conftest.py — dropped granite3.2-vision from both the warmup-pin list and the evict list (each now ["granite4.1:3b"]), with breadcrumb comments explaining the removal and instructing that reactivation (per #1187) must pin the vision model sequentially (evict granite4 first), not in parallel. Verified the file still parses. Currently this is unused, and was never actually called via the quality CI check as --group-by-backend was never passed.
Where
granite3.2-visionis referenced, and why none of it runs in CICurrently pinned in CI:
test/conftest.pywarms & pinsgranite3.2-visionwithkeep_alive=-1in the Ollama-group warmup (pytest_runtest_setup, ~L598) and evicts it in the matching teardown (~L624). This was the only thing keeping the model resident in CI and it's not run in the quality check.test/conftest.py(warmup pin, ~L598 + evict ~L624)test/backends/test_vision_ollama.py(live e2e)skip: availability probe hits/api/tags, andgranite-vision-4.1is not in the Ollama library (all name variants 404). Reactivation gated on #1187.test/backends/test_vision_openai.pygranite3.2-visiononly in thegh_run != 1(local) branch; undergh_run == 1(CI) it points atgranite4.1:3b. So CI never touches the vision model.docs/examples/image_text_models/vision_ollama_chat.py# pytest: ollama, e2e, but the quality CI job runspytest ... test— an explicit path that overridestestpaths = ["test","docs"], sodocs/is never collected in CI.docs/examples/image_text_models/vision_litellm_backend.pydocs/not collected by thepytest ... testinvocation).docs/examples/m_serve/m_serve_example_multimodal_image.pydocs/examples/image_text_models/README.md# pytest:marker, so never collected anywhere.docs/docs/how-to/use-images-and-vision.md# pytest:marker.docs/versioned_docs/version-0.7.0/how-to/use-images-and-vision.mdNet: every CI-collected test that touches vision either self-skips (no Ollama vision model) or uses
granite4.1:3bunder CI. The doc examples that reference the vision model are not collected by CI at all.I have added a comment to the issue for activating granite-vision-4.1 when available on ollama to avoid the dual model resource constraint we appear to be running into when re adding the vision tests in CI (that are currently skipped anyway awaiting granite-vision-4.1).
Testing
Attribution
Adding a new component, requirement, sampling strategy, or tool?
If your PR adds or modifies one of the types below, check the matching box. A checklist of type-specific review items will be posted as a comment.
NOTE: Please ensure you have an issue that has been acknowledged by a core contributor and routed you to open a pull request against this repository. Otherwise, please open an issue before continuing with this pull request.