sienna223's picture
init
119e1fd
raw
history blame contribute delete
110 Bytes
import torch.nn.functional as F
def swiglu(x, y):
return F.silu(x.float(), inplace=False).to(x.dtype) * y