src/transformers/models/clip/convert_clip_original_pytorch_to_hf.py/copy_text_model_and_projection
def copy_text_model_and_projection(hf_model, pt_model):
    # copy projection
    hf_model.text_projection.weight.data = pt_model.text_projection.data.T

    # copy text encoder
    copy_encoder(hf_model.text_model, pt_model)