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

device_map had weights offloaded to the disk #13

Open
hkcoserlamyiupong opened this issue Apr 4, 2024 · 0 comments
Open

device_map had weights offloaded to the disk #13

hkcoserlamyiupong opened this issue Apr 4, 2024 · 0 comments

Comments

@hkcoserlamyiupong
Copy link

This error happens occasionally. What should I do?

File "C:\Users\user.conda\envs\nlp_env\lib\site-packages\transformers\modeling_utils.py", line 3002, in _load_pretrained_model
raise ValueError(
ValueError: The current device_map had weights offloaded to the disk. Please provide an offload_folder for them. Alternatively, make sure you have safetensors installed if the model you are using offers the weights in this format.

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