FastChat icon indicating copy to clipboard operation
FastChat copied to clipboard

load guanaco-33b-merged with paramters --gpus 1,3 --num-gpus 2 error

Open ThinkInFuture opened this issue 3 years ago • 2 comments

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.

ThinkInFuture avatar Jun 19 '23 12:06 ThinkInFuture

This is because the model is too big to fit on your gpu(s). The message is pretty bad.

You can overcome this by using the offload_folder and using a ram disk for that. Have a look at the closed merge request here:

https://github.com/lm-sys/FastChat/pull/1529

FastChat only uses 85% of the gpu ram, to not hit the out-of-memory wall. Some people suggested changing this value to 90% - see here: https://github.com/lm-sys/FastChat/issues/1216

surak avatar Jun 27 '23 12:06 surak

How do we enable and use the offload_folder

Bluemist76 avatar Jul 07 '23 17:07 Bluemist76