Skip to content

Accept a canonical Hugging Face model URL - #5

Open
kimminhyun-ai wants to merge 1 commit into
mainfrom
fix/canonical-hf-model-ids
Open

kimminhyun-ai wants to merge 1 commit into
mainfrom
fix/canonical-hf-model-ids

Conversation

@kimminhyun-ai

Copy link
Copy Markdown
Contributor

ainize chat https://huggingface.co/gpt2 was refused with "Use https://huggingface.co//". The parser required two path segments, but the oldest and most-used repositories on the Hub are canonical: they sit at the root with no owner segment, and their ID is the bare name a runtime serves them under — gpt2, distilgpt2, bert-base-uncased.

Pointing at the rewritten openai-community/gpt2 is not a workaround: that is a different string, so a node actually serving gpt2 answers "requested model is not served by this node".

Both shapes now parse. Dataset, Space and docs paths are still refused — by a reserved-prefix list rather than by segment count — and credentials, queries and fragments are refused as before. Existing rejection cases are unchanged and covered.

Found while running the 3rd-year certification metric 5 (model support count): three of the first ten target models were canonical repositories and could not be reached at all.

🤖 Generated with Claude Code

https://claude.ai/code/session_019hZqdLKnVfzvRf9mus6NNh

`ainize chat https://huggingface.co/gpt2` was refused. The parser required
`<owner>/<model>`, but the oldest and most-used repositories on the Hub are
canonical: they sit at the root with no owner, and their ID is the bare name
a runtime serves them under. `gpt2`, `distilgpt2`, `bert-base-uncased` were
all unreachable this way, and pointing at the rewritten `openai-community/gpt2`
does not help — that is a different string, so a node actually serving `gpt2`
answers "not served by this node".

Both shapes now parse. Dataset, Space and docs paths are still refused, by a
reserved-prefix list rather than by segment count, and credentials, queries and
fragments are refused as before.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019hZqdLKnVfzvRf9mus6NNh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant