tanganke commited on
Commit
201a73c
·
verified ·
1 Parent(s): 42d4d6c

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. adapter_config.json +1 -1
  3. adapter_model.safetensors +2 -2
README.md CHANGED
@@ -12,7 +12,7 @@ from transformers import CLIPVisionModel
12
  from peft import PeftModel
13
  from fusion_bench.method.classification.clip_finetune import linearize_lora_model_
14
 
15
- base_model = CLIPVisionModel.from_pretrained("openai/clip-vit-base-patch16")
16
  peft_model_id = "openai/clip-vit-base-patch16_stanford-cars_l-lora-16"
17
  model = PeftModel.from_pretrained(base_model, peft_model_id)
18
 
 
12
  from peft import PeftModel
13
  from fusion_bench.method.classification.clip_finetune import linearize_lora_model_
14
 
15
+ base_model = CLIPVisionModel.from_pretrained("openai/clip-vit-base-patch16").vision_model
16
  peft_model_id = "openai/clip-vit-base-patch16_stanford-cars_l-lora-16"
17
  model = PeftModel.from_pretrained(base_model, peft_model_id)
18
 
adapter_config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "alpha_pattern": {},
3
  "auto_mapping": {
4
- "base_model_class": "CLIPVisionModel",
5
  "parent_library": "transformers.models.clip.modeling_clip"
6
  },
7
  "base_model_name_or_path": "openai/clip-vit-base-patch16",
 
1
  {
2
  "alpha_pattern": {},
3
  "auto_mapping": {
4
+ "base_model_class": "CLIPVisionTransformer",
5
  "parent_library": "transformers.models.clip.modeling_clip"
6
  },
7
  "base_model_name_or_path": "openai/clip-vit-base-patch16",
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d076f09727697630f2a012fc69faec5508f3940e6a0d53d080e7800b1340c3a1
3
- size 2366304
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45d2039073934893b3de22577dec81bd61c09b71741981e492f9aaa253e02291
3
+ size 2365680