Skip to content

_get_checkpoint_shard_files not work when HF_HUB_OFFLINE=1 #11447

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
thomascatlee opened this issue Apr 29, 2025 · 2 comments
Open

_get_checkpoint_shard_files not work when HF_HUB_OFFLINE=1 #11447

thomascatlee opened this issue Apr 29, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@thomascatlee
Copy link

Describe the bug

diffusers 0.33.1

_get_checkpoint_shard_files() has local_files_only param, but it can't work, because _get_checkpoint_shard_files() called model_info(), which connect huggingface.co to get model info. And if you set HF_HUB_OFFLINE=1, you will get error like this

huggingface_hub.errors.OfflineModeIsEnabled: Cannot reach https://huggingface.co/api/models/lllyasviel/FramePackI2V_HY: offline mode is enabled. To disable it, please unset the `HF_HUB_OFFLINE` environment variable.

Reproduction

load 'lllyasviel/FramePackI2V_HY' model from Huggingface successfully, and the disconnected Internet, load again with local_files_only=True or HF_HUB_OFFLINE=1.

Logs

System Info

diffusers 0.33.1
huggingface-hub 0.30.2
Python 3.10.16 (main, Dec 11 2024, 16:24:50) [GCC 11.2.0] on linux

Who can help?

No response

@thomascatlee thomascatlee added the bug Something isn't working label Apr 29, 2025
@a-r-r-o-w
Copy link
Member

Diffusers does not yet support Framepack. The PR adding support for it can be found here: #11428

@FurkanGozukara
Copy link

I hope can be fixed asap. so many people asked me how to run offline mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants