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.
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 anoffload_folder
for them. Alternatively, make sure you havesafetensors
installed if the model you are using offers the weights in this format.