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

Running locally without git and intternet #19

Open
im50889 opened this issue May 1, 2023 · 3 comments
Open

Running locally without git and intternet #19

im50889 opened this issue May 1, 2023 · 3 comments

Comments

@im50889
Copy link

im50889 commented May 1, 2023

Hi,
I have already downloaded base model 33 files and its there in one folder. Can you please let me know changes to run this model locally without any internet . Currently it is trying to download base model from git and its failing.

Thanks

@zetavg
Copy link
Owner

zetavg commented May 2, 2023

Hi, at the base model dropdown selector on the top right, you can actually type in any custom value. If you set it to the absolute path of the directory where you stored the base model it should work!

@im50889
Copy link
Author

im50889 commented May 5, 2023

Thanks a lot for your response. When I am giving complete folder path for base model it's giving me error as it is trying to connect to internet for file download. I download all files from huggingface and have put into base folder . My question how should I convert 33 files into single file show that base model can be loaded using pre_trained api

model_class.from_pretrained(
model_name,
device_map={"": device},
low_cpu_mem_usage=True,
from_tf=from_tf,
force_download=force_download,
trust_remote_code=Config.trust_remote_code,
use_auth_token=Config.hf_access_token
)

@zetavg
Copy link
Owner

zetavg commented May 18, 2023

While I don't currently have an answer to that, but if you're still stuck on running without internet, another way which might be able to do this is to run the first time with a computer that has internet (or run download_base_model.py), and copy the hugging face cache (~/.cache/huggingface) to the other computer without internet connection.

That way, it should just use the cache without trying to download models from HF hub.

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

2 participants