Skip to content

Commit 445cf58

Browse files
committed
up
1 parent d85d21c commit 445cf58

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/diffusers/models/normalization.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,7 @@ def forward(self, hidden_states):
550550
hidden_states = torch_npu.npu_rms_norm(hidden_states, self.weight, epsilon=self.eps)[0]
551551
if self.bias is not None:
552552
hidden_states = hidden_states + self.bias
553-
# YiYi TODO: testing only, remove this change before merging
554-
elif is_torch_version(">=", "3.3"):
553+
elif is_torch_version(">=", "2.4"):
555554
if self.weight is not None:
556555
# convert into half-precision if necessary
557556
if self.weight.dtype in [torch.float16, torch.bfloat16]:

0 commit comments

Comments
 (0)