weerayut commited on
Commit
ec0dde8
·
verified ·
1 Parent(s): 23db405

Add files using upload-large-folder tool

Browse files
README.md CHANGED
@@ -1,187 +1,10 @@
1
  ---
2
- language:
3
- - th
4
- library_name: transformers
5
  pipeline_tag: text-generation
6
- tags:
7
- - medical
8
- - rag
9
- - citation
10
- - question-answering
11
- - thai
12
  ---
13
 
14
- # ThaiLLM-30B-IQ (Medical)
15
 
16
- ## Model Description
17
-
18
- **ThaiLLM-30B-IQ (Medical)** is a Thai-language large language model specialized for **medical information query** and **citation-grounded question answering**.
19
-
20
- The model is fine-tuned from **ThaiLLM-30B** using supervised fine-tuning (SFT) with medical-domain data. It is designed for **retrieval-augmented generation (RAG)** workflows, where answers must be generated **only from provided medical contexts** and returned with explicit citations.
21
-
22
- > This model does not include a retriever and must be used with externally supplied medical documents.
23
-
24
- ---
25
-
26
- ## Intended Use
27
-
28
- ### Suitable for
29
- - Medical RAG systems (Thai)
30
- - Medical document question answering
31
- - Citation-grounded medical QA
32
- - Medical education and evaluation
33
-
34
- ### Not suitable for
35
- - Medical diagnosis or treatment decisions
36
- - Patient-facing clinical advice
37
- - Emergency or critical-care use
38
-
39
- ---
40
-
41
- ## Model Details
42
-
43
- - **Base model:** ThaiLLM-30B
44
- - **Domain:** Medical
45
- - **Model type:** Decoder-only causal language model
46
- - **Fine-tuning:** Supervised fine-tuning (LoRA)
47
- - **Language:** Thai
48
- - **Precision:** bfloat16
49
-
50
- ---
51
-
52
- ## Performance (Medical Information Query Setting)
53
-
54
- | Model | Response (BLEU) | Citations (Jaccard) |
55
- |------|-----------------|---------------------|
56
- | ThaiLLM-30B | 0.406 | 0.1786 |
57
- | **ThaiLLM-8B-SFT-IQ (Medical)** | **0.4331** | **0.5458** |
58
-
59
- ---
60
-
61
- ## Training
62
-
63
- - **Framework:** LLaMA-Factory
64
- - **Method:** LoRA-based supervised fine-tuning
65
-
66
- | Hyperparameter | Value |
67
- |---------------|-------|
68
- | Learning rate | 2e-4 |
69
- | LoRA rank | 16 |
70
- | LoRA alpha | 16 |
71
- | Sequence length | 4096 |
72
- | Epochs | 3 |
73
- | Batch size | 4 |
74
-
75
- Training data consists of Thai medical question–answer pairs with context grounding and citation supervision.
76
- - **Training Script**
77
- - ```bash
78
- llamafactory-cli train \
79
- --stage sft \
80
- --do_train True \
81
- --model_name_or_path ${MODEL_PATH} \
82
- --preprocessing_num_workers 16 \
83
- --deepspeed ./examples/deepspeed/ds_z2_config.json \
84
- --finetuning_type lora \
85
- --template qwen3 \
86
- --flash_attn auto \
87
- --dataset thaillm-SFT \
88
- --cutoff_len 4096 \
89
- --learning_rate 2e-4 \
90
- --num_train_epochs 3.0 \
91
- --max_samples 100000 \
92
- --per_device_train_batch_size 1 \
93
- --gradient_accumulation_steps 4 \
94
- --gradient_checkpointing True \
95
- --gradient_checkpointing_kwargs '{"use_reentrant":false}' \
96
- --lr_scheduler_type cosine \
97
- --max_grad_norm 1.0 \
98
- --logging_steps 5 \
99
- --save_steps 100 \
100
- --warmup_steps 0 \
101
- --packing False \
102
- --enable_thinking True \
103
- --report_to tensorboard \
104
- --quantization_bit 4 \
105
- --output_dir "./checkpoints/ThaiLLM-30B-SFT-IQ" \
106
- --overwrite_output_dir True \
107
- --bf16 True \
108
- --plot_loss True \
109
- --trust_remote_code True \
110
- --include_num_input_tokens_seen True \
111
- --optim adamw_8bit \
112
- --lora_rank 16 \
113
- --lora_alpha 16 \
114
- --upcast_layernorm True \
115
- --ddp_timeout 180000000 \
116
- --lora_dropout 0 \
117
- --lora_target all \
118
- --freeze_vision_tower True \
119
- --freeze_multi_modal_projector True \
120
- --use_unsloth False \
121
- --seed 1234
122
- ```
123
-
124
- ---
125
-
126
- ## Usage
127
-
128
- The model is optimized for **strict JSON output** and **context-only medical answers**.
129
-
130
- ### Expected Instruction Format
131
-
132
- ```python
133
- import torch
134
- from transformers import AutoModelForCausalLM, AutoTokenizer
135
-
136
- model_name = "ThaiLLM-30B-SFT-IQ"
137
-
138
- tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=True)
139
- model = AutoModelForCausalLM.from_pretrained(
140
- model_name,
141
- device_map="auto",
142
- torch_dtype=torch.bfloat16,
143
- )
144
-
145
- system_prompt = """\
146
- Answer in JSON format with citations only.
147
- Use only the provided medical contexts to answer the question.
148
- Include the fact IDs that support your answer in the following format:
149
- {"answer": "<ANSWER_TEXT>", "citations": ["<FACT_ID1>", "<FACT_ID2>"]}
150
-
151
- If unknown, respond with:
152
- {"answer": "unknown", "citations": []}
153
- """
154
-
155
- question = "การบาดเจ็บจากอุบัติเหตุที่ข้อต่อขากรรไกรสามารถทำให้อาการปวดร้าวไปที่ใดเมื่อเคี้ยวอาหาร?"
156
-
157
- facts = """\
158
- [1] การบาดเจ็บจากอุบัติเหตุที่ข้อต่อขากรรไกรสามารถทำให้ปวดร้าวไปที่หูเมื่อเคี้ยวอาหาร
159
- [2] ข้อต่อขากรรไกรอักเสบ (TMJ) สามารถทำให้ปวดบริเวณใกล้ติ่งหูและร้าวไปที่หูเมื่อเคี้ยวอาหาร
160
- """
161
-
162
- prompt = f"""{system_prompt}
163
-
164
- Question:
165
- {question}
166
-
167
- Facts:
168
- {facts}
169
- """
170
-
171
- inputs = tokenizer.apply_chat_template(
172
- [{"role": "user", "content": prompt}],
173
- add_generation_prompt=True,
174
- return_tensors="pt",
175
- ).to(model.device)
176
-
177
- with torch.inference_mode():
178
- outputs = model.generate(
179
- inputs,
180
- max_new_tokens=256,
181
- do_sample=False,
182
- temperature=0.0,
183
- )
184
-
185
- generated = outputs[0, inputs.shape[-1]:]
186
- print(tokenizer.decode(generated, skip_special_tokens=True))
187
- ```
 
1
  ---
2
+ license: apache-2.0
 
 
3
  pipeline_tag: text-generation
4
+ language: [th]
5
+ tags: [sft]
 
 
 
 
6
  ---
7
 
8
+ # IQ-ThaiLLM-30B-SFT
9
 
10
+ Instruction-tuned version of **IQ-ThaiLLM-30B-SFT**.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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,7 @@
 
 
 
 
 
 
 
 
1
+ {% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% endif %}{% if system_message is defined %}{{ '<|im_start|>system
2
+ ' + system_message + '<|im_end|>
3
+ ' }}{% endif %}{% for message in loop_messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '<|im_start|>user
4
+ ' + content + '<|im_end|>
5
+ <|im_start|>assistant
6
+ ' }}{% elif message['role'] == 'assistant' %}{{ content + '<|im_end|>
7
+ ' }}{% endif %}{% endfor %}
config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3MoeForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "decoder_sparse_step": 1,
9
+ "dtype": "bfloat16",
10
+ "eos_token_id": 151643,
11
+ "head_dim": 128,
12
+ "hidden_act": "silu",
13
+ "hidden_size": 2048,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 6144,
16
+ "max_position_embeddings": 32768,
17
+ "max_window_layers": 48,
18
+ "mlp_only_layers": [],
19
+ "model_type": "qwen3_moe",
20
+ "moe_intermediate_size": 768,
21
+ "norm_topk_prob": true,
22
+ "num_attention_heads": 32,
23
+ "num_experts": 128,
24
+ "num_experts_per_tok": 8,
25
+ "num_hidden_layers": 48,
26
+ "num_key_value_heads": 4,
27
+ "output_router_logits": false,
28
+ "rms_norm_eps": 1e-06,
29
+ "rope_scaling": null,
30
+ "rope_theta": 1000000.0,
31
+ "router_aux_loss_coef": 0.001,
32
+ "sliding_window": null,
33
+ "tie_word_embeddings": false,
34
+ "transformers_version": "4.57.1",
35
+ "use_cache": false,
36
+ "use_sliding_window": false,
37
+ "vocab_size": 151936
38
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "eos_token_id": 151643,
4
+ "max_new_tokens": 2048,
5
+ "transformers_version": "4.57.1"
6
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model-00001-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:878ac143bc76a48679ed0bbb64b2162a7fdab476b395428d6568a01df1b8607a
3
+ size 1998123464
model-00002-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0de9a808696d407af2743b77b02a63e575709580c82137867dea19342dab6f4b
3
+ size 1998147512
model-00003-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c0f63af47d016f4d1deac7091c41a73e18d35686ed223a4f88318f52b90618f
3
+ size 1998680096
model-00004-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a21600a98b4e8bd3abb15a94e31a6a77721472b1750c9bab509cdd714b94a5d9
3
+ size 1998147560
model-00005-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b06c4eb6beaaa35078842128642d20fb2bd5a3da6424e3db5a395a1d777b98a
3
+ size 1998680048
model-00006-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3834f89b897f0e9ae65f615cebb32c1e95e2b1364627ee159b176bb748745ebf
3
+ size 1998680096
model-00007-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de7be3ec28f54e94adc96478fabaaa8c7a133b47823baa19c5d33607be487a69
3
+ size 1998147808
model-00008-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a91ad49bba213ea430690bc130da22f480fbf504e352d8f0a592d4ff47980c58
3
+ size 1998680728
model-00009-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62e3b9cb4e4606386dd77466685ebf98be87aa7dde5a0853dc1f362834901828
3
+ size 1998148200
model-00010-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37867ca20a83c010d41148c1fcfc69b30e42dfebfa2d5b4135d788387ac5b6d0
3
+ size 1998680664
model-00011-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b03d5f0b576318f6b9b56ff76439eead3d1292dd633d30caa365be0cc6ffc5c
3
+ size 1998680728
model-00012-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efa8e870735de2ecd5614f5e39f9e9d69a4180569eb7ee3ab4664489c5250ec7
3
+ size 1998148144
model-00013-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bba62768af36bba2369b705895913bc2eed7e850fd3e20adb425746128a90da7
3
+ size 1998680728
model-00014-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:450dbaec574d451c6727d5c1c1aa255cfd45324e4bec4cd491638af8443fa478
3
+ size 1998148208
model-00015-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f45a7e64fc45cb99cab3d203e5ebd0990195c9e5ef4cd4e4cae7a26eb60440df
3
+ size 1998680656
model-00016-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50ca99d9ef3a354095910f347364c99f3abec2c4db0929807b0ab8385ff6a43e
3
+ size 1998680728
model-00017-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b44c93caf0c08d8b4c74bdf605d04f923d1dfae4f416480fd94f2993b7bf82e
3
+ size 1998148144
model-00018-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef9820cc412a4d60f5d5c3aa74184a9cd0bb01fc6cce2653426d4164fd8a1282
3
+ size 1998680728
model-00019-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14af6339988aa9eca3ab63cdb0ea7b0869f5759fc8a96a5fddd11e03ea1657a4
3
+ size 1998148208
model-00020-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b28cd2cc3edd368bd5c6436a123c49f78f56136a65c08514f479428418c31e2a
3
+ size 1998680656
model-00021-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb9711271d2523aa87fed6d6d325f212a6fe393624850d5cbded2297496c4c63
3
+ size 1998680728
model-00022-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed1ec37171ce1962438053bb1fb60344485a1a52a11eb6d5982d96bad4cca120
3
+ size 1998148144
model-00023-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:815d32bcc72a2e8c1df8705d5be46ad7b673ea6ea85fe79a14222352de75f655
3
+ size 1998680728
model-00024-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad8496c51818ec1384cc5958c17f68f33f697a6f3fbd3fe9216dce279ce5db0e
3
+ size 1998148216
model-00025-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33ac59d7697055d8858179093f8795b19c5df243fecc0f513c18abee10d70a44
3
+ size 1998680648
model-00026-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3c3c1a260c54feff4f0a06e67af6c6fc252e8e72faf63b05476324a6ce976a0
3
+ size 1998680728
model-00027-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d58670675b5eca6e040f275b363e8020ff7df5ce4aadfaa0bf8d6532c39fa148
3
+ size 1998148144
model-00028-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2fa76bcf3cf6c4a9a7f5e02eda4bd680bd74abb9596dbfe71bd571f169548b7e
3
+ size 1998680728
model-00029-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2da35da40ae03ff111d48915814656eefd0d489d720d954fcb6d292b842b3c1
3
+ size 1995010792
model-00030-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d07dfe2c8b215a40006eb2aa4fb669f17d52995cec0a6fcfdea4cb086ebdebf
3
+ size 1998672224
model-00031-of-00031.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02ea4a466e7001d3a07720de88e30a12257a358e2a45313269c4f0baa5203dbf
3
+ size 1116241256
model.safetensors.index.json 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": "<|endoftext|>",
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_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": "<|endoftext|>",
232
+ "errors": "replace",
233
+ "extra_special_tokens": {},
234
+ "model_max_length": 131072,
235
+ "pad_token": "<|endoftext|>",
236
+ "padding_side": "right",
237
+ "split_special_tokens": false,
238
+ "tokenizer_class": "Qwen2Tokenizer",
239
+ "unk_token": null
240
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff