Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FreedomIntelligence/CMB
/ swiglu
Method
swiglu
workers/chatglm3_modeling.py:481–483 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
479
)
480
481
def
swiglu(x):
482
x = torch.chunk(x, 2, dim=-1)
483
return
F.silu(x[0]) * x[1]
484
485
self.activation_func = swiglu
486
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected