(our, oai, dst2src=False)
| 387 | load_weights(oai.c_proj, our.dense, dst2src) |
| 388 | |
| 389 | def load_transformer_layer(our, oai, dst2src=False): |
| 390 | load_weights(oai.ln_1, our.input_layernorm, dst2src) |
| 391 | load_weights(oai.ln_2, our.post_attention_layernorm, dst2src) |
| 392 | load_mlp(our.mlp, oai.mlp, dst2src) |
| 393 | load_attention(our.attention, oai.attn, dst2src) |
| 394 | |
| 395 | def move_weights(our, oai, dst2src=False): |
| 396 | """ |
no test coverage detected