You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug Report] download_file_from_hf drops revision, local_files_only and other keyword-only kwargs #2038
TransformerBridgeBug specific to the new TransformerBridge systembugSomething isn't workingcomplexity-simpleSimple issues, which may be good for beginners
utils.download_file_from_hf silently ignores Hub options like revision, local_files_only, token and force_download. It passes extra kwargs through select_compatible_kwargs(kwargs, hf_hub_download), and that helper keeps only names from inspect.getfullargspec(...).args. In huggingface_hub, those options are keyword-only parameters of hf_hub_download, so they are never in .args and get dropped. (getfullargspec also doesn't follow functools.wraps, and hf_hub_download is decorated.)
So download_file_from_hf(repo, file, revision="some-commit") downloads the latest file instead of the pinned one, and local_files_only=True still goes to the network.
TransformerBridgeBug specific to the new TransformerBridge systembugSomething isn't workingcomplexity-simpleSimple issues, which may be good for beginners
Activity
jlarson4 commentedon Nov 19, 2026
Closed with the merge of #2039