[Bugfix][XPU] Add MoTRMSNorm.forward_xpu delegating to forward_native (#5568)
Signed-off-by: Joshna Medisetty <joshna.medisetty@intel.com> Signed-off-by: Joshna-Medisetty <joshna.medisetty@intel.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
48ae412a2f
commit
24c49cf392
7 files changed
+58
-41
No files matched your search
@@ -72,9 +72,6 @@ class _RMSNorm(CustomOp):
|
||||
def forward_cuda(self, hidden_states: torch.Tensor) -> torch.Tensor:
|
||||
return self.forward_native(hidden_states)
|
||||
|
||||
def forward_xpu(self, hidden_states: torch.Tensor) -> torch.Tensor:
|
||||
return self.forward_native(hidden_states)
|
||||
|
||||
def forward_native(self, hidden_states: torch.Tensor) -> torch.Tensor:
|
||||
input_dtype = hidden_states.dtype
|
||||
hidden_states = hidden_states.to(torch.float32)
|
||||
|
||||
Reference in new issue
Block a user