ng and you
need to call this function on all processes. In this case, set is_main_process=True only on the main
process to avoid race conditions.   save_function (Callable) —
The function to use to save the state dictionary. Useful during distributed training when you need to
replace torch.save with another method. Can be configured with the environment variable
DIFFUSERS_SAVE_MODE.   safe_serialization (bool, optional, defaults to True) —
Whet