alexandrlukashov commited on
Commit
9276b11
·
verified ·
1 Parent(s): b27f2b2

Upload folder using huggingface_hub

Browse files
adapter/README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
- base_model: Qwen/Qwen2-0.5B-Instruct
3
  library_name: peft
4
  tags:
5
- - base_model:adapter:Qwen/Qwen2-0.5B-Instruct
6
  - lora
7
  - transformers
8
  ---
 
1
  ---
2
+ base_model: Qwen/Qwen2.5-1.5B-Instruct
3
  library_name: peft
4
  tags:
5
+ - base_model:adapter:Qwen/Qwen2.5-1.5B-Instruct
6
  - lora
7
  - transformers
8
  ---
adapter/adapter_config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "alpha_pattern": {},
3
  "auto_mapping": null,
4
- "base_model_name_or_path": "Qwen/Qwen2-0.5B-Instruct",
5
  "bias": "none",
6
  "corda_config": null,
7
  "eva_config": null,
@@ -13,7 +13,7 @@
13
  "layers_pattern": null,
14
  "layers_to_transform": null,
15
  "loftq_config": {},
16
- "lora_alpha": 64,
17
  "lora_bias": false,
18
  "lora_dropout": 0.1,
19
  "megatron_config": null,
@@ -21,14 +21,14 @@
21
  "modules_to_save": null,
22
  "peft_type": "LORA",
23
  "qalora_group_size": 16,
24
- "r": 32,
25
  "rank_pattern": {},
26
  "revision": null,
27
  "target_modules": [
28
  "k_proj",
29
  "v_proj",
30
- "o_proj",
31
- "q_proj"
32
  ],
33
  "target_parameters": null,
34
  "task_type": "FEATURE_EXTRACTION",
 
1
  {
2
  "alpha_pattern": {},
3
  "auto_mapping": null,
4
+ "base_model_name_or_path": "Qwen/Qwen2.5-1.5B-Instruct",
5
  "bias": "none",
6
  "corda_config": null,
7
  "eva_config": null,
 
13
  "layers_pattern": null,
14
  "layers_to_transform": null,
15
  "loftq_config": {},
16
+ "lora_alpha": 256,
17
  "lora_bias": false,
18
  "lora_dropout": 0.1,
19
  "megatron_config": null,
 
21
  "modules_to_save": null,
22
  "peft_type": "LORA",
23
  "qalora_group_size": 16,
24
+ "r": 128,
25
  "rank_pattern": {},
26
  "revision": null,
27
  "target_modules": [
28
  "k_proj",
29
  "v_proj",
30
+ "q_proj",
31
+ "o_proj"
32
  ],
33
  "target_parameters": null,
34
  "task_type": "FEATURE_EXTRACTION",
adapter/adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:95cbb8d7f2c0ecedae3d94c2a038e931bd3bd1cfe39e2b9b313df91f60868da2
3
- size 560829384
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f2aec4b212a8e99cc16c485b540e953da3d1951084882b4b4d10f0e8891c8db
3
+ size 1071326320
added_tokens.json CHANGED
@@ -1,6 +1,25 @@
1
  {
 
 
 
 
2
  "<|endoftext|>": 151643,
3
- "<|eoj|>": 151646,
 
 
 
 
 
4
  "<|im_end|>": 151645,
5
- "<|im_start|>": 151644
 
 
 
 
 
 
 
 
 
 
6
  }
 
1
  {
2
+ "</tool_call>": 151658,
3
+ "<tool_call>": 151657,
4
+ "<|box_end|>": 151649,
5
+ "<|box_start|>": 151648,
6
  "<|endoftext|>": 151643,
7
+ "<|eoj|>": 151665,
8
+ "<|file_sep|>": 151664,
9
+ "<|fim_middle|>": 151660,
10
+ "<|fim_pad|>": 151662,
11
+ "<|fim_prefix|>": 151659,
12
+ "<|fim_suffix|>": 151661,
13
  "<|im_end|>": 151645,
14
+ "<|im_start|>": 151644,
15
+ "<|image_pad|>": 151655,
16
+ "<|object_ref_end|>": 151647,
17
+ "<|object_ref_start|>": 151646,
18
+ "<|quad_end|>": 151651,
19
+ "<|quad_start|>": 151650,
20
+ "<|repo_name|>": 151663,
21
+ "<|video_pad|>": 151656,
22
+ "<|vision_end|>": 151653,
23
+ "<|vision_pad|>": 151654,
24
+ "<|vision_start|>": 151652
25
  }
chat_template.jinja CHANGED
@@ -1,6 +1,54 @@
1
- {% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system
2
- You are a helpful assistant.<|im_end|>
3
- ' }}{% endif %}{{'<|im_start|>' + message['role'] + '
4
- ' + message['content'] + '<|im_end|>' + '
5
- '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
6
- ' }}{% endif %}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0]['role'] == 'system' %}
4
+ {{- messages[0]['content'] }}
5
+ {%- else %}
6
+ {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
7
+ {%- endif %}
8
+ {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
9
+ {%- for tool in tools %}
10
+ {{- "\n" }}
11
+ {{- tool | tojson }}
12
+ {%- endfor %}
13
+ {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
14
+ {%- else %}
15
+ {%- if messages[0]['role'] == 'system' %}
16
+ {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
17
+ {%- else %}
18
+ {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }}
19
+ {%- endif %}
20
+ {%- endif %}
21
+ {%- for message in messages %}
22
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
23
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
24
+ {%- elif message.role == "assistant" %}
25
+ {{- '<|im_start|>' + message.role }}
26
+ {%- if message.content %}
27
+ {{- '\n' + message.content }}
28
+ {%- endif %}
29
+ {%- for tool_call in message.tool_calls %}
30
+ {%- if tool_call.function is defined %}
31
+ {%- set tool_call = tool_call.function %}
32
+ {%- endif %}
33
+ {{- '\n<tool_call>\n{"name": "' }}
34
+ {{- tool_call.name }}
35
+ {{- '", "arguments": ' }}
36
+ {{- tool_call.arguments | tojson }}
37
+ {{- '}\n</tool_call>' }}
38
+ {%- endfor %}
39
+ {{- '<|im_end|>\n' }}
40
+ {%- elif message.role == "tool" %}
41
+ {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
42
+ {{- '<|im_start|>user' }}
43
+ {%- endif %}
44
+ {{- '\n<tool_response>\n' }}
45
+ {{- message.content }}
46
+ {{- '\n</tool_response>' }}
47
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
48
+ {{- '<|im_end|>\n' }}
49
+ {%- endif %}
50
+ {%- endif %}
51
+ {%- endfor %}
52
+ {%- if add_generation_prompt %}
53
+ {{- '<|im_start|>assistant\n' }}
54
+ {%- endif %}
optimizer.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:585c8aaaf9ea9e69d33337bc3ff60570af531c73962dfc046b81cad37c3337cd
3
- size 4050202507
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39f501082f9e5ada0ff52f8209cf72a6fb787de5f7777ae5f54f50a38724bd12
3
+ size 2090083175
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fb97af5870650475a5e17d447ff6b657159e600820722baddaff8e118c1ec0a1
3
- size 4543897811
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f8a4c04962c41e6ca5105af1c58ab9d83d4e0f4ef4afb24e749d31b6c647f3e
3
+ size 11220156667
rng_state.pth CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1d3e23a36255eddcd3a277c6724dd30af498796e96ab4a4fbac7d4ec2d11b949
3
  size 14645
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1133c7d763fdafa4e0fcb0e20612f8ac3a1f7581059eb9f55bda04a3d486760
3
  size 14645
scheduler.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:cbca958e6af0e425ee1c5ea42f2f40a5f70c7afee7a38c7e4dce964c49c183f9
3
  size 1593
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ad3d59cdfc7197b0668f4a722fc8c59cc03a61598c21c2eecbae6933f9dc0b8
3
  size 1593
tokenizer.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d14592d1d33e4d1fa07f59725265cf8655843c5e399136e16411b5a81665ac21
3
- size 11418450
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54529fbaf8640c2feddb6bae1bfa5ba30938ccf4503cad7a4d66be9cbbddbe4d
3
+ size 11422080
tokenizer_config.json CHANGED
@@ -1,4 +1,5 @@
1
  {
 
2
  "add_prefix_space": false,
3
  "added_tokens_decoder": {
4
  "151643": {
@@ -26,6 +27,158 @@
26
  "special": true
27
  },
28
  "151646": {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  "content": "<|eoj|>",
30
  "lstrip": false,
31
  "normalized": false,
@@ -42,7 +195,7 @@
42
  "eos_token": "<|im_end|>",
43
  "errors": "replace",
44
  "extra_special_tokens": {},
45
- "model_max_length": 32768,
46
  "pad_token": "<|endoftext|>",
47
  "split_special_tokens": false,
48
  "tokenizer_class": "Qwen2Tokenizer",
 
1
  {
2
+ "add_bos_token": false,
3
  "add_prefix_space": false,
4
  "added_tokens_decoder": {
5
  "151643": {
 
27
  "special": true
28
  },
29
  "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
  "content": "<|eoj|>",
183
  "lstrip": false,
184
  "normalized": false,
 
195
  "eos_token": "<|im_end|>",
196
  "errors": "replace",
197
  "extra_special_tokens": {},
198
+ "model_max_length": 131072,
199
  "pad_token": "<|endoftext|>",
200
  "split_special_tokens": false,
201
  "tokenizer_class": "Qwen2Tokenizer",
trainer_meta.json CHANGED
@@ -1,14 +1,14 @@
1
  {
2
- "timestamp": "20250908_212622",
3
  "model_class": "SequentialMultiTokenLM",
4
  "n_future": 3,
5
- "vocab_size": 151647,
6
  "save_steps": 1000,
7
  "learning_rate": 1e-05,
8
  "weight_decay": 0.0,
9
- "base_model_name_or_path": "Qwen/Qwen2-0.5B-Instruct",
10
- "tokenizer_name_or_path": "Qwen/Qwen2-0.5B-Instruct",
11
- "tokenizer_len_at_save": 151647,
12
  "tokenizer_pad_token_id": 151643,
13
  "dtype_hint": "float32",
14
  "head_grad_scales": [
 
1
  {
2
+ "timestamp": "20250909_164727",
3
  "model_class": "SequentialMultiTokenLM",
4
  "n_future": 3,
5
+ "vocab_size": 151666,
6
  "save_steps": 1000,
7
  "learning_rate": 1e-05,
8
  "weight_decay": 0.0,
9
+ "base_model_name_or_path": "Qwen/Qwen2.5-1.5B-Instruct",
10
+ "tokenizer_name_or_path": "Qwen/Qwen2.5-1.5B-Instruct",
11
+ "tokenizer_len_at_save": 151666,
12
  "tokenizer_pad_token_id": 151643,
13
  "dtype_hint": "float32",
14
  "head_grad_scales": [
trainer_state.json CHANGED
The diff for this file is too large to render. See raw diff