Skip to content

Hugging Face model download failure with some models #4

@anirbanbasu

Description

@anirbanbasu

Describe the bug
Running odir hf-model-download fails for certain models. Likewise, odir od hf-list-tags for those models also lists incorrect or unusable tags.

To Reproduce
Run odir hf-list-tags microsoft/Phi-3-mini-4k-instruct-gguf to list the tags, which will output Model tags: (2 tags): ["microsoft/Phi-3-mini-4k-instruct-gguf:fp16", "microsoft/Phi-3-mini-4k-instruct-gguf:q4"].

Run odir hf-model-download microsoft/Phi-3-mini-4k-instruct-gguf:q4, which will fail with a HTTP 400 response from the server Failed to fetch manifest for microsoft/Phi-3-mini-4k-instruct-gguf:q4: HTTP request failed: HTTP status client error (400 Bad Request) for url (https://huggingface.co/v2/microsoft/Phi-3-mini-4k-instruct-gguf/manifests/q4).

Expected behaviour
Correctly list available model tags and download the model for the requested tag.

Screenshots

Running list-tags:

% odir hf-list-tags microsoft/Phi-3-mini-4k-instruct-gguf
Model tags: (2 tags): ["microsoft/Phi-3-mini-4k-instruct-gguf:fp16", "microsoft/Phi-3-mini-4k-instruct-gguf:q4"]

Running model-download:

% odir hf-model-download microsoft/Phi-3-mini-4k-instruct-gguf:q4
Downloading Hugging Face model Phi-3-mini-4k-instruct-gguf from microsoft with q4 quantisation
[2026-02-20T13:42:12Z INFO  odir::downloader::hf_downloader] Downloading manifest from https://hf.co/v2/microsoft/Phi-3-mini-4k-instruct-gguf/manifests/q4
[2026-02-20T13:42:13Z ERROR odir::downloader::hf_downloader] Failed to fetch manifest for microsoft/Phi-3-mini-4k-instruct-gguf:q4: HTTP request failed: HTTP status client error (400 Bad Request) for url (https://huggingface.co/v2/microsoft/Phi-3-mini-4k-instruct-gguf/manifests/q4)
[2026-02-20T13:42:13Z ERROR odir] Error downloading HuggingFace model 'microsoft/Phi-3-mini-4k-instruct-gguf:q4': HTTP request failed: HTTP status client error (400 Bad Request) for url (https://huggingface.co/v2/microsoft/Phi-3-mini-4k-instruct-gguf/manifests/q4)

Operating environment (please complete the following information):

  • OS: macOS Tahoe 26.2,Darwin Kernel Version 25.2.0: Tue Nov 18 21:09:40 PST 2025; root:xnu-12377.61.12~1/RELEASE_ARM64_T6000 arm64.
  • Cargo: 1.93.0 (083ac5135 2025-12-15)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions