MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / gelu

Function gelu

SwissArmyTransformer/sat/model/official/chatglm_model.py:16–17  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

14 (1.0 + 0.044715 * x * x)))
15
16def gelu(x):
17 return gelu_impl(x)
18
19from sat.model.position_embedding.rotary_embeddings import RotaryEmbedding, apply_rotary_pos_emb_index
20from sat.mpu.layers import ColumnParallelLinear

Callers 1

forwardMethod · 0.70

Calls 1

gelu_implFunction · 0.70

Tested by

no test coverage detected