Skip to content

Commit b88e450

Browse files
ahnjjstevhliu
andauthored
Update src/diffusers/models/adapter.py
Co-authored-by: Steven Liu <[email protected]>
1 parent 2687b96 commit b88e450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/models/adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def save_pretrained(
120120
The directory where the model will be saved. If the directory does not exist, it will be created.
121121
is_main_process (`bool`, optional, defaults=True):
122122
Indicates whether current process is the main process or not.
123-
Useful when in distributed training (e.g., TPUs) and need to call this function on all processes.
123+
Useful for distributed training (e.g., TPUs) and need to call this function on all processes.
124124
In this case, set `is_main_process=True` only for the main process to avoid race conditions.
125125
save_function (`Callable`):
126126
Function used to save the state dictionary. Useful for distributed training (e.g., TPUs) to replace `torch.save` with another method. Can also be configured using`DIFFUSERS_SAVE_MODE` environment variable.

0 commit comments

Comments
 (0)