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 d85d21c commit 445cf58Copy full SHA for 445cf58
src/diffusers/models/normalization.py
@@ -550,8 +550,7 @@ def forward(self, hidden_states):
550
hidden_states = torch_npu.npu_rms_norm(hidden_states, self.weight, epsilon=self.eps)[0]
551
if self.bias is not None:
552
hidden_states = hidden_states + self.bias
553
- # YiYi TODO: testing only, remove this change before merging
554
- elif is_torch_version(">=", "3.3"):
+ elif is_torch_version(">=", "2.4"):
555
if self.weight is not None:
556
# convert into half-precision if necessary
557
if self.weight.dtype in [torch.float16, torch.bfloat16]:
0 commit comments