Upload folder using huggingface_hub
Browse files- .DS_Store +0 -0
- README.md +202 -0
- adapter_config.json +38 -0
- adapter_model.bin +3 -0
- config.json +151 -0
- optimizer.pt +3 -0
- scheduler.pt +3 -0
- trainer_state.json +0 -0
- training_args.bin +3 -0
.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
README.md
ADDED
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: microsoft/Phi-3.5-vision-instruct
|
3 |
+
library_name: peft
|
4 |
+
---
|
5 |
+
|
6 |
+
# Model Card for Model ID
|
7 |
+
|
8 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
## Model Details
|
13 |
+
|
14 |
+
### Model Description
|
15 |
+
|
16 |
+
<!-- Provide a longer summary of what this model is. -->
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
- **Developed by:** [More Information Needed]
|
21 |
+
- **Funded by [optional]:** [More Information Needed]
|
22 |
+
- **Shared by [optional]:** [More Information Needed]
|
23 |
+
- **Model type:** [More Information Needed]
|
24 |
+
- **Language(s) (NLP):** [More Information Needed]
|
25 |
+
- **License:** [More Information Needed]
|
26 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
27 |
+
|
28 |
+
### Model Sources [optional]
|
29 |
+
|
30 |
+
<!-- Provide the basic links for the model. -->
|
31 |
+
|
32 |
+
- **Repository:** [More Information Needed]
|
33 |
+
- **Paper [optional]:** [More Information Needed]
|
34 |
+
- **Demo [optional]:** [More Information Needed]
|
35 |
+
|
36 |
+
## Uses
|
37 |
+
|
38 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
39 |
+
|
40 |
+
### Direct Use
|
41 |
+
|
42 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
43 |
+
|
44 |
+
[More Information Needed]
|
45 |
+
|
46 |
+
### Downstream Use [optional]
|
47 |
+
|
48 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
49 |
+
|
50 |
+
[More Information Needed]
|
51 |
+
|
52 |
+
### Out-of-Scope Use
|
53 |
+
|
54 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
55 |
+
|
56 |
+
[More Information Needed]
|
57 |
+
|
58 |
+
## Bias, Risks, and Limitations
|
59 |
+
|
60 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
61 |
+
|
62 |
+
[More Information Needed]
|
63 |
+
|
64 |
+
### Recommendations
|
65 |
+
|
66 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
67 |
+
|
68 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
69 |
+
|
70 |
+
## How to Get Started with the Model
|
71 |
+
|
72 |
+
Use the code below to get started with the model.
|
73 |
+
|
74 |
+
[More Information Needed]
|
75 |
+
|
76 |
+
## Training Details
|
77 |
+
|
78 |
+
### Training Data
|
79 |
+
|
80 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
81 |
+
|
82 |
+
[More Information Needed]
|
83 |
+
|
84 |
+
### Training Procedure
|
85 |
+
|
86 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
87 |
+
|
88 |
+
#### Preprocessing [optional]
|
89 |
+
|
90 |
+
[More Information Needed]
|
91 |
+
|
92 |
+
|
93 |
+
#### Training Hyperparameters
|
94 |
+
|
95 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
96 |
+
|
97 |
+
#### Speeds, Sizes, Times [optional]
|
98 |
+
|
99 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
100 |
+
|
101 |
+
[More Information Needed]
|
102 |
+
|
103 |
+
## Evaluation
|
104 |
+
|
105 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
106 |
+
|
107 |
+
### Testing Data, Factors & Metrics
|
108 |
+
|
109 |
+
#### Testing Data
|
110 |
+
|
111 |
+
<!-- This should link to a Dataset Card if possible. -->
|
112 |
+
|
113 |
+
[More Information Needed]
|
114 |
+
|
115 |
+
#### Factors
|
116 |
+
|
117 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
118 |
+
|
119 |
+
[More Information Needed]
|
120 |
+
|
121 |
+
#### Metrics
|
122 |
+
|
123 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
124 |
+
|
125 |
+
[More Information Needed]
|
126 |
+
|
127 |
+
### Results
|
128 |
+
|
129 |
+
[More Information Needed]
|
130 |
+
|
131 |
+
#### Summary
|
132 |
+
|
133 |
+
|
134 |
+
|
135 |
+
## Model Examination [optional]
|
136 |
+
|
137 |
+
<!-- Relevant interpretability work for the model goes here -->
|
138 |
+
|
139 |
+
[More Information Needed]
|
140 |
+
|
141 |
+
## Environmental Impact
|
142 |
+
|
143 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
144 |
+
|
145 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
146 |
+
|
147 |
+
- **Hardware Type:** [More Information Needed]
|
148 |
+
- **Hours used:** [More Information Needed]
|
149 |
+
- **Cloud Provider:** [More Information Needed]
|
150 |
+
- **Compute Region:** [More Information Needed]
|
151 |
+
- **Carbon Emitted:** [More Information Needed]
|
152 |
+
|
153 |
+
## Technical Specifications [optional]
|
154 |
+
|
155 |
+
### Model Architecture and Objective
|
156 |
+
|
157 |
+
[More Information Needed]
|
158 |
+
|
159 |
+
### Compute Infrastructure
|
160 |
+
|
161 |
+
[More Information Needed]
|
162 |
+
|
163 |
+
#### Hardware
|
164 |
+
|
165 |
+
[More Information Needed]
|
166 |
+
|
167 |
+
#### Software
|
168 |
+
|
169 |
+
[More Information Needed]
|
170 |
+
|
171 |
+
## Citation [optional]
|
172 |
+
|
173 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
174 |
+
|
175 |
+
**BibTeX:**
|
176 |
+
|
177 |
+
[More Information Needed]
|
178 |
+
|
179 |
+
**APA:**
|
180 |
+
|
181 |
+
[More Information Needed]
|
182 |
+
|
183 |
+
## Glossary [optional]
|
184 |
+
|
185 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
186 |
+
|
187 |
+
[More Information Needed]
|
188 |
+
|
189 |
+
## More Information [optional]
|
190 |
+
|
191 |
+
[More Information Needed]
|
192 |
+
|
193 |
+
## Model Card Authors [optional]
|
194 |
+
|
195 |
+
[More Information Needed]
|
196 |
+
|
197 |
+
## Model Card Contact
|
198 |
+
|
199 |
+
[More Information Needed]
|
200 |
+
### Framework versions
|
201 |
+
|
202 |
+
- PEFT 0.11.1
|
adapter_config.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": {
|
4 |
+
"base_model_class": "Phi3VForCausalLM",
|
5 |
+
"parent_library": "misc.phi3_v.modeling_phi3_v"
|
6 |
+
},
|
7 |
+
"base_model_name_or_path": "microsoft/Phi-3.5-vision-instruct",
|
8 |
+
"bias": "none",
|
9 |
+
"fan_in_fan_out": false,
|
10 |
+
"inference_mode": true,
|
11 |
+
"init_lora_weights": "gaussian",
|
12 |
+
"layer_replication": null,
|
13 |
+
"layers_pattern": null,
|
14 |
+
"layers_to_transform": null,
|
15 |
+
"loftq_config": {},
|
16 |
+
"lora_alpha": 64,
|
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": 8,
|
23 |
+
"rank_pattern": {},
|
24 |
+
"revision": null,
|
25 |
+
"target_modules": [
|
26 |
+
"k_proj",
|
27 |
+
"out_proj",
|
28 |
+
"gate_up_proj",
|
29 |
+
"down_proj",
|
30 |
+
"v_proj",
|
31 |
+
"qkv_proj",
|
32 |
+
"o_proj",
|
33 |
+
"q_proj"
|
34 |
+
],
|
35 |
+
"task_type": null,
|
36 |
+
"use_dora": true,
|
37 |
+
"use_rslora": false
|
38 |
+
}
|
adapter_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2fe7e4d64dfc3cbd3201f2effec276da0127f823c33a7756f0ac3e76ec5d075e
|
3 |
+
size 30799306
|
config.json
ADDED
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/Phi-3.5-vision-instruct",
|
3 |
+
"architectures": [
|
4 |
+
"Phi3VForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"auto_map": {
|
8 |
+
"AutoConfig": "microsoft/Phi-3.5-vision-instruct--configuration_phi3_v.Phi3VConfig",
|
9 |
+
"AutoModelForCausalLM": "microsoft/Phi-3.5-vision-instruct--modeling_phi3_v.Phi3VForCausalLM"
|
10 |
+
},
|
11 |
+
"bos_token_id": 1,
|
12 |
+
"embd_layer": {
|
13 |
+
"embedding_cls": "image",
|
14 |
+
"hd_transform_order": "sub_glb",
|
15 |
+
"projection_cls": "mlp",
|
16 |
+
"use_hd_transform": true,
|
17 |
+
"with_learnable_separator": true
|
18 |
+
},
|
19 |
+
"embd_pdrop": 0.0,
|
20 |
+
"eos_token_id": 2,
|
21 |
+
"hidden_act": "silu",
|
22 |
+
"hidden_size": 4096,
|
23 |
+
"img_processor": {
|
24 |
+
"image_dim_out": 1024,
|
25 |
+
"model_name": "openai/clip-vit-large-patch14-336",
|
26 |
+
"name": "clip_vision_model",
|
27 |
+
"num_img_tokens": 144
|
28 |
+
},
|
29 |
+
"initializer_range": 0.02,
|
30 |
+
"intermediate_size": 8192,
|
31 |
+
"max_position_embeddings": 131072,
|
32 |
+
"model_type": "phi3_v",
|
33 |
+
"num_attention_heads": 32,
|
34 |
+
"num_hidden_layers": 32,
|
35 |
+
"num_key_value_heads": 32,
|
36 |
+
"original_max_position_embeddings": 4096,
|
37 |
+
"pad_token_id": 32000,
|
38 |
+
"padding_side": "right",
|
39 |
+
"resid_pdrop": 0.0,
|
40 |
+
"rms_norm_eps": 1e-05,
|
41 |
+
"rope_scaling": {
|
42 |
+
"long_factor": [
|
43 |
+
1.0800000429153442,
|
44 |
+
1.1100000143051147,
|
45 |
+
1.1399999856948853,
|
46 |
+
1.340000033378601,
|
47 |
+
1.5899999141693115,
|
48 |
+
1.600000023841858,
|
49 |
+
1.6200000047683716,
|
50 |
+
2.620000123977661,
|
51 |
+
3.2300000190734863,
|
52 |
+
3.2300000190734863,
|
53 |
+
4.789999961853027,
|
54 |
+
7.400000095367432,
|
55 |
+
7.700000286102295,
|
56 |
+
9.09000015258789,
|
57 |
+
12.199999809265137,
|
58 |
+
17.670000076293945,
|
59 |
+
24.46000099182129,
|
60 |
+
28.57000160217285,
|
61 |
+
30.420001983642578,
|
62 |
+
30.840002059936523,
|
63 |
+
32.590003967285156,
|
64 |
+
32.93000411987305,
|
65 |
+
42.320003509521484,
|
66 |
+
44.96000289916992,
|
67 |
+
50.340003967285156,
|
68 |
+
50.45000457763672,
|
69 |
+
57.55000305175781,
|
70 |
+
57.93000411987305,
|
71 |
+
58.21000289916992,
|
72 |
+
60.1400032043457,
|
73 |
+
62.61000442504883,
|
74 |
+
62.62000274658203,
|
75 |
+
62.71000289916992,
|
76 |
+
63.1400032043457,
|
77 |
+
63.1400032043457,
|
78 |
+
63.77000427246094,
|
79 |
+
63.93000411987305,
|
80 |
+
63.96000289916992,
|
81 |
+
63.970001220703125,
|
82 |
+
64.02999877929688,
|
83 |
+
64.06999969482422,
|
84 |
+
64.08000183105469,
|
85 |
+
64.12000274658203,
|
86 |
+
64.41000366210938,
|
87 |
+
64.4800033569336,
|
88 |
+
64.51000213623047,
|
89 |
+
64.52999877929688,
|
90 |
+
64.83999633789062
|
91 |
+
],
|
92 |
+
"short_factor": [
|
93 |
+
1.08,
|
94 |
+
1.1,
|
95 |
+
1.1300000000000001,
|
96 |
+
1.2800000000000002,
|
97 |
+
1.3100000000000003,
|
98 |
+
1.4500000000000004,
|
99 |
+
1.4500000000000004,
|
100 |
+
1.9500000000000008,
|
101 |
+
2.030000000000001,
|
102 |
+
2.4299999999999926,
|
103 |
+
2.5699999999999896,
|
104 |
+
2.9499999999999815,
|
105 |
+
3.729999999999965,
|
106 |
+
3.869999999999962,
|
107 |
+
4.189999999999955,
|
108 |
+
4.43999999999995,
|
109 |
+
4.6399999999999455,
|
110 |
+
4.979999999999938,
|
111 |
+
5.159999999999934,
|
112 |
+
5.279999999999932,
|
113 |
+
5.759999999999922,
|
114 |
+
5.889999999999919,
|
115 |
+
5.889999999999919,
|
116 |
+
5.969999999999917,
|
117 |
+
6.089999999999915,
|
118 |
+
6.2799999999999105,
|
119 |
+
6.7699999999999,
|
120 |
+
6.8899999999998975,
|
121 |
+
7.109999999999893,
|
122 |
+
7.129999999999892,
|
123 |
+
7.179999999999891,
|
124 |
+
7.289999999999889,
|
125 |
+
7.339999999999888,
|
126 |
+
7.559999999999883,
|
127 |
+
7.619999999999882,
|
128 |
+
7.69999999999988,
|
129 |
+
7.879999999999876,
|
130 |
+
7.879999999999876,
|
131 |
+
7.879999999999876,
|
132 |
+
7.939999999999875,
|
133 |
+
7.949999999999875,
|
134 |
+
7.979999999999874,
|
135 |
+
8.19999999999987,
|
136 |
+
8.439999999999864,
|
137 |
+
8.469999999999864,
|
138 |
+
8.589999999999861,
|
139 |
+
8.809999999999857,
|
140 |
+
8.999999999999853
|
141 |
+
],
|
142 |
+
"type": "su"
|
143 |
+
},
|
144 |
+
"rope_theta": 10000.0,
|
145 |
+
"sliding_window": 262144,
|
146 |
+
"tie_word_embeddings": false,
|
147 |
+
"torch_dtype": "bfloat16",
|
148 |
+
"transformers_version": "4.45.1",
|
149 |
+
"use_cache": false,
|
150 |
+
"vocab_size": 32064
|
151 |
+
}
|
optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1be840f9db5738adbfa24fbd6caa84cc14ac3998bea069557aad6d2a40146c58
|
3 |
+
size 61355214
|
scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fe6b601f8c77d93a0e053b92ea127a17aea5c5021426dfd754395ac532bf9532
|
3 |
+
size 1064
|
trainer_state.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2584d4b5c813b4ddca7dc2cbfc9b48480cd3bc611735de2dc7797e6fbd0b20aa
|
3 |
+
size 5688
|