Skip to content

test(vision): activate Ollama vision e2e once granite-vision-4.1 lands on Ollama #1187

Closed

Description

@planetf1

Context

PR #1185 fixes the failing Ollama vision tests by splitting them into two tiers:

  1. Structural payload tests — mocked unit tests that verify mellea correctly embeds ImageBlock instances into the Ollama conversation payload. These run in CI and locally with no vision model required.
  2. Dormant live e2e tests — a thin round-trip smoke test that is currently skipped because no current-generation Granite vision model runs on Ollama yet.

What needs to happen

granite-vision-4.1 (ibm-granite/granite-vision-4.1-4b) is the current Granite vision model. It is not yet in the Ollama library (ollama.com/library/granite-vision-4.1 → 404). When it lands, the dormant tests in test/backends/test_vision_ollama.py should be activated.

Activation steps

  1. Verify ollama pull granite-vision-4.1 works.
  2. In test/backends/test_vision_ollama.py:
    • Remove the pytest.skip(...) call from the vision_session fixture.
    • Remove this tracking comment.
  3. Add granite-vision-4.1 to the CI model-pull step in .github/workflows/quality.yml so the e2e tests run in CI.
  4. Optionally add IBM_GRANITE_VISION_4_1_4B to mellea/backends/model_ids.py and update the _VISION_MODEL constant to use it.

Related

Activity

  1. added
    area/backends
    on Jun 2, 2026
  2. added
    blocked/external
    on Jun 18, 2026
  3. AngeloDanducci commented on Jul 14, 2026

    @AngeloDanducci
    Contributor

    I had a PR to open remove the pinning #1392 but after further investigation this was not the cause of the memory usage being too high that we had seen.

  4. self-assigned this
    on Aug 10, 2026
  5. added
    p2
    and removed
    blocked/external
    on Aug 10, 2026
  6. psschwei commented on Aug 10, 2026

    @psschwei
    Contributor
  7. planetf1 commented on Aug 11, 2026

    @planetf1
    ContributorAuthor

    Updated to use the vision model from Hugging Face.

    granite-vision-4.1 still isn't in the Ollama library, but IBM publishes an official GGUF build, so Ollama can pull it straight from HF:

    ollama pull hf.co/ibm-granite/granite-vision-4.1-4b-GGUF:Q4_K_M

    The dormant e2e tests are now active and passing in CI on 3.11/3.12/3.13, with no meaningful change to job runtime. Docs updated too. PR #1527.

  8. added a commit that references this issue on Aug 17, 2026
    6c36731
  9. added a commit that references this issue on Aug 17, 2026
    2c1dd9e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/backendsp2testing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions