Can someone help me to know how to solve this issue, thanks so much in advanced!
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.
The code that is causing my problem is:
model = LlamaForCausalLM.from_pretrained(
model_path, local_files_only=True, torch_dtype=torch.float16, device_map="auto"
)
Can someone help me to know how to solve this issue, thanks so much in advanced!
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.The code that is causing my problem is: