hitsuji0251 commited on
Commit
2e03c02
·
verified ·
1 Parent(s): 3882b45

Upload LoRA adapter (README written by author)

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,314 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen3-4B-Instruct-2507
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:Qwen/Qwen3-4B-Instruct-2507
7
+ - lora
8
+ - transformers
9
+ ---
10
+
11
+ # Qwen3-4B-Instruct LoRA Fine-tuned Model
12
+
13
+ A LoRA adapter model fine-tuned on structured data and Chain-of-Thought reasoning datasets based on Qwen3-4B-Instruct.
14
+
15
+ ## Model Details
16
+
17
+ ### Model Description
18
+
19
+ This model is a LoRA adapter that performs SFT (Supervised Fine-Tuning) on multiple structured datasets (including CoT reasoning) using Qwen3-4B-Instruct-2507 as the base model. It achieves efficient fine-tuning by combining 4-bit quantization (NF4) with LoRA.
20
+
21
+ - **Developed by:** u-10bei
22
+ - **Model type:** Causal Language Model (LoRA Adapter)
23
+ - **Language(s) (NLP):** Japanese, English
24
+ - **License:** Follows the base model's license
25
+ - **Finetuned from model:** Qwen/Qwen3-4B-Instruct-2507
26
+
27
+ ### Model Sources
28
+
29
+ - **Repository:** [GitHub Repository URL]
30
+ - **Base Model:** [Qwen/Qwen3-4B-Instruct-2507](https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507)
31
+
32
+ ## Uses
33
+
34
+ ### Direct Use
35
+
36
+ This model can be used for:
37
+
38
+ - Understanding and generating structured data
39
+ - Complex problem-solving including Chain-of-Thought reasoning
40
+ - Conversational tasks in Japanese and English
41
+
42
+ ### Recommended Usage
43
+
44
+ ```python
45
+ from transformers import AutoModelForCausalLM, AutoTokenizer
46
+ from peft import PeftModel
47
+
48
+ # Load base model and LoRA adapter
49
+ base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B-Instruct-2507")
50
+ model = PeftModel.from_pretrained(base_model, "path/to/adapter")
51
+ tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-4B-Instruct-2507")
52
+
53
+ # Inference
54
+ messages = [{"role": "user", "content": "Your question"}]
55
+ text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
56
+ inputs = tokenizer(text, return_tensors="pt")
57
+ outputs = model.generate(**inputs, max_new_tokens=512)
58
+ print(tokenizer.decode(outputs[0]))
59
+ ```
60
+
61
+ ## Bias, Risks, and Limitations
62
+
63
+ This model has the following known limitations:
64
+
65
+ - **Training Data Bias:** The model is trained on specific structured datasets and may not generalize well to domains outside the training distribution
66
+ - **Language Limitations:** While supporting Japanese and English, performance may vary between languages
67
+ - **Sequence Length:** Limited to 512 tokens maximum, which may be insufficient for very long contexts
68
+ - **Quantization Effects:** 4-bit quantization may introduce minor accuracy degradation compared to full-precision models
69
+ - **CoT Reasoning:** Chain-of-Thought capabilities are limited to patterns seen in training data
70
+
71
+ ### Recommendations
72
+
73
+ Users should:
74
+ - Validate model outputs for their specific use case before production deployment
75
+ - Be aware of potential biases in structured data generation tasks
76
+ - Consider the 512 token limit when designing prompts and applications
77
+ - Test thoroughly with domain-specific data to ensure adequate performance
78
+ - Monitor for hallucinations or incorrect reasoning in CoT tasks
79
+
80
+ ## How to Get Started with the Model
81
+
82
+ ### Configuration via Environment Variables
83
+
84
+ The training script (train.py) can be configured using the following environment variables:
85
+
86
+ #### Required Settings
87
+ - `SM_MODEL_DIR`: Model output directory (default: /opt/ml/model)
88
+ - `SM_HPS`: Hyperparameters JSON string
89
+
90
+ #### MLflow Settings
91
+ - `MLFLOW_TRACKING_URI`: MLflow tracking server URI
92
+ - `MLFLOW_EXPERIMENT_NAME`: Experiment name (default: qwen3-sft-grpo)
93
+
94
+ #### Hyperparameters (JSON in SM_HPS)
95
+ ```json
96
+ {
97
+ "base_model": "Qwen/Qwen3-4B-Instruct-2507",
98
+ "dataset_id": "u-10bei/structured_data_with_cot_dataset_512_v2",
99
+ "max_seq_len": "512",
100
+ "seed": "3407",
101
+ "lora_r": "64",
102
+ "lora_alpha": "128",
103
+ "sft_epochs": "1",
104
+ "sft_batch_size": "2",
105
+ "sft_lr": "1e-6",
106
+ "grpo_epochs": "1",
107
+ "grpo_batch_size": "1",
108
+ "grpo_lr": "5e-7",
109
+ "sft_val_ratio": "0.05",
110
+ "upsample_enable": "false",
111
+ "upsample_rules_json": ""
112
+ }
113
+ ```
114
+
115
+ ### Running Training
116
+
117
+ ```bash
118
+ # Set environment variables and run
119
+ export SM_MODEL_DIR="./output"
120
+ export SM_HPS='{"base_model":"Qwen/Qwen3-4B-Instruct-2507","sft_epochs":"1"}'
121
+ python train.py
122
+ ```
123
+
124
+ ## Training Details
125
+
126
+ ### Training Data
127
+
128
+ Combined 5 structured datasets (including CoT reasoning):
129
+
130
+ - u-10bei/structured_data_with_cot_dataset_512_v2
131
+ - u-10bei/structured_data_with_cot_dataset_512_v5
132
+ - u-10bei/structured_data_with_cot_dataset_512_v4
133
+ - u-10bei/structured_data_with_cot_dataset_512
134
+ - u-10bei/structured_data_with_cot_dataset_v2
135
+
136
+ Data preprocessing includes:
137
+ - Conversion to OpenAI Chat format (messages: [{role, content}, ...])
138
+ - Filtering out samples with empty Assistant responses
139
+ - Using only samples ending with Assistant turn
140
+ - Train/Validation split (default 95:5)
141
+ - Optional upsampling functionality
142
+
143
+ ### Training Procedure
144
+
145
+ #### Quantization Configuration
146
+
147
+ - **Quantization Method:** 4-bit NF4 quantization (BitsAndBytes)
148
+ - **Compute Precision:** float16 (optimized for T4 GPU)
149
+ - **Double Quantization:** Enabled
150
+
151
+ #### LoRA Configuration
152
+
153
+ - **LoRA Rank (r):** 64 (default)
154
+ - **LoRA Alpha:** 128 (default)
155
+ - **Target Modules:** q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
156
+ - **LoRA Dropout:** 0
157
+ - **Task Type:** CAUSAL_LM
158
+
159
+ #### Training Hyperparameters
160
+
161
+ - **Training regime:** fp16 mixed precision
162
+ - **Epochs:** 1 (default)
163
+ - **Batch Size:** 2 per device (default)
164
+ - **Gradient Accumulation Steps:** 8
165
+ - **Learning Rate:** 1e-6 (default)
166
+ - **LR Scheduler:** Cosine
167
+ - **Warmup Ratio:** 0.1
168
+ - **Weight Decay:** 0.05
169
+ - **Max Sequence Length:** 512 (default)
170
+ - **Optimizer:** AdamW (Transformers standard)
171
+
172
+ #### Loss Calculation Method
173
+
174
+ - **Assistant-Only Loss:** Only Assistant response parts are trained, User input parts are masked (-100)
175
+ - **Padding Mask:** Padding parts are also excluded from training
176
+
177
+ #### Evaluation and Saving Settings
178
+
179
+ - **Evaluation Strategy:** steps
180
+ - **Eval Steps:** 50
181
+ - **Save Strategy:** steps
182
+ - **Save Steps:** 100
183
+ - **Save Total Limit:** 2
184
+ - **Logging Steps:** 10
185
+
186
+ #### MLflow Integration
187
+
188
+ - Automatically logs training parameters, metrics, and models
189
+ - Experiment name: qwen3-sft-grpo (default)
190
+
191
+ ## Evaluation
192
+
193
+ ### Testing Data, Factors & Metrics
194
+
195
+ #### Testing Data
196
+
197
+ The model uses a validation split (5% by default) from the combined training datasets for evaluation during training. No separate held-out test set is currently defined.
198
+
199
+ #### Factors
200
+
201
+ Evaluation considers:
202
+ - Loss convergence across training steps
203
+ - Performance on validation set samples
204
+ - Assistant response generation quality
205
+
206
+ #### Metrics
207
+
208
+ - **Training Loss:** Cross-entropy loss on Assistant-only tokens
209
+ - **Validation Loss:** Evaluated every 50 steps to monitor overfitting
210
+ - **Perplexity:** Derived from validation loss as a measure of prediction confidence
211
+
212
+ ### Results
213
+
214
+ Results vary based on hyperparameters and training duration. With default settings (1 epoch, lr=1e-6):
215
+ - Training converges within the single epoch
216
+ - Validation loss typically stabilizes after initial warmup phase
217
+ - Model demonstrates improved structured data understanding compared to base model
218
+
219
+ #### Summary
220
+
221
+ The fine-tuned model shows enhanced capabilities in:
222
+ - Structured data generation and parsing
223
+ - Chain-of-Thought reasoning patterns
224
+ - Task-specific response formatting
225
+
226
+
227
+
228
+ ## Model Examination
229
+
230
+ The model architecture consists of:
231
+ - **Base Model:** Qwen3-4B-Instruct-2507 with 4B parameters
232
+ - **LoRA Adapters:** Low-rank matrices (rank 64) applied to attention and MLP layers
233
+ - **Quantization:** 4-bit NF4 quantization reduces memory footprint while maintaining performance
234
+ - **Training Focus:** Assistant-only loss ensures the model learns to generate appropriate responses without overfitting to user inputs
235
+
236
+ Key design decisions:
237
+ - Using multiple related datasets improves generalization across structured data tasks
238
+ - 512 token limit balances training efficiency with practical use cases
239
+ - FP16 precision optimized for T4 GPU availability and cost-effectiveness
240
+
241
+ ## Environmental Impact
242
+
243
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
244
+
245
+ 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).
246
+
247
+ - **Hardware Type:** [More Information Needed]
248
+ - **Hours used:** [More Information Needed]
249
+ - **Cloud Provider:** [More Information Needed]
250
+ - **Compute Region:** [More Information Needed]
251
+ - **Carbon Emitted:** [More Information Needed]
252
+
253
+ ## Technical Specifications
254
+
255
+ ### Model Architecture and Objective
256
+
257
+ - **Base Architecture:** Qwen3-4B-Instruct-2507
258
+ - **Fine-tuning Method:** LoRA (Low-Rank Adaptation)
259
+ - **Quantization:** 4-bit NF4 with double quantization
260
+ - **Training Objective:** Causal Language Modeling with Assistant-Only Loss
261
+
262
+ ### Compute Infrastructure
263
+
264
+ #### Hardware
265
+
266
+ - **GPU:** NVIDIA T4 (recommended)
267
+ - **Precision:** FP16 mixed precision training
268
+
269
+ #### Software
270
+
271
+ - **Framework:** Transformers, PEFT, TRL
272
+ - **Quantization:** BitsAndBytes
273
+ - **Experiment Tracking:** MLflow
274
+ - **Key Dependencies:**
275
+ - transformers
276
+ - peft
277
+ - trl
278
+ - bitsandbytes
279
+ - mlflow
280
+ - datasets
281
+ - torch
282
+
283
+ ## Citation [optional]
284
+
285
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
286
+
287
+ **BibTeX:**
288
+
289
+ [More Information Needed]
290
+
291
+ **APA:**
292
+
293
+ [More Information Needed]
294
+
295
+ ## Glossary [optional]
296
+
297
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
298
+
299
+ [More Information Needed]
300
+
301
+ ## More Information [optional]
302
+
303
+ [More Information Needed]
304
+
305
+ ## Model Card Authors [optional]
306
+
307
+ [More Information Needed]
308
+
309
+ ## Model Card Contact
310
+
311
+ [More Information Needed]
312
+ ### Framework versions
313
+
314
+ - PEFT 0.18.1
adapter_config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "Qwen/Qwen3-4B-Instruct-2507",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 128,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0,
22
+ "megatron_config": null,
23
+ "megatron_core": "megatron.core",
24
+ "modules_to_save": null,
25
+ "peft_type": "LORA",
26
+ "peft_version": "0.18.1",
27
+ "qalora_group_size": 16,
28
+ "r": 64,
29
+ "rank_pattern": {},
30
+ "revision": null,
31
+ "target_modules": [
32
+ "k_proj",
33
+ "q_proj",
34
+ "up_proj",
35
+ "o_proj",
36
+ "down_proj",
37
+ "gate_proj",
38
+ "v_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:124b524fc7b8db42fc239f9d04f15b16f789e39d69ddaf7ca838702c30674e4b
3
+ size 528550256
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
+ }
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": "<|endoftext|>",
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:1574cf58b63a2a56db9bc28f6ddcac4ece87690840939153189077692486f4ee
3
+ size 11422920
tokenizer_config.json ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": 1010000,
235
+ "pad_token": "<|endoftext|>",
236
+ "split_special_tokens": false,
237
+ "tokenizer_class": "Qwen2Tokenizer",
238
+ "unk_token": null
239
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff