Skip to content
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

Load an existing model under no Internet condition #1577

Open
Taimin opened this issue Jan 25, 2025 · 0 comments
Open

Load an existing model under no Internet condition #1577

Taimin opened this issue Jan 25, 2025 · 0 comments

Comments

@Taimin
Copy link

Taimin commented Jan 25, 2025

I found that when no Internet is available, FastLanguageModel.from_pretrained will take a long time waiting. In unsloth/load.py, the following code appears:

from huggingface_hub.utils import disable_progress_bars, enable_progress_bars, are_progress_bars_disabled
was_disabled = are_progress_bars_disabled()
disable_progress_bars()

I suspect executing these codes will need access to Internet. If not, they keep waiting and waiting until access is available.
The behavior should be if a local model is available, load it immediately without checking.

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

No branches or pull requests

1 participant