[diffusion] fix: respect dit_precision config instead of hardcoded bfloat16 in DenoisingStagge (#24988)
Co-authored-by: niehen6174 <niehen.6174@gmail.com>
This commit is contained in:
co-authored by
niehen6174
parent
ad4994dc1d
commit
6cfa4c9c2f
@@ -618,7 +618,7 @@ class DenoisingStage(PipelineStage, RolloutDenoisingMixin):
|
||||
)
|
||||
|
||||
# Setup precision and autocast settings
|
||||
target_dtype = torch.bfloat16
|
||||
target_dtype = PRECISION_TO_TYPE[server_args.pipeline_config.dit_precision]
|
||||
autocast_enabled = (
|
||||
target_dtype != torch.float32
|
||||
) and not server_args.disable_autocast
|
||||
|
||||
Reference in New Issue
Block a user