From f63da20a9fc06d03545f120e66fb0aca660f4aa8 Mon Sep 17 00:00:00 2001 From: Thien Tran Date: Fri, 27 Dec 2024 20:12:32 +0800 Subject: [PATCH] CLIP conversion script - Change fairseq to OpenAI (#35384) Change fairseq to OpenAI --- .../models/clip/convert_clip_original_pytorch_to_hf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/models/clip/convert_clip_original_pytorch_to_hf.py b/src/transformers/models/clip/convert_clip_original_pytorch_to_hf.py index 60849c2efb74d5..3d88fc1929c30b 100644 --- a/src/transformers/models/clip/convert_clip_original_pytorch_to_hf.py +++ b/src/transformers/models/clip/convert_clip_original_pytorch_to_hf.py @@ -149,7 +149,7 @@ def convert_clip_checkpoint(checkpoint_path, pytorch_dump_folder_path, config_pa if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--pytorch_dump_folder_path", default=None, type=str, help="Path to the output PyTorch model.") - parser.add_argument("--checkpoint_path", default=None, type=str, help="Path to fairseq checkpoint") + parser.add_argument("--checkpoint_path", default=None, type=str, help="Path to OpenAI checkpoint") parser.add_argument("--config_path", default=None, type=str, help="Path to hf config.json of model to convert") args = parser.parse_args()