Inputs
Note: The number of positive conditioning inputs must match the number of latent images. If only one positive conditioning is provided with multiple images, it will be automatically repeated for all images.
Note on
training_dtype: When set to “none”, the model’s native compute dtype is preserved. For fp16 models, GradScaler is automatically enabled to prevent underflow during gradient computation. If fp16_accumulation is also enabled (via --fast flags), this combination can be numerically unstable and may cause NaN values.
Note on quantized_backward: This parameter is only relevant when training_dtype is set to “none” and the model is a quantized model. It enables quantized matrix multiplication during the backward pass.
Note on bypass_mode: When enabled, adapters are applied via forward hooks instead of modifying the model weights directly. This is particularly useful for quantized models where weights cannot be directly modified.
Outputs
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
Source fingerprint (SHA-256):
e145145306330099293c8b4bb344ec0a38de690040bd796b84225f54638900c3