tanganke commited on
Commit
758a5ee
·
verified ·
1 Parent(s): ffa7e3f

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_eurosat_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_eurosat_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:2126f72e8ef87b3ebaaa1ee0e29b009291d3cfc78014ea50e31100f9f37e7e18
3
- size 2366304
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d76496b527579c9dcba1f49055bde223609d46d5c6fbb1e6734b734333a68cb
3
+ size 2365680