Upload folder using huggingface_hub
Browse files- README.md +1 -1
- adapter_config.json +1 -1
- 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": "
|
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:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:45d2039073934893b3de22577dec81bd61c09b71741981e492f9aaa253e02291
|
3 |
+
size 2365680
|