danghuyhoang commited on
Commit
08fc7f6
·
verified ·
1 Parent(s): 391a176

Initial model upload - Vietnamese fine-tuned Qwen3-30B

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,302 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Qwen3-30B Vietnamese Instruct
2
+
3
+ **Fine-tuned Qwen3-30B-A3B for Vietnamese instruction-following**
4
+
5
+ This model is a Vietnamese-optimized version of Qwen3-30B-A3B, fine-tuned on 327K high-quality Vietnamese instruction samples using LoRA (Low-Rank Adaptation).
6
+
7
+ ## Model Description
8
+
9
+ - **Model Type**: Large Language Model (Mixture-of-Experts)
10
+ - **Base Model**: [Qwen3-30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B)
11
+ - **Language**: Vietnamese (primary), English (secondary)
12
+ - **Fine-tuning Method**: LoRA (rank=64, alpha=128) with 4-bit quantization
13
+ - **Training Data**: 327,113 Vietnamese instruction-response pairs
14
+ - **License**: Apache 2.0
15
+ - **Developed by**: Vietnamese LLM Project
16
+
17
+ ## Intended Use
18
+
19
+ This model is designed for Vietnamese natural language processing tasks, including:
20
+
21
+ - **Question Answering**: Answer questions in Vietnamese
22
+ - **Instruction Following**: Execute tasks described in Vietnamese
23
+ - **Conversational AI**: Engage in multi-turn Vietnamese dialogues
24
+ - **Text Generation**: Generate Vietnamese text based on prompts
25
+ - **Educational Applications**: Tutoring, explanations, and knowledge sharing
26
+
27
+ ### Direct Use
28
+
29
+ ```python
30
+ from transformers import AutoModelForCausalLM, AutoTokenizer
31
+
32
+ model = AutoModelForCausalLM.from_pretrained(
33
+ "danghuyhoang/qwen3-30b-vietnamese-instruct",
34
+ torch_dtype="auto",
35
+ device_map="auto"
36
+ )
37
+ tokenizer = AutoTokenizer.from_pretrained("danghuyhoang/qwen3-30b-vietnamese-instruct")
38
+
39
+ messages = [
40
+ {"role": "system", "content": "Bạn là trợ lý AI thông minh và hữu ích."},
41
+ {"role": "user", "content": "Giải thích khái niệm machine learning bằng tiếng Việt."}
42
+ ]
43
+
44
+ text = tokenizer.apply_chat_template(
45
+ messages,
46
+ tokenize=False,
47
+ add_generation_prompt=True
48
+ )
49
+
50
+ inputs = tokenizer([text], return_tensors="pt").to(model.device)
51
+ outputs = model.generate(
52
+ **inputs,
53
+ max_new_tokens=512,
54
+ temperature=0.7,
55
+ top_p=0.9,
56
+ do_sample=True
57
+ )
58
+
59
+ response = tokenizer.decode(outputs[0], skip_special_tokens=True)
60
+ print(response)
61
+ ```
62
+
63
+ ### Use with Unsloth (2-5x faster inference)
64
+
65
+ ```python
66
+ from unsloth import FastLanguageModel
67
+
68
+ model, tokenizer = FastLanguageModel.from_pretrained(
69
+ model_name="danghuyhoang/qwen3-30b-vietnamese-instruct",
70
+ max_seq_length=2048,
71
+ dtype=None,
72
+ load_in_4bit=True,
73
+ )
74
+
75
+ FastLanguageModel.for_inference(model) # Enable inference mode
76
+
77
+ messages = [
78
+ {"role": "user", "content": "Việt Nam có bao nhiêu tỉnh thành?"}
79
+ ]
80
+
81
+ inputs = tokenizer.apply_chat_template(
82
+ messages,
83
+ tokenize=True,
84
+ add_generation_prompt=True,
85
+ return_tensors="pt"
86
+ ).to("cuda")
87
+
88
+ outputs = model.generate(input_ids=inputs, max_new_tokens=128)
89
+ print(tokenizer.decode(outputs[0]))
90
+ ```
91
+
92
+ ## Training Data
93
+
94
+ The model was fine-tuned on a diverse collection of Vietnamese instruction datasets:
95
+
96
+ | Dataset | Samples | Source | License |
97
+ |---------|---------|--------|---------|
98
+ | OpenOrca-Viet | 121,178 | 5CD-AI | Apache 2.0 |
99
+ | VILM Instruction | Subset | VILM Project | Open |
100
+ | Vietnamese UltraChat | Subset | 5CD-AI | MIT |
101
+ | Bactrian-X Vietnamese | Subset | MBZUAI | CC BY-NC 4.0 |
102
+ | Vietnamese MATH | 40,000 | 5CD-AI | Apache 2.0 |
103
+ | Multi-turn Chat | 12,697 | 5CD-AI | Apache 2.0 |
104
+
105
+ **Total**: 320,570 training samples + 6,543 validation samples
106
+
107
+ ### Data Preprocessing
108
+
109
+ - All data converted to ChatML format
110
+ - Vietnamese content validation
111
+ - Token length filtering (max 3072 tokens)
112
+ - Quality filtering and deduplication
113
+ - 98/2 train/validation split
114
+
115
+ ## Training Details
116
+
117
+ ### Training Hyperparameters
118
+
119
+ - **Base Model**: unsloth/qwen3-30b-a3b
120
+ - **Training Method**: LoRA fine-tuning with 4-bit quantization
121
+ - **LoRA Configuration**:
122
+ - Rank (r): 64
123
+ - Alpha: 128
124
+ - Target modules: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
125
+ - Dropout: 0.0
126
+ - **Training Hyperparameters**:
127
+ - Epochs: 1
128
+ - Batch size: 36 (per device)
129
+ - Gradient accumulation: 1
130
+ - Learning rate: 0.00012
131
+ - Optimizer: AdamW 8-bit
132
+ - LR Scheduler: Linear warmup (50 steps)
133
+ - Max sequence length: 3072
134
+ - Weight decay: 0.01
135
+ - **Hardware**: 1× NVIDIA A100 80GB
136
+ - **Training Time**: ~47 hours
137
+ - **Framework**: Unsloth + Hugging Face Transformers
138
+
139
+ ### Training Loss
140
+
141
+ Training loss decreased steadily from ~1.5 to ~0.8 over 8,905 steps, indicating successful learning.
142
+
143
+ ### Optimization Techniques
144
+
145
+ - **Unsloth**: 2-5x faster training with optimized CUDA kernels
146
+ - **Flash Attention 2**: Memory-efficient attention computation
147
+ - **Gradient Checkpointing**: Reduced memory usage
148
+ - **4-bit Quantization**: QLoRA for memory efficiency
149
+ - **Mixed Precision**: bfloat16 for numerical stability
150
+
151
+ ## Evaluation
152
+
153
+ ### VMLU Benchmark (Vietnamese Multitask Language Understanding)
154
+
155
+ The model is evaluated on VMLU, a comprehensive Vietnamese benchmark with 744 questions across multiple subjects.
156
+
157
+ **Evaluation Method**: Logit-based scoring (industry standard, same as MMLU)
158
+
159
+ | Metric | Score |
160
+ |--------|-------|
161
+ | Overall Accuracy | Coming Soon |
162
+ | STEM | Coming Soon |
163
+ | Humanities | Coming Soon |
164
+ | Social Sciences | Coming Soon |
165
+
166
+ **Note**: To reproduce evaluation, use the evaluation script from the [GitHub repository](https://github.com/andreidhoang/vietnamese-llm-finetuning).
167
+
168
+ ### Comparison with Base Model
169
+
170
+ | Model | VMLU Accuracy |
171
+ |-------|---------------|
172
+ | Qwen3-30B-A3B (Base) | Baseline |
173
+ | Qwen3-30B-Vietnamese (This model) | Coming Soon |
174
+
175
+ ## Limitations and Biases
176
+
177
+ ### Known Limitations
178
+
179
+ 1. **Vietnamese-Specific**: Optimized for Vietnamese, may have reduced performance on other languages
180
+ 2. **Instruction Bias**: Trained primarily on instruction-following data, may not excel at creative writing
181
+ 3. **Factual Knowledge Cutoff**: Based on Qwen3's training data (cutoff date unknown)
182
+ 4. **Context Length**: Trained with max 3072 tokens, performance may degrade on longer contexts
183
+ 5. **Mathematical Reasoning**: While improved, may still struggle with complex multi-step math
184
+ 6. **Code Generation**: Not specifically optimized for coding tasks
185
+
186
+ ### Potential Biases
187
+
188
+ - Training data may reflect biases present in Vietnamese internet content
189
+ - Instruction datasets may have geographic/cultural biases
190
+ - Model may perform better on formal Vietnamese than colloquial speech
191
+ - Limited exposure to Vietnamese dialects and regional variations
192
+
193
+ ### Ethical Considerations
194
+
195
+ - **Misinformation**: Model may generate plausible but incorrect information
196
+ - **Harmful Content**: Despite safety measures, model may occasionally produce inappropriate content
197
+ - **Privacy**: Do not input personal or sensitive information
198
+ - **Transparency**: Always disclose when content is AI-generated
199
+
200
+ ## Responsible Use
201
+
202
+ ### Recommended Practices
203
+
204
+ - Verify factual claims from independent sources
205
+ - Use human review for high-stakes applications
206
+ - Implement content filtering for production deployments
207
+ - Monitor outputs for bias and harmful content
208
+ - Provide user disclosure about AI involvement
209
+
210
+ ### Not Recommended For
211
+
212
+ - Medical, legal, or financial advice without expert review
213
+ - Content moderation as sole decision-maker
214
+ - High-stakes decision-making without human oversight
215
+ - Generating content intended to deceive
216
+
217
+ ## Hardware Requirements
218
+
219
+ ### For Inference
220
+
221
+ **Minimum**:
222
+ - GPU: RTX 4090 24GB (with 4-bit quantization)
223
+ - RAM: 32GB
224
+ - Disk: 100GB
225
+
226
+ **Recommended**:
227
+ - GPU: A100 40GB or equivalent
228
+ - RAM: 64GB
229
+ - Disk: 150GB
230
+
231
+ ### For Fine-tuning
232
+
233
+ - GPU: A100 80GB (for LoRA fine-tuning)
234
+ - RAM: 128GB
235
+ - Disk: 500GB
236
+ - See training guide for optimal configurations
237
+
238
+ ## Technical Specifications
239
+
240
+ ### Model Architecture
241
+
242
+ - **Type**: Mixture-of-Experts (MoE) Transformer
243
+ - **Experts**: Multiple expert networks (A3B variant)
244
+ - **Parameters**: ~30 billion (with sparse activation)
245
+ - **Hidden Size**: 4096
246
+ - **Attention Heads**: 32
247
+ - **Layers**: 40
248
+ - **Vocabulary Size**: 151,936 tokens
249
+ - **Context Length**: 32,768 tokens (training limited to 3072)
250
+
251
+ ### File Sizes
252
+
253
+ - **Full Model**: ~60GB (bfloat16)
254
+ - **4-bit Quantized**: ~20GB
255
+ - **LoRA Adapters Only**: ~1-2GB
256
+
257
+ ## Citation
258
+
259
+ If you use this model, please cite:
260
+
261
+ ```bibtex
262
+ @software{qwen3_vietnamese_2025,
263
+ title = {Qwen3-30B Vietnamese Instruct},
264
+ author = {Vietnamese LLM Project},
265
+ year = {2025},
266
+ url = {https://huggingface.co/danghuyhoang/qwen3-30b-vietnamese-instruct},
267
+ license = {Apache-2.0}
268
+ }
269
+ ```
270
+
271
+ Also cite the base Qwen3 model:
272
+
273
+ ```bibtex
274
+ @article{qwen3_2024,
275
+ title={Qwen3 Technical Report},
276
+ author={Qwen Team},
277
+ journal={arXiv preprint},
278
+ year={2024}
279
+ }
280
+ ```
281
+
282
+ ## Acknowledgments
283
+
284
+ This model was created using:
285
+
286
+ - **[Qwen3-30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B)** by Alibaba Cloud
287
+ - **[Unsloth](https://github.com/unslothai/unsloth)** for optimized training
288
+ - **Vietnamese datasets** from 5CD-AI, VILM, MBZUAI, and the Vietnamese NLP community
289
+
290
+ ## Model Card Contact
291
+
292
+ For questions or issues:
293
+
294
+ - **GitHub**: [vietnamese-llm-finetuning](https://github.com/andreidhoang/vietnamese-llm-finetuning)
295
+ - **Issues**: [GitHub Issues](https://github.com/andreidhoang/vietnamese-llm-finetuning/issues)
296
+ - **Discussions**: [GitHub Discussions](https://github.com/andreidhoang/vietnamese-llm-finetuning/discussions)
297
+
298
+ ---
299
+
300
+ **License**: Apache 2.0
301
+
302
+ **Last Updated**: 2025-11-08
adapter_config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": {
4
+ "base_model_class": "Qwen3MoeForCausalLM",
5
+ "parent_library": "transformers.models.qwen3_moe.modeling_qwen3_moe",
6
+ "unsloth_fixed": true
7
+ },
8
+ "base_model_name_or_path": "unsloth/qwen3-30b-a3b",
9
+ "bias": "none",
10
+ "corda_config": null,
11
+ "eva_config": null,
12
+ "exclude_modules": null,
13
+ "fan_in_fan_out": false,
14
+ "inference_mode": true,
15
+ "init_lora_weights": true,
16
+ "layer_replication": null,
17
+ "layers_pattern": null,
18
+ "layers_to_transform": null,
19
+ "loftq_config": {},
20
+ "lora_alpha": 128,
21
+ "lora_bias": false,
22
+ "lora_dropout": 0.0,
23
+ "megatron_config": null,
24
+ "megatron_core": "megatron.core",
25
+ "modules_to_save": null,
26
+ "peft_type": "LORA",
27
+ "qalora_group_size": 16,
28
+ "r": 64,
29
+ "rank_pattern": {},
30
+ "revision": null,
31
+ "target_modules": [
32
+ "q_proj",
33
+ "v_proj",
34
+ "k_proj",
35
+ "o_proj",
36
+ "gate_proj",
37
+ "down_proj",
38
+ "up_proj"
39
+ ],
40
+ "target_parameters": null,
41
+ "task_type": "CAUSAL_LM",
42
+ "trainable_token_indices": null,
43
+ "use_dora": false,
44
+ "use_qalora": false,
45
+ "use_rslora": false
46
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:828d1ff5cf295e015e3d1286468699aed98d9451501fd2ab208eb26fab057698
3
+ size 13506904496
added_tokens.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</think>": 151668,
3
+ "</tool_call>": 151658,
4
+ "</tool_response>": 151666,
5
+ "<think>": 151667,
6
+ "<tool_call>": 151657,
7
+ "<tool_response>": 151665,
8
+ "<|box_end|>": 151649,
9
+ "<|box_start|>": 151648,
10
+ "<|endoftext|>": 151643,
11
+ "<|file_sep|>": 151664,
12
+ "<|fim_middle|>": 151660,
13
+ "<|fim_pad|>": 151662,
14
+ "<|fim_prefix|>": 151659,
15
+ "<|fim_suffix|>": 151661,
16
+ "<|im_end|>": 151645,
17
+ "<|im_start|>": 151644,
18
+ "<|image_pad|>": 151655,
19
+ "<|object_ref_end|>": 151647,
20
+ "<|object_ref_start|>": 151646,
21
+ "<|quad_end|>": 151651,
22
+ "<|quad_start|>": 151650,
23
+ "<|repo_name|>": 151663,
24
+ "<|video_pad|>": 151656,
25
+ "<|vision_end|>": 151653,
26
+ "<|vision_pad|>": 151654,
27
+ "<|vision_start|>": 151652
28
+ }
chat_template.jinja ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0].role == 'system' %}
4
+ {{- messages[0].content + '\n\n' }}
5
+ {%- endif %}
6
+ {{- "# 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>" }}
7
+ {%- for tool in tools %}
8
+ {{- "\n" }}
9
+ {{- tool | tojson }}
10
+ {%- endfor %}
11
+ {{- "\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" }}
12
+ {%- else %}
13
+ {%- if messages[0].role == 'system' %}
14
+ {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
15
+ {%- endif %}
16
+ {%- endif %}
17
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
18
+ {%- for forward_message in messages %}
19
+ {%- set index = (messages|length - 1) - loop.index0 %}
20
+ {%- set message = messages[index] %}
21
+ {%- set current_content = message.content if message.content is not none else '' %}
22
+ {%- set tool_start = '<tool_response>' %}
23
+ {%- set tool_start_length = tool_start|length %}
24
+ {%- set start_of_message = current_content[:tool_start_length] %}
25
+ {%- set tool_end = '</tool_response>' %}
26
+ {%- set tool_end_length = tool_end|length %}
27
+ {%- set start_pos = (current_content|length) - tool_end_length %}
28
+ {%- if start_pos < 0 %}
29
+ {%- set start_pos = 0 %}
30
+ {%- endif %}
31
+ {%- set end_of_message = current_content[start_pos:] %}
32
+ {%- if ns.multi_step_tool and message.role == "user" and not(start_of_message == tool_start and end_of_message == tool_end) %}
33
+ {%- set ns.multi_step_tool = false %}
34
+ {%- set ns.last_query_index = index %}
35
+ {%- endif %}
36
+ {%- endfor %}
37
+ {%- for message in messages %}
38
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
39
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
40
+ {%- elif message.role == "assistant" %}
41
+ {%- set content = message.content %}
42
+ {%- set reasoning_content = '' %}
43
+ {%- if message.reasoning_content is defined and message.reasoning_content is not none %}
44
+ {%- set reasoning_content = message.reasoning_content %}
45
+ {%- else %}
46
+ {%- if '</think>' in message.content %}
47
+ {%- set content = (message.content.split('</think>')|last).lstrip('\n') %}
48
+ {%- set reasoning_content = (message.content.split('</think>')|first).rstrip('\n') %}
49
+ {%- set reasoning_content = (reasoning_content.split('<think>')|last).lstrip('\n') %}
50
+ {%- endif %}
51
+ {%- endif %}
52
+ {%- if loop.index0 > ns.last_query_index %}
53
+ {%- if loop.last or (not loop.last and reasoning_content) %}
54
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
55
+ {%- else %}
56
+ {{- '<|im_start|>' + message.role + '\n' + content }}
57
+ {%- endif %}
58
+ {%- else %}
59
+ {{- '<|im_start|>' + message.role + '\n' + content }}
60
+ {%- endif %}
61
+ {%- if message.tool_calls %}
62
+ {%- for tool_call in message.tool_calls %}
63
+ {%- if (loop.first and content) or (not loop.first) %}
64
+ {{- '\n' }}
65
+ {%- endif %}
66
+ {%- if tool_call.function %}
67
+ {%- set tool_call = tool_call.function %}
68
+ {%- endif %}
69
+ {{- '<tool_call>\n{"name": "' }}
70
+ {{- tool_call.name }}
71
+ {{- '", "arguments": ' }}
72
+ {%- if tool_call.arguments is string %}
73
+ {{- tool_call.arguments }}
74
+ {%- else %}
75
+ {{- tool_call.arguments | tojson }}
76
+ {%- endif %}
77
+ {{- '}\n</tool_call>' }}
78
+ {%- endfor %}
79
+ {%- endif %}
80
+ {{- '<|im_end|>\n' }}
81
+ {%- elif message.role == "tool" %}
82
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
83
+ {{- '<|im_start|>user' }}
84
+ {%- endif %}
85
+ {{- '\n<tool_response>\n' }}
86
+ {{- message.content }}
87
+ {{- '\n</tool_response>' }}
88
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
89
+ {{- '<|im_end|>\n' }}
90
+ {%- endif %}
91
+ {%- endif %}
92
+ {%- endfor %}
93
+ {%- if add_generation_prompt %}
94
+ {{- '<|im_start|>assistant\n' }}
95
+ {%- if enable_thinking is defined and enable_thinking is false %}
96
+ {{- '<think>\n\n</think>\n\n' }}
97
+ {%- endif %}
98
+ {%- endif %}
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|object_ref_start|>",
6
+ "<|object_ref_end|>",
7
+ "<|box_start|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_start|>",
12
+ "<|vision_end|>",
13
+ "<|vision_pad|>",
14
+ "<|image_pad|>",
15
+ "<|video_pad|>"
16
+ ],
17
+ "eos_token": {
18
+ "content": "<|im_end|>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "pad_token": {
25
+ "content": "<|vision_pad|>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
3
+ size 11422654
tokenizer_config.json ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
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": "<tool_response>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": false
188
+ },
189
+ "151666": {
190
+ "content": "</tool_response>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": false
196
+ },
197
+ "151667": {
198
+ "content": "<think>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": false
204
+ },
205
+ "151668": {
206
+ "content": "</think>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": false
212
+ }
213
+ },
214
+ "additional_special_tokens": [
215
+ "<|im_start|>",
216
+ "<|im_end|>",
217
+ "<|object_ref_start|>",
218
+ "<|object_ref_end|>",
219
+ "<|box_start|>",
220
+ "<|box_end|>",
221
+ "<|quad_start|>",
222
+ "<|quad_end|>",
223
+ "<|vision_start|>",
224
+ "<|vision_end|>",
225
+ "<|vision_pad|>",
226
+ "<|image_pad|>",
227
+ "<|video_pad|>"
228
+ ],
229
+ "bos_token": null,
230
+ "clean_up_tokenization_spaces": false,
231
+ "eos_token": "<|im_end|>",
232
+ "errors": "replace",
233
+ "extra_special_tokens": {},
234
+ "model_max_length": 40960,
235
+ "pad_token": "<|vision_pad|>",
236
+ "padding_side": "left",
237
+ "split_special_tokens": false,
238
+ "tokenizer_class": "Qwen2Tokenizer",
239
+ "unk_token": null
240
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c0505182f669b71e534b300400822d5ab34ab8e24cb0cd5272842e1028d2d6c
3
+ size 6289
vocab.json ADDED
The diff for this file is too large to render. See raw diff