[Chore] Remove unused PolyNorm layer (#27110)

Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
This commit is contained in:
Isotr0py
2025-10-17 19:03:43 +00:00
committed by GitHub
parent e33ee23ee3
commit 3125d79950
7 changed files with 1 additions and 524 deletions
-12
View File
@@ -339,18 +339,6 @@ def fused_add_rms_norm(
torch.ops._C.fused_add_rms_norm(input, residual, weight, epsilon)
def poly_norm(
out: torch.Tensor,
input: torch.Tensor,
weight: torch.Tensor,
bias: torch.Tensor,
epsilon: float,
) -> None:
# TODO: Remove this contiguous call when the kernel is updated to support non-contiguous input
input_contiguous = input.contiguous()
torch.ops._C.poly_norm(out, input_contiguous, weight, bias, epsilon)
def apply_repetition_penalties_torch(
logits: torch.Tensor,
prompt_mask: torch.Tensor,