src/transformers/models/clip/convert_clip_original_pytorch_to_hf.py/copy_layers
def copy_layers(hf_layers, pt_layers):
    for hf_layer, pt_layer in zip(hf_layers, pt_layers):
        copy_layer(hf_layer, pt_layer)