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 17cc0cd commit 2fa4ecfCopy full SHA for 2fa4ecf
fastvideo/v1/layers/layernorm.py
@@ -80,7 +80,7 @@ def forward_native(
80
# TODO(wenxuan): When using CPU offload, FSDP has a bug that doesn't unwrap DTensor in final_layer_norm.
81
# Report this
82
if isinstance(self.weight, DTensor):
83
- x = x * self.weight.to(x.device).full_tensor()
+ x = x * self.weight.to_local().to(x.device)
84
else:
85
x = x * self.weight
86
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