You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indicates whether current process is the main process or not.
123
-
Useful for distributed training (e.g., TPUs) and need to call this function on all processes.
124
-
In this case, set `is_main_process=True` only for the main process to avoid race conditions.
121
+
Indicates whether current process is the main process or not. Useful for distributed training (e.g.,
122
+
TPUs) and need to call this function on all processes. In this case, set `is_main_process=True` only
123
+
for the main process to avoid race conditions.
125
124
save_function (`Callable`):
126
-
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.
125
+
Function used to save the state dictionary. Useful for distributed training (e.g., TPUs) to replace
126
+
`torch.save` with another method. Can also be configured using`DIFFUSERS_SAVE_MODE` environment
the model, set it back to training mode using `model.train()`.
154
154
155
155
Warnings:
156
-
*Weights from XXX not initialized from pretrained model* means that the weights of XXX are not pretrained with the rest of the model. It is up to you to train those weights with a downstream fine-tuning.
157
-
*Weights from XXX not used in YYY* means that the layer XXX is not used by YYY, so those weights are discarded.
156
+
*Weights from XXX not initialized from pretrained model* means that the weights of XXX are not pretrained
157
+
with the rest of the model. It is up to you to train those weights with a downstream fine-tuning. *Weights
158
+
from XXX not used in YYY* means that the layer XXX is not used by YYY, so those weights are discarded.
0 commit comments