Skip to content

Wrong/unverifiable ollama_name values in model_ids.py; registry fallback in test_ollama_model_names_exist is broken #1343

Closed

Description

@planetf1

Problem

test/backends/test_model_ids.py::test_ollama_model_names_exist validates each ModelIdentifier.ollama_name by:

  1. Checking the local Ollama cache (client.show())
  2. If not cached, doing a HEAD request to https://registry.ollama.ai/v2/{base}/manifests/{tag}

The registry fallback is broken. registry.ollama.ai/v2/ returns HTTP 404 for every model, including ones that are valid and pullable (verified: mistral:7b returns 404 from the registry yet pulls and runs fine). This means the test can only reliably validate names that are already in the local cache. Any model not cached locally hard-fails unconditionally, regardless of whether its Ollama name is actually correct.

Confirmed wrong names (registry 404 + cannot be pulled)

Four entries have ollama_name values that have never been published on Ollama:

Constant ollama_name Status
META_LLAMA_4_SCOUT_17B_16E_INSTRUCT llama4:scout Not published on Ollama
META_LLAMA_4_MAVERICK_17B_128E_INSTRUCT llama4:maverick Not published on Ollama
OPENAI_GPT_OSS_20B gpt-oss:20b Not published on Ollama
OPENAI_GPT_OSS_120B gpt-oss:120b Not published on Ollama

These were confirmed via ollama pull attempts and alternative tag variants — they genuinely don't exist.

Unverifiable names (too large to cache locally; registry check unreliable)

Five more entries fail the test solely because they are not in the local cache and the registry fallback always 404s. Their ollama_name values may or may not be correct — we cannot tell without attempting a pull on hardware that can fit them:

Constant ollama_name
META_LLAMA_3_3_70B llama3.3:70b
MISTRALAI_MISTRAL_SMALL_24B mistral-small:latest
MISTRALAI_MISTRAL_LARGE_123B mistral-large:latest
QWEN3_14B qwen3:14b
MS_PHI_4_14B phi4:14b

Fixes needed

1. Fix the confirmed wrong names — set ollama_name=None on the four entries above until the models are actually published on Ollama. The test skips None values.

2. Fix or remove the registry fallback — either find the correct Ollama registry API (the current v2/ OCI path does not work), or replace the fallback with a lightweight ollama pull --dry-run / metadata fetch if the Ollama CLI exposes one. Until fixed, the test gives false "name invalid" failures for any model not in the local cache.

3. Consider a require_ollama_model predicate — rather than hard-failing for uncached large models, skip with a message pointing to how to pull them. This makes the test informative rather than noisy for developers without 70B+ models cached.

Activity

  1. changed the title [-]Wrong ollama_name values in model_ids.py cause test_ollama_model_names_exist to hard-fail unconditionally[/-] [+]Wrong/unverifiable ollama_name values in model_ids.py; registry fallback in test_ollama_model_names_exist is broken[/+] on Jun 25, 2026
  2. added
    area/backends
    p2
    bug
    on Aug 10, 2026
  3. planetf1 commented on Oct 5, 2026

    @planetf1
    ContributorAuthor

    Status (2026-10-05): the registry-fallback half no longer reproduces; the wrong-names half remains.

    Re-checked the external claim just now: HEAD https://registry.ollama.ai/v2/library/mistral/manifests/7b returns 200 — the registry API is up for library models, so the "404 for every model" failure that made the fallback unverifiable no longer holds. Whatever changed on Ollama's side, the fallback path in test_model_ids.py can now actually verify non-hf.co/ names.

    Still live, verified in mellea/backends/model_ids.py: the flagged entries are unchanged — llama4:scout (:220), llama4:maverick (:228), gpt-oss:20b (:434), gpt-oss:120b (:441). (The #1600 work added HF-Hub verification for hf.co/ refs; that's a separate path.)

    Re-scoped, the remaining work is one pass: re-verify against the now-queryable registry which of the flagged names are genuinely unpublished or renamed (the llama4 family in particular), and set the dead ones to None. The broken-fallback concern can be retired from this issue.

  4. self-assigned this
    on Oct 6, 2026
  5. planetf1 commented on Oct 9, 2026

    @planetf1
    ContributorAuthor

    Status (2026-10-09): resolved externally, and the registry fallback is reliable again. Suggestion: close as done.

    Re-derived against main at 887fcde1e plus live registry checks today:

    • The fallback works again: HEAD https://registry.ollama.ai/v2/library/mistral/manifests/7b returns 200, so the "404 for every model" failure mode that made the fallback unverifiable is gone.
    • The four entries this issue confirmed as never published (llama4:scout, llama4:maverick, gpt-oss:20b, gpt-oss:120b) now return 200 from the registry. Ollama has published them since June. The five "unverifiable" names also resolve.
    • All 44 ollama_name values in mellea/backends/model_ids.py (the file moved from mellea/helpers/ since this issue was filed) were checked today: 43 return 200, and the one hf.co/... entry is validated against the Hugging Face Hub by the test instead.

    Both halves of the issue are moot: no wrong names remain to null out, and the fallback the test depends on works. Fixes 1-3 in the issue body are all no-ops against the current registry.

    Propose to close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/backendsbugp2testing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions