ining like TPUs when one
need to replace torch.save by another method. Can be configured with the environment variable
DIFFUSERS_SAVE_MODE.


safe_serialization (bool, optional, defaults to False) —
Whether to save the model using safetensors or the traditional PyTorch way (that uses pickle).


variant (str, optional) —
If specified, weights are saved in the format pytorch_model..bin.



Save a model and its configuration file to a directory, s