MCPcopy Index your code
hub / github.com/THUDM/GLM / load_mlp

Function load_mlp

utils.py:436–438  ·  view source on GitHub ↗
(our, oai, dst2src=False)

Source from the content-addressed store, hash-verified

434# dst._parameters[n].data.copy_(data)
435
436def load_mlp(our, oai, dst2src=False):
437 load_weights(oai.c_fc, our.dense_h_to_4h, dst2src)
438 load_weights(oai.c_proj, our.dense_4h_to_h, dst2src)
439
440
441def load_attention(our, oai, dst2src=False):

Callers 1

load_transformer_layerFunction · 0.85

Calls 1

load_weightsFunction · 0.85

Tested by

no test coverage detected