mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
fix CLIP conversion script (#13474)
This commit is contained in:
parent
4be082ce39
commit
f5d3bb1dd2
@ -117,7 +117,7 @@ def convert_clip_checkpoint(checkpoint_path, pytorch_dump_folder_path, config_pa
|
||||
|
||||
hf_model = CLIPModel(config).eval()
|
||||
|
||||
pt_model, _ = load(checkpoint_path, jit=False)
|
||||
pt_model, _ = load(checkpoint_path, device="cpu", jit=False)
|
||||
pt_model = pt_model.eval()
|
||||
|
||||
copy_text_model_and_projection(hf_model, pt_model)
|
||||
|
Loading…
Reference in New Issue
Block a user