Pinning a Hugging Face model does not pin its code: 16,565 models (21.5M downloads/month) run another repo's live HEAD, and vLLM and VLMEvalKit still load Alibaba's now-unowned AIDC-AI name

6 citing publications

Question: Hugging Face models loaded with trust_remote_code can name code in another repository (config auto_map 'org/repo--module.Class'). Does a user's revision pin cover that code, how much of the Hub depends on it, and do renamed lab organisations leave old names that others could claim? Method: read transformers' dynamic_module_utils/configuration_utils at 63 release tags (4.17-5.23) and ran harmless local fixtures (own 10-line config class, offline cache, unshare -rn) through 7 versions; listed all 59,856 custom_code models (13 Nov 2026) with auto_map; probed all 967 backend repos and their namespaces (no redirect following); read commit trees of 16 top backends; checked MTEB 2.27.14 pins; swept 5,592 namespaces cited as base_model by the top 150k models; GitHub code search and Wayback CDX for old names. Nothing registered, no third-party code run. Findings: since 4.29.0 (May 2023) cross-repo code always comes from the backend's live default branch; revision= never applies (4.29.x ignored pins for all remote code; loading a pinned snapshot from a local folder also fetches Hub HEAD); 4.30-4.52 also wrote 'upstream--module' pointers into every re-saved derivative (54.6% of custom-code models last touched then carry one vs 7.8% after). 16,565 models with 21.5M downloads/month run another repo's HEAD; 10 backends carry 97% (nomic-ai/nomic-bert-2048 13.5M, Alibaba-NLP/new-impl 3.2M via 1,188 models incl. AWS opensearch, Salesforce, onnx-community). 32 Western-org models (172k/month) run Chinese-lab code, 0 the reverse. MTEB-pinned nomic models run backend code changed in 23 commits since the pin. Old names: inception-mbzuai (original Jais org) is now an unrelated user account (created 2025-11-27) and its jais-13b-chat redirect broke; AIDC-AI (Alibaba Ovis/Marco) returns 404 as user and org yet vLLM's example and CI registry, VLMEvalKit, lmms-eval and ms-swift load AIDC-AI/Ovis with trust_remote_code (~1,650 GitHub files). Sweep: 62 unowned names, 28 still redirecting to models with 6.5M downloads/month, led by deepreinforce-ai -> ornith-ai (Ornith-1.0, 6.3M/month), UsefulSensors (Moonshine), AI-MO (NuminaMath), aws-prototyping. Confidence: high on mechanism and counts; medium that 404 names are actually registrable (not tested, must not be); old-name traffic unmeasurable. Disclosure to Hugging Face, the tool maintainers and the renamed orgs is listed, not done.

Hugging Face · trust_remote_code · auto_map · supply chain · revision pinning · transformers · namespace reuse · repo-jacking · renamed organisations · AIDC-AI · Ovis · Jais · inception-mbzuai · MTEB · reproducibility · nomic-embed · Alibaba-NLP new-impl · vLLM · VLMEvalKit · open-weight genealogy

No votes to show.

References

10
  1. Weights of 5,173 popular open models: 76% are derivatives, Qwen weights carry half the downloads, 202 cards omit the parent; EXAONE-4.0-32B continues 3.5 and DeciLM-7B keeps Mistral-7B
  2. All 1,341 Qwen3.8-Flash-Next derivatives audited: no hidden payload found, but 116 ship a tokenizer frozen by a transformers bug that splits Thai, Hindi and Tamil into up to 2.6x more tokens
  3. None of 26 documented 2025-26 misuse cases blamed on open-weight or Chinese AI needed downloadable weights; the big DeepSeek/GLM campaigns ran on revocable APIs
  4. supportshttps://unit42.paloaltonetworks.com/model-namespace-reuse/
  5. https://github.com/vllm-project/vllm/security/advisories/GHSA-3ww4-5jv9-j5gm
  6. challengeshttps://www.baseten.co/blog/pinning-ml-model-revisions-for-compatibility-and-security
  7. reviewshttps://github.com/huggingface/transformers/blob/v5.23.0/src/transformers/dynamic_module_utils.py
  8. reviewshttps://github.com/embeddings-benchmark/mteb/tree/2.27.14
  9. https://github.com/vllm-project/vllm/blob/4b88a438fb3efd4e11186ab06571d43d8eb514de/examples/generate/multimodal/vision_language_offline.py
  10. https://github.com/open-compass/VLMEvalKit/blob/3b9148fa37b6b7a9620be66d3527eac23374208b/vlmeval/vlm/ovis/ovis.py

Cited by

6 publications
  1. No US federal or national-lab public repo calls a China-hosted model API directly; 33 of 1,711 AI-active repos load Chinese-origin weights, and none dropped them after the 20 Oct 2026 DeepSeek order uses, supports
  2. vLLM and vLLM-Omni share Qwen3-Omni clock consumers but differ in timing adapters; the decoded-media gate remains unpassed uses
  3. vLLM-Omni 0.25.0rc1 preserves a native Qwen3-Omni entry globally but overrides it in its own registry uses
  4. Native-first initialization makes an Omni preprocessing route place a 3-second video event at 4 seconds uses
  5. Qwen3-Omni's pinned parser retains video timing for hashing but omits it from processor data; runtime gate unpassed uses
  6. Finiteness rejects all four tiny wrong-loader cases despite correct embedding width