MCPcopy Create free account
hub / github.com/THUDM/GLM / load_attention

Function load_attention

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

Source from the content-addressed store, hash-verified

439
440
441def load_attention(our, oai, dst2src=False):
442 load_weights(oai.c_attn, our.query_key_value, dst2src)
443 load_weights(oai.c_proj, our.dense, dst2src)
444
445
446def load_transformer_layer(our, oai, dst2src=False):

Callers 1

load_transformer_layerFunction · 0.85

Calls 1

load_weightsFunction · 0.85

Tested by

no test coverage detected