[conftest] Fix EROFS fallback for kernel downloads via HfApi (#47791)
[conftest] fix EROFS fallback for kernel downloads via HfApi The CI read-only cache fallback wrapped `huggingface_hub.hf_hub_download` but missed `huggingface_hub.hf_api.hf_hub_download` — the module-level name that `HfApi.hf_hub_download` resolves at call time. Third-party libraries such as `kernels` call `api.hf_hub_download(...)` (HfApi instance), so their downloads bypassed the EROFS retry entirely. Patch that reference explicitly; `snapshot_download` is unaffected because it imports `hf_hub_download` from `file_download.py` directly. Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
Y
Yih-Dar committed
94e26250db8a03e2d6b91369e9846056542ed2ff
Parent: 5d6aa36
Committed by GitHub <noreply@github.com>
on 8/5/2026, 9:24:59 AM