MCPcopy Index your code
hub / github.com/zai-org/CogView / load_mlp

Function load_mlp

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

Source from the content-addressed store, hash-verified

403# dst._parameters[n].data.copy_(data)
404
405def load_mlp(our, oai, dst2src=False):
406 load_weights(oai.c_fc, our.dense_h_to_4h, dst2src)
407 load_weights(oai.c_proj, our.dense_4h_to_h, dst2src)
408
409
410def 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