Closed cove1011 closed 4 months ago
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.
device_map
offload_folder
safetensors
原因:机器显存不足,1.换个小模型(2B的);2.使用int4量化模型。
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.