We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79bb061 commit 19dc242Copy full SHA for 19dc242
fastvideo/v1/layers/layernorm.py
@@ -74,7 +74,7 @@ def forward_native(
74
# TODO(wenxuan): When using CPU offload, FSDP has a bug that doesn't unwrap DTensor in final_layer_norm.
75
# Report this
76
if isinstance(self.weight, DTensor):
77
- x = x * self.weight.to(x.device).full_tensor()
+ x = x * self.weight.to_local().to(x.device)
78
else:
79
x = x * self.weight
80
if residual is None:
fastvideo/v1/pipelines/stages/text_encoding.py
@@ -107,9 +107,6 @@ def forward(
107
batch.negative_attention_mask.append(
108
negative_attention_mask)
109
110
- if fastvideo_args.text_encoder_offload:
111
- text_encoder.to('cpu')
112
-
113
return batch
114
115
def verify_input(self, batch: ForwardBatch,
0 commit comments