This commit is contained in:
2026-04-02 04:53:13 +00:00
parent 80932c96e5
commit 24df76db9d
1987 changed files with 447445 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import torch
def SiluAndMul_forward_vacc(self, x: torch.Tensor) -> torch.Tensor:
return torch.vacc.swiglu(x)
def QuickGELU_forward_vacc(self, x: torch.Tensor) -> torch.Tensor:
"""PyTorch-native implementation equivalent to forward()."""
return x * torch.sigmoid(1.702 * x)