diff --git a/fastvideo/v1/models/loader/fsdp_load.py b/fastvideo/v1/models/loader/fsdp_load.py index 6e0cd0a75..07fc7ab75 100644 --- a/fastvideo/v1/models/loader/fsdp_load.py +++ b/fastvideo/v1/models/loader/fsdp_load.py @@ -102,10 +102,12 @@ def load_fsdp_model( output_dtype: Optional[torch.dtype] = None, ) -> torch.nn.Module: + # NOTE(will): cast_forward_inputs=True shouldn't be needed as we are + # manually casting the inputs to the model mp_policy = MixedPrecisionPolicy(param_dtype, reduce_dtype, output_dtype, - cast_forward_inputs=True) + cast_forward_inputs=False) with set_default_dtype(default_dtype), torch.device("meta"): model = model_cls(**init_params)