russellyq commited on
Commit
5ff3546
·
verified ·
1 Parent(s): d935928

Model save

Browse files
README.md CHANGED
@@ -1,199 +1,57 @@
1
  ---
2
  library_name: transformers
3
- tags: []
 
 
 
 
 
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
- This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
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]
 
1
  ---
2
  library_name: transformers
3
+ model_name: Qwen2-VL-2B-Instruct-SFT
4
+ tags:
5
+ - generated_from_trainer
6
+ - trl
7
+ - sft
8
+ licence: license
9
  ---
10
 
11
+ # Model Card for Qwen2-VL-2B-Instruct-SFT
12
 
13
+ This model is a fine-tuned version of [None](https://huggingface.co/None).
14
+ It has been trained using [TRL](https://github.com/huggingface/trl).
15
 
16
+ ## Quick start
17
 
18
+ ```python
19
+ from transformers import pipeline
20
 
21
+ question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
22
+ generator = pipeline("text-generation", model="russellyq/Qwen2-VL-2B-Instruct-SFT", device="cuda")
23
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
24
+ print(output["generated_text"])
25
+ ```
26
 
27
+ ## Training procedure
28
 
29
+ [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/1155225591-the-chinese-university-of-hong-kong/R1-V/runs/lm442bwr)
30
 
 
31
 
32
+ This model was trained with SFT.
 
 
 
 
 
 
33
 
34
+ ### Framework versions
35
 
36
+ - TRL: 0.14.0
37
+ - Transformers: 4.49.0.dev0
38
+ - Pytorch: 2.5.1+cu121
39
+ - Datasets: 3.4.1
40
+ - Tokenizers: 0.21.1
41
 
42
+ ## Citations
 
 
43
 
 
44
 
 
45
 
46
+ Cite TRL as:
47
+
48
+ ```bibtex
49
+ @misc{vonwerra2022trl,
50
+ title = {{TRL: Transformer Reinforcement Learning}},
51
+ author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},
52
+ year = 2020,
53
+ journal = {GitHub repository},
54
+ publisher = {GitHub},
55
+ howpublished = {\url{https://github.com/huggingface/trl}}
56
+ }
57
+ ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 2.0883561485697024e+16,
4
+ "train_loss": 1.0576730417826818,
5
+ "train_runtime": 852.991,
6
+ "train_samples": 2011,
7
+ "train_samples_per_second": 2.358,
8
+ "train_steps_per_second": 0.074
9
+ }
config.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/mnt/petrelfs/huxiaowei/Qiao/Qwen-VL/pretrained/Qwen2-VL-2B-Instruct",
3
+ "architectures": [
4
+ "Qwen2VLForConditionalGeneration"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "eos_token_id": 151645,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 1536,
11
+ "image_token_id": 151655,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 8960,
14
+ "max_position_embeddings": 32768,
15
+ "max_window_layers": 28,
16
+ "model_type": "qwen2_vl",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 28,
19
+ "num_key_value_heads": 2,
20
+ "rms_norm_eps": 1e-06,
21
+ "rope_scaling": {
22
+ "mrope_section": [
23
+ 16,
24
+ 24,
25
+ 24
26
+ ],
27
+ "rope_type": "default",
28
+ "type": "default"
29
+ },
30
+ "rope_theta": 1000000.0,
31
+ "sliding_window": 32768,
32
+ "tie_word_embeddings": true,
33
+ "torch_dtype": "bfloat16",
34
+ "transformers_version": "4.49.0.dev0",
35
+ "use_cache": false,
36
+ "use_sliding_window": false,
37
+ "video_token_id": 151656,
38
+ "vision_config": {
39
+ "hidden_size": 1536,
40
+ "in_chans": 3,
41
+ "model_type": "qwen2_vl",
42
+ "spatial_patch_size": 14,
43
+ "torch_dtype": "bfloat16"
44
+ },
45
+ "vision_end_token_id": 151653,
46
+ "vision_start_token_id": 151652,
47
+ "vision_token_id": 151654,
48
+ "vocab_size": 151936
49
+ }
generation_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "attn_implementation": null,
3
+ "bos_token_id": 151643,
4
+ "do_sample": true,
5
+ "eos_token_id": [
6
+ 151645,
7
+ 151643
8
+ ],
9
+ "pad_token_id": 151643,
10
+ "temperature": 0.01,
11
+ "top_k": 1,
12
+ "top_p": 0.001,
13
+ "transformers_version": "4.49.0.dev0",
14
+ "use_cache": false
15
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:405f10a78e74320258f05ed02b51876007223e6b56d617776ce53880fb724fe8
3
+ size 4884798456
tokenizer_config.json CHANGED
@@ -138,7 +138,6 @@
138
  "model_max_length": 32768,
139
  "pad_token": "<|endoftext|>",
140
  "padding_side": "left",
141
- "processor_class": "Qwen2VLProcessor",
142
  "split_special_tokens": false,
143
  "tokenizer_class": "Qwen2Tokenizer",
144
  "unk_token": null
 
138
  "model_max_length": 32768,
139
  "pad_token": "<|endoftext|>",
140
  "padding_side": "left",
 
141
  "split_special_tokens": false,
142
  "tokenizer_class": "Qwen2Tokenizer",
143
  "unk_token": null
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 2.0883561485697024e+16,
4
+ "train_loss": 1.0576730417826818,
5
+ "train_runtime": 852.991,
6
+ "train_samples": 2011,
7
+ "train_samples_per_second": 2.358,
8
+ "train_steps_per_second": 0.074
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 63,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.07936507936507936,
13
+ "grad_norm": 7.816065311431885,
14
+ "learning_rate": 1.4285714285714287e-05,
15
+ "loss": 2.1099,
16
+ "step": 5
17
+ },
18
+ {
19
+ "epoch": 0.15873015873015872,
20
+ "grad_norm": 3.8316564559936523,
21
+ "learning_rate": 1.985871018518236e-05,
22
+ "loss": 1.2551,
23
+ "step": 10
24
+ },
25
+ {
26
+ "epoch": 0.23809523809523808,
27
+ "grad_norm": 2.3298184871673584,
28
+ "learning_rate": 1.900968867902419e-05,
29
+ "loss": 1.0135,
30
+ "step": 15
31
+ },
32
+ {
33
+ "epoch": 0.31746031746031744,
34
+ "grad_norm": 2.625717878341675,
35
+ "learning_rate": 1.7456421648831658e-05,
36
+ "loss": 0.9708,
37
+ "step": 20
38
+ },
39
+ {
40
+ "epoch": 0.3968253968253968,
41
+ "grad_norm": 2.078977108001709,
42
+ "learning_rate": 1.5320320765153367e-05,
43
+ "loss": 0.9623,
44
+ "step": 25
45
+ },
46
+ {
47
+ "epoch": 0.47619047619047616,
48
+ "grad_norm": 2.326897382736206,
49
+ "learning_rate": 1.2768355114248493e-05,
50
+ "loss": 0.9482,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 0.5555555555555556,
55
+ "grad_norm": 2.4574167728424072,
56
+ "learning_rate": 1e-05,
57
+ "loss": 0.9567,
58
+ "step": 35
59
+ },
60
+ {
61
+ "epoch": 0.6349206349206349,
62
+ "grad_norm": 1.8684089183807373,
63
+ "learning_rate": 7.2316448857515076e-06,
64
+ "loss": 0.9282,
65
+ "step": 40
66
+ },
67
+ {
68
+ "epoch": 0.7142857142857143,
69
+ "grad_norm": 2.163802146911621,
70
+ "learning_rate": 4.679679234846636e-06,
71
+ "loss": 0.9101,
72
+ "step": 45
73
+ },
74
+ {
75
+ "epoch": 0.7936507936507936,
76
+ "grad_norm": 2.871716260910034,
77
+ "learning_rate": 2.5435783511683444e-06,
78
+ "loss": 0.9134,
79
+ "step": 50
80
+ },
81
+ {
82
+ "epoch": 0.873015873015873,
83
+ "grad_norm": 2.999484062194824,
84
+ "learning_rate": 9.903113209758098e-07,
85
+ "loss": 0.9192,
86
+ "step": 55
87
+ },
88
+ {
89
+ "epoch": 0.9523809523809523,
90
+ "grad_norm": 3.2795374393463135,
91
+ "learning_rate": 1.4128981481764115e-07,
92
+ "loss": 0.913,
93
+ "step": 60
94
+ },
95
+ {
96
+ "epoch": 1.0,
97
+ "step": 63,
98
+ "total_flos": 2.0883561485697024e+16,
99
+ "train_loss": 1.0576730417826818,
100
+ "train_runtime": 852.991,
101
+ "train_samples_per_second": 2.358,
102
+ "train_steps_per_second": 0.074
103
+ }
104
+ ],
105
+ "logging_steps": 5,
106
+ "max_steps": 63,
107
+ "num_input_tokens_seen": 0,
108
+ "num_train_epochs": 1,
109
+ "save_steps": 500,
110
+ "stateful_callbacks": {
111
+ "TrainerControl": {
112
+ "args": {
113
+ "should_epoch_stop": false,
114
+ "should_evaluate": false,
115
+ "should_log": false,
116
+ "should_save": false,
117
+ "should_training_stop": false
118
+ },
119
+ "attributes": {}
120
+ }
121
+ },
122
+ "total_flos": 2.0883561485697024e+16,
123
+ "train_batch_size": 4,
124
+ "trial_name": null,
125
+ "trial_params": null
126
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1ebad1910e531cf1fa2b12150dc018c1c74b7c34cc9849146cd295023befa68
3
+ size 7160