tanganke commited on
Commit
2d19a95
1 Parent(s): 4c6048f

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +26 -0
  2. adapter_config.json +32 -0
  3. adapter_model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: openai/clip-vit-base-patch16
3
+ library_name: peft
4
+ ---
5
+
6
+ # Model Card for clip-vit-base-patch16_svhn_l-lora-16
7
+
8
+ ## Usage
9
+
10
+ ```python
11
+ 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_svhn_l-lora-16"
17
+ model = PeftModel.from_pretrained(base_model, peft_model_id)
18
+
19
+ model = linearize_lora_model_(model)
20
+ ```
21
+
22
+ ## Model Card Contact
23
+
24
+ ### Framework versions
25
+
26
+ - PEFT 0.12.0
adapter_config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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",
8
+ "bias": "none",
9
+ "fan_in_fan_out": false,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 32,
17
+ "lora_dropout": 0.1,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": null,
21
+ "peft_type": "LORA",
22
+ "r": 16,
23
+ "rank_pattern": {},
24
+ "revision": null,
25
+ "target_modules": [
26
+ "v_proj",
27
+ "q_proj"
28
+ ],
29
+ "task_type": null,
30
+ "use_dora": false,
31
+ "use_rslora": false
32
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74c918da212e48f60307e58361fcf6342c2091f76a5fd89a831552a35b70e7f6
3
+ size 2366304