MCPcopy Create free account
hub / github.com/FreedomIntelligence/CMB / forward

Method forward

workers/chatglm3_modeling.py:496–502  ·  view source on GitHub ↗
(self, hidden_states)

Source from the content-addressed store, hash-verified

494 )
495
496 def forward(self, hidden_states):
497 # [s, b, 4hp]
498 intermediate_parallel = self.dense_h_to_4h(hidden_states)
499 intermediate_parallel = self.activation_func(intermediate_parallel)
500 # [s, b, h]
501 output = self.dense_4h_to_h(intermediate_parallel)
502 return output
503
504
505class GLMBlock(torch.nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected