Upload folder using huggingface_hub
#1
by
GadflyII - opened
- .gitattributes +1 -0
- README.md +92 -0
- calibration_amax.json +0 -0
- chat_template.jinja +86 -0
- config.json +80 -0
- generation_config.json +11 -0
- model-00000-of-00004.safetensors +3 -0
- model-00001-of-00004.safetensors +3 -0
- model-00002-of-00004.safetensors +3 -0
- model-00003-of-00004.safetensors +3 -0
- model.safetensors.index.json +0 -0
- tokenizer.json +3 -0
- tokenizer_config.json +321 -0
.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,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: glm-4
|
| 4 |
+
license_link: https://huggingface.co/THUDM/glm-4-9b/blob/main/LICENSE
|
| 5 |
+
base_model: THUDM/GLM-4-9B-0414
|
| 6 |
+
tags:
|
| 7 |
+
- glm
|
| 8 |
+
- moe
|
| 9 |
+
- nvfp4
|
| 10 |
+
- quantized
|
| 11 |
+
- vllm
|
| 12 |
+
library_name: transformers
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# GLM-4.7-Flash-MTP-NVFP4
|
| 16 |
+
|
| 17 |
+
NVFP4 (Native FP4) quantized version of [THUDM/GLM-4-9B-0414](https://huggingface.co/THUDM/GLM-4-9B-0414) with MTP (Multi-Token Prediction) layers preserved in BF16.
|
| 18 |
+
|
| 19 |
+
## Model Details
|
| 20 |
+
|
| 21 |
+
- **Base Model**: THUDM/GLM-4-9B-0414 (GLM-4.7-Flash)
|
| 22 |
+
- **Architecture**: Glm4MoeLiteForCausalLM (MoE with 64 experts, top-4 routing)
|
| 23 |
+
- **Quantization**: NVFP4 with FP8 scales, block size 16
|
| 24 |
+
- **Size**: 20.9 GB (3.0x compression from 62.4 GB BF16)
|
| 25 |
+
- **MTP Layers**: Preserved in BF16 for speculative decoding compatibility
|
| 26 |
+
|
| 27 |
+
## Quantization Details
|
| 28 |
+
|
| 29 |
+
| Component | Precision | Notes |
|
| 30 |
+
|-----------|-----------|-------|
|
| 31 |
+
| MLP/FFN layers | NVFP4 | 4-bit weights, 4-bit activations |
|
| 32 |
+
| Attention (self_attn) | BF16 | MLA architecture preserved |
|
| 33 |
+
| MTP layers (eh_proj, shared_head) | BF16 | Speculative decoding compatible |
|
| 34 |
+
| Embeddings | BF16 | Not quantized |
|
| 35 |
+
| Gates | BF16 | Router gates preserved |
|
| 36 |
+
|
| 37 |
+
### Calibration Settings
|
| 38 |
+
- **Samples**: 512 (from wikitext)
|
| 39 |
+
- **Sequence Length**: 4096
|
| 40 |
+
- **Strategy**: tensor_group with group_size=16
|
| 41 |
+
|
| 42 |
+
## Benchmark Results
|
| 43 |
+
|
| 44 |
+
### MMLU-Pro Accuracy
|
| 45 |
+
|
| 46 |
+
| Model | Accuracy |
|
| 47 |
+
|-------|----------|
|
| 48 |
+
| BF16 (baseline) | 24.83% |
|
| 49 |
+
| NVFP4-v2 (this model) | 23.91% |
|
| 50 |
+
|
| 51 |
+
### MTP Acceptance Rate
|
| 52 |
+
- **BF16**: 60% acceptance, 1.60 mean accepted length
|
| 53 |
+
- **NVFP4-v2**: 63% acceptance, 1.63 mean accepted length
|
| 54 |
+
|
| 55 |
+
MTP quality is preserved after quantization.
|
| 56 |
+
|
| 57 |
+
### Performance Note
|
| 58 |
+
|
| 59 |
+
MTP speculative decoding currently shows overhead rather than speedup due to missing torch.compile support for the MTP drafter model. For best throughput, run without MTP enabled.
|
| 60 |
+
|
| 61 |
+
## Usage with vLLM
|
| 62 |
+
|
| 63 |
+
```bash
|
| 64 |
+
# Standard inference (recommended for performance)
|
| 65 |
+
VLLM_ATTENTION_BACKEND=TRITON_MLA python -m vllm.entrypoints.openai.api_server \
|
| 66 |
+
--model GadflyII/GLM-4.7-Flash-MTP-NVFP4 \
|
| 67 |
+
--trust-remote-code \
|
| 68 |
+
--max-model-len 4096 \
|
| 69 |
+
--gpu-memory-utilization 0.95
|
| 70 |
+
|
| 71 |
+
# With MTP speculative decoding (experimental)
|
| 72 |
+
VLLM_ATTENTION_BACKEND=TRITON_MLA python -m vllm.entrypoints.openai.api_server \
|
| 73 |
+
--model GadflyII/GLM-4.7-Flash-MTP-NVFP4 \
|
| 74 |
+
--trust-remote-code \
|
| 75 |
+
--max-model-len 4096 \
|
| 76 |
+
--gpu-memory-utilization 0.90 \
|
| 77 |
+
--speculative-config '{"method": "mtp", "num_speculative_tokens": 1}'
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
## Requirements
|
| 81 |
+
|
| 82 |
+
- vLLM with NVFP4 support (v0.8.0+)
|
| 83 |
+
- NVIDIA GPU with FP4 support (Blackwell/Ada Lovelace with appropriate kernels)
|
| 84 |
+
- transformers >= 5.0.0
|
| 85 |
+
|
| 86 |
+
## License
|
| 87 |
+
|
| 88 |
+
This model inherits the [GLM-4 License](https://huggingface.co/THUDM/glm-4-9b/blob/main/LICENSE) from the base model.
|
| 89 |
+
|
| 90 |
+
## Acknowledgments
|
| 91 |
+
|
| 92 |
+
Quantized using [llm-compressor](https://github.com/vllm-project/llm-compressor) with compressed-tensors format.
|
calibration_amax.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[gMASK]<sop>
|
| 2 |
+
{%- if tools -%}
|
| 3 |
+
<|system|>
|
| 4 |
+
# Tools
|
| 5 |
+
|
| 6 |
+
You may call one or more functions to assist with the user query.
|
| 7 |
+
|
| 8 |
+
You are provided with function signatures within <tools></tools> XML tags:
|
| 9 |
+
<tools>
|
| 10 |
+
{% for tool in tools %}
|
| 11 |
+
{{ tool | tojson(ensure_ascii=False) }}
|
| 12 |
+
{% endfor %}
|
| 13 |
+
</tools>
|
| 14 |
+
|
| 15 |
+
For each function call, output the function name and arguments within the following XML format:
|
| 16 |
+
<tool_call>{function-name}<arg_key>{arg-key-1}</arg_key><arg_value>{arg-value-1}</arg_value><arg_key>{arg-key-2}</arg_key><arg_value>{arg-value-2}</arg_value>...</tool_call>{%- endif -%}
|
| 17 |
+
{%- macro visible_text(content) -%}
|
| 18 |
+
{%- if content is string -%}
|
| 19 |
+
{{- content }}
|
| 20 |
+
{%- elif content is iterable and content is not mapping -%}
|
| 21 |
+
{%- for item in content -%}
|
| 22 |
+
{%- if item is mapping and item.type == 'text' -%}
|
| 23 |
+
{{- item.text }}
|
| 24 |
+
{%- elif item is string -%}
|
| 25 |
+
{{- item }}
|
| 26 |
+
{%- endif -%}
|
| 27 |
+
{%- endfor -%}
|
| 28 |
+
{%- else -%}
|
| 29 |
+
{{- content }}
|
| 30 |
+
{%- endif -%}
|
| 31 |
+
{%- endmacro -%}
|
| 32 |
+
{%- set ns = namespace(last_user_index=-1) %}
|
| 33 |
+
{%- for m in messages %}
|
| 34 |
+
{%- if m.role == 'user' %}
|
| 35 |
+
{% set ns.last_user_index = loop.index0 -%}
|
| 36 |
+
{%- endif %}
|
| 37 |
+
{%- endfor %}
|
| 38 |
+
{% for m in messages %}
|
| 39 |
+
{%- if m.role == 'user' -%}<|user|>{{ visible_text(m.content) }}
|
| 40 |
+
{%- elif m.role == 'assistant' -%}
|
| 41 |
+
<|assistant|>
|
| 42 |
+
{%- set reasoning_content = '' %}
|
| 43 |
+
{%- set content = visible_text(m.content) %}
|
| 44 |
+
{%- if m.reasoning_content is string %}
|
| 45 |
+
{%- set reasoning_content = m.reasoning_content %}
|
| 46 |
+
{%- else %}
|
| 47 |
+
{%- if '</think>' in content %}
|
| 48 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 49 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 50 |
+
{%- endif %}
|
| 51 |
+
{%- endif %}
|
| 52 |
+
{%- if ((clear_thinking is defined and not clear_thinking) or loop.index0 > ns.last_user_index) and reasoning_content -%}
|
| 53 |
+
{{ '<think>' + reasoning_content.strip() + '</think>'}}
|
| 54 |
+
{%- else -%}
|
| 55 |
+
{{ '</think>' }}
|
| 56 |
+
{%- endif -%}
|
| 57 |
+
{%- if content.strip() -%}
|
| 58 |
+
{{ content.strip() }}
|
| 59 |
+
{%- endif -%}
|
| 60 |
+
{% if m.tool_calls %}
|
| 61 |
+
{% for tc in m.tool_calls %}
|
| 62 |
+
{%- if tc.function %}
|
| 63 |
+
{%- set tc = tc.function %}
|
| 64 |
+
{%- endif %}
|
| 65 |
+
{{- '<tool_call>' + tc.name -}}
|
| 66 |
+
{% set _args = tc.arguments %}{% for k, v in _args.items() %}<arg_key>{{ k }}</arg_key><arg_value>{{ v | tojson(ensure_ascii=False) if v is not string else v }}</arg_value>{% endfor %}</tool_call>{% endfor %}
|
| 67 |
+
{% endif %}
|
| 68 |
+
{%- elif m.role == 'tool' -%}
|
| 69 |
+
{%- if m.content is string -%}
|
| 70 |
+
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
|
| 71 |
+
{{- '<|observation|>' }}
|
| 72 |
+
{%- endif %}
|
| 73 |
+
{{- '<tool_response>' }}
|
| 74 |
+
{{- m.content }}
|
| 75 |
+
{{- '</tool_response>' }}
|
| 76 |
+
{%- else -%}
|
| 77 |
+
<|observation|>{% for tr in m.content %}
|
| 78 |
+
<tool_response>{{ tr.output if tr.output is defined else tr }}</tool_response>{% endfor -%}
|
| 79 |
+
{% endif -%}
|
| 80 |
+
{%- elif m.role == 'system' -%}
|
| 81 |
+
<|system|>{{ visible_text(m.content) }}
|
| 82 |
+
{%- endif -%}
|
| 83 |
+
{%- endfor -%}
|
| 84 |
+
{%- if add_generation_prompt -%}
|
| 85 |
+
<|assistant|>{{- '</think>' if (enable_thinking is defined and not enable_thinking) else '<think>' -}}
|
| 86 |
+
{%- endif -%}
|
config.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Glm4MoeLiteForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"pad_token_id": 154820,
|
| 8 |
+
"eos_token_id": [
|
| 9 |
+
154820,
|
| 10 |
+
154827,
|
| 11 |
+
154829
|
| 12 |
+
],
|
| 13 |
+
"hidden_act": "silu",
|
| 14 |
+
"hidden_size": 2048,
|
| 15 |
+
"intermediate_size": 10240,
|
| 16 |
+
"max_position_embeddings": 202752,
|
| 17 |
+
"model_type": "glm4_moe_lite",
|
| 18 |
+
"moe_intermediate_size": 1536,
|
| 19 |
+
"topk_method": "noaux_tc",
|
| 20 |
+
"norm_topk_prob": true,
|
| 21 |
+
"num_attention_heads": 20,
|
| 22 |
+
"n_group": 1,
|
| 23 |
+
"topk_group": 1,
|
| 24 |
+
"n_routed_experts": 64,
|
| 25 |
+
"n_shared_experts": 1,
|
| 26 |
+
"routed_scaling_factor": 1.8,
|
| 27 |
+
"num_experts_per_tok": 4,
|
| 28 |
+
"first_k_dense_replace": 1,
|
| 29 |
+
"num_hidden_layers": 47,
|
| 30 |
+
"num_key_value_heads": 20,
|
| 31 |
+
"num_nextn_predict_layers": 1,
|
| 32 |
+
"partial_rotary_factor": 1.0,
|
| 33 |
+
"rms_norm_eps": 1e-05,
|
| 34 |
+
"rope_scaling": null,
|
| 35 |
+
"rope_theta": 1000000,
|
| 36 |
+
"tie_word_embeddings": false,
|
| 37 |
+
"dtype": "bfloat16",
|
| 38 |
+
"transformers_version": "5.0.0rc0",
|
| 39 |
+
"q_lora_rank": 768,
|
| 40 |
+
"kv_lora_rank": 512,
|
| 41 |
+
"qk_nope_head_dim": 192,
|
| 42 |
+
"qk_rope_head_dim": 64,
|
| 43 |
+
"v_head_dim": 256,
|
| 44 |
+
"vocab_size": 154880,
|
| 45 |
+
"quantization_config": {
|
| 46 |
+
"quant_method": "compressed-tensors",
|
| 47 |
+
"config_groups": {
|
| 48 |
+
"group_0": {
|
| 49 |
+
"input_activations": {
|
| 50 |
+
"num_bits": 4,
|
| 51 |
+
"type": "float",
|
| 52 |
+
"strategy": "tensor_group",
|
| 53 |
+
"group_size": 16,
|
| 54 |
+
"symmetric": true,
|
| 55 |
+
"dynamic": true
|
| 56 |
+
},
|
| 57 |
+
"weights": {
|
| 58 |
+
"num_bits": 4,
|
| 59 |
+
"type": "float",
|
| 60 |
+
"strategy": "tensor_group",
|
| 61 |
+
"group_size": 16,
|
| 62 |
+
"symmetric": true
|
| 63 |
+
},
|
| 64 |
+
"targets": [
|
| 65 |
+
"Linear"
|
| 66 |
+
]
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
"format": "nvfp4-pack-quantized",
|
| 70 |
+
"ignore": [
|
| 71 |
+
"lm_head",
|
| 72 |
+
"re:.*embed.*",
|
| 73 |
+
"re:.*gate$",
|
| 74 |
+
"re:.*self_attn.*",
|
| 75 |
+
"re:.*\\.eh_proj",
|
| 76 |
+
"re:.*shared_head\\.head"
|
| 77 |
+
],
|
| 78 |
+
"dynamic": true
|
| 79 |
+
}
|
| 80 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"eos_token_id": [
|
| 4 |
+
154820,
|
| 5 |
+
154827,
|
| 6 |
+
154829
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 154820,
|
| 9 |
+
"temperature": 1.0,
|
| 10 |
+
"transformers_version": "5.0.0.dev0"
|
| 11 |
+
}
|
model-00000-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:88b660b55607cde8a869c2f841b1bb042d48b611c67ca6e812f188da5bf448a0
|
| 3 |
+
size 5369604384
|
model-00001-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9cdccf1c4e022f4107f0e156cfcb3de6e0e7a8e0b8eacc3262014f75e448168
|
| 3 |
+
size 5369189784
|
model-00002-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eec9fd341824239a59e585a0a58dc9dc5e6e69ab221ae2e56b367df3f1e9ae66
|
| 3 |
+
size 5356474456
|
model-00003-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0ca19c24ab463c1bfb56ece4d78e440d1313e3a4b58b3a99126f223f1b1eaa6f
|
| 3 |
+
size 4817978368
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19e773648cb4e65de8660ea6365e10acca112d42a854923df93db4a6f333a82d
|
| 3 |
+
size 20217442
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,321 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"154820": {
|
| 4 |
+
"content": "<|endoftext|>",
|
| 5 |
+
"single_word": false,
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"154821": {
|
| 12 |
+
"content": "[MASK]",
|
| 13 |
+
"single_word": false,
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"154822": {
|
| 20 |
+
"content": "[gMASK]",
|
| 21 |
+
"single_word": false,
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"154823": {
|
| 28 |
+
"content": "[sMASK]",
|
| 29 |
+
"single_word": false,
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"154824": {
|
| 36 |
+
"content": "<sop>",
|
| 37 |
+
"single_word": false,
|
| 38 |
+
"lstrip": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"special": true
|
| 42 |
+
},
|
| 43 |
+
"154825": {
|
| 44 |
+
"content": "<eop>",
|
| 45 |
+
"single_word": false,
|
| 46 |
+
"lstrip": false,
|
| 47 |
+
"rstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"special": true
|
| 50 |
+
},
|
| 51 |
+
"154826": {
|
| 52 |
+
"content": "<|system|>",
|
| 53 |
+
"single_word": false,
|
| 54 |
+
"lstrip": false,
|
| 55 |
+
"rstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"special": true
|
| 58 |
+
},
|
| 59 |
+
"154827": {
|
| 60 |
+
"content": "<|user|>",
|
| 61 |
+
"single_word": false,
|
| 62 |
+
"lstrip": false,
|
| 63 |
+
"rstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"special": true
|
| 66 |
+
},
|
| 67 |
+
"154828": {
|
| 68 |
+
"content": "<|assistant|>",
|
| 69 |
+
"single_word": false,
|
| 70 |
+
"lstrip": false,
|
| 71 |
+
"rstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"special": true
|
| 74 |
+
},
|
| 75 |
+
"154829": {
|
| 76 |
+
"content": "<|observation|>",
|
| 77 |
+
"single_word": false,
|
| 78 |
+
"lstrip": false,
|
| 79 |
+
"rstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"special": true
|
| 82 |
+
},
|
| 83 |
+
"154830": {
|
| 84 |
+
"content": "<|begin_of_image|>",
|
| 85 |
+
"single_word": false,
|
| 86 |
+
"lstrip": false,
|
| 87 |
+
"rstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"special": true
|
| 90 |
+
},
|
| 91 |
+
"154831": {
|
| 92 |
+
"content": "<|end_of_image|>",
|
| 93 |
+
"single_word": false,
|
| 94 |
+
"lstrip": false,
|
| 95 |
+
"rstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"special": true
|
| 98 |
+
},
|
| 99 |
+
"154832": {
|
| 100 |
+
"content": "<|begin_of_video|>",
|
| 101 |
+
"single_word": false,
|
| 102 |
+
"lstrip": false,
|
| 103 |
+
"rstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"special": true
|
| 106 |
+
},
|
| 107 |
+
"154833": {
|
| 108 |
+
"content": "<|end_of_video|>",
|
| 109 |
+
"single_word": false,
|
| 110 |
+
"lstrip": false,
|
| 111 |
+
"rstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"special": true
|
| 114 |
+
},
|
| 115 |
+
"154834": {
|
| 116 |
+
"content": "<|begin_of_audio|>",
|
| 117 |
+
"single_word": false,
|
| 118 |
+
"lstrip": false,
|
| 119 |
+
"rstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"special": true
|
| 122 |
+
},
|
| 123 |
+
"154835": {
|
| 124 |
+
"content": "<|end_of_audio|>",
|
| 125 |
+
"single_word": false,
|
| 126 |
+
"lstrip": false,
|
| 127 |
+
"rstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"special": true
|
| 130 |
+
},
|
| 131 |
+
"154836": {
|
| 132 |
+
"content": "<|begin_of_transcription|>",
|
| 133 |
+
"single_word": false,
|
| 134 |
+
"lstrip": false,
|
| 135 |
+
"rstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"special": true
|
| 138 |
+
},
|
| 139 |
+
"154837": {
|
| 140 |
+
"content": "<|end_of_transcription|>",
|
| 141 |
+
"single_word": false,
|
| 142 |
+
"lstrip": false,
|
| 143 |
+
"rstrip": false,
|
| 144 |
+
"normalized": false,
|
| 145 |
+
"special": true
|
| 146 |
+
},
|
| 147 |
+
"154838": {
|
| 148 |
+
"content": "<|code_prefix|>",
|
| 149 |
+
"single_word": false,
|
| 150 |
+
"lstrip": false,
|
| 151 |
+
"rstrip": false,
|
| 152 |
+
"normalized": false,
|
| 153 |
+
"special": false
|
| 154 |
+
},
|
| 155 |
+
"154839": {
|
| 156 |
+
"content": "<|code_middle|>",
|
| 157 |
+
"single_word": false,
|
| 158 |
+
"lstrip": false,
|
| 159 |
+
"rstrip": false,
|
| 160 |
+
"normalized": false,
|
| 161 |
+
"special": false
|
| 162 |
+
},
|
| 163 |
+
"154840": {
|
| 164 |
+
"content": "<|code_suffix|>",
|
| 165 |
+
"single_word": false,
|
| 166 |
+
"lstrip": false,
|
| 167 |
+
"rstrip": false,
|
| 168 |
+
"normalized": false,
|
| 169 |
+
"special": false
|
| 170 |
+
},
|
| 171 |
+
"154841": {
|
| 172 |
+
"content": "<think>",
|
| 173 |
+
"single_word": false,
|
| 174 |
+
"lstrip": false,
|
| 175 |
+
"rstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"special": false
|
| 178 |
+
},
|
| 179 |
+
"154842": {
|
| 180 |
+
"content": "</think>",
|
| 181 |
+
"single_word": false,
|
| 182 |
+
"lstrip": false,
|
| 183 |
+
"rstrip": false,
|
| 184 |
+
"normalized": false,
|
| 185 |
+
"special": false
|
| 186 |
+
},
|
| 187 |
+
"154843": {
|
| 188 |
+
"content": "<tool_call>",
|
| 189 |
+
"single_word": false,
|
| 190 |
+
"lstrip": false,
|
| 191 |
+
"rstrip": false,
|
| 192 |
+
"normalized": false,
|
| 193 |
+
"special": false
|
| 194 |
+
},
|
| 195 |
+
"154844": {
|
| 196 |
+
"content": "</tool_call>",
|
| 197 |
+
"single_word": false,
|
| 198 |
+
"lstrip": false,
|
| 199 |
+
"rstrip": false,
|
| 200 |
+
"normalized": false,
|
| 201 |
+
"special": false
|
| 202 |
+
},
|
| 203 |
+
"154845": {
|
| 204 |
+
"content": "<tool_response>",
|
| 205 |
+
"single_word": false,
|
| 206 |
+
"lstrip": false,
|
| 207 |
+
"rstrip": false,
|
| 208 |
+
"normalized": false,
|
| 209 |
+
"special": false
|
| 210 |
+
},
|
| 211 |
+
"154846": {
|
| 212 |
+
"content": "</tool_response>",
|
| 213 |
+
"single_word": false,
|
| 214 |
+
"lstrip": false,
|
| 215 |
+
"rstrip": false,
|
| 216 |
+
"normalized": false,
|
| 217 |
+
"special": false
|
| 218 |
+
},
|
| 219 |
+
"154847": {
|
| 220 |
+
"content": "<arg_key>",
|
| 221 |
+
"single_word": false,
|
| 222 |
+
"lstrip": false,
|
| 223 |
+
"rstrip": false,
|
| 224 |
+
"normalized": false,
|
| 225 |
+
"special": false
|
| 226 |
+
},
|
| 227 |
+
"154848": {
|
| 228 |
+
"content": "</arg_key>",
|
| 229 |
+
"single_word": false,
|
| 230 |
+
"lstrip": false,
|
| 231 |
+
"rstrip": false,
|
| 232 |
+
"normalized": false,
|
| 233 |
+
"special": false
|
| 234 |
+
},
|
| 235 |
+
"154849": {
|
| 236 |
+
"content": "<arg_value>",
|
| 237 |
+
"single_word": false,
|
| 238 |
+
"lstrip": false,
|
| 239 |
+
"rstrip": false,
|
| 240 |
+
"normalized": false,
|
| 241 |
+
"special": false
|
| 242 |
+
},
|
| 243 |
+
"154850": {
|
| 244 |
+
"content": "</arg_value>",
|
| 245 |
+
"single_word": false,
|
| 246 |
+
"lstrip": false,
|
| 247 |
+
"rstrip": false,
|
| 248 |
+
"normalized": false,
|
| 249 |
+
"special": false
|
| 250 |
+
},
|
| 251 |
+
"154851": {
|
| 252 |
+
"content": "/nothink",
|
| 253 |
+
"single_word": false,
|
| 254 |
+
"lstrip": false,
|
| 255 |
+
"rstrip": false,
|
| 256 |
+
"normalized": false,
|
| 257 |
+
"special": false
|
| 258 |
+
},
|
| 259 |
+
"154852": {
|
| 260 |
+
"content": "<|begin_of_box|>",
|
| 261 |
+
"single_word": false,
|
| 262 |
+
"lstrip": false,
|
| 263 |
+
"rstrip": false,
|
| 264 |
+
"normalized": false,
|
| 265 |
+
"special": false
|
| 266 |
+
},
|
| 267 |
+
"154853": {
|
| 268 |
+
"content": "<|end_of_box|>",
|
| 269 |
+
"single_word": false,
|
| 270 |
+
"lstrip": false,
|
| 271 |
+
"rstrip": false,
|
| 272 |
+
"normalized": false,
|
| 273 |
+
"special": false
|
| 274 |
+
},
|
| 275 |
+
"154854": {
|
| 276 |
+
"content": "<|image|>",
|
| 277 |
+
"single_word": false,
|
| 278 |
+
"lstrip": false,
|
| 279 |
+
"rstrip": false,
|
| 280 |
+
"normalized": false,
|
| 281 |
+
"special": false
|
| 282 |
+
},
|
| 283 |
+
"154855": {
|
| 284 |
+
"content": "<|video|>",
|
| 285 |
+
"single_word": false,
|
| 286 |
+
"lstrip": false,
|
| 287 |
+
"rstrip": false,
|
| 288 |
+
"normalized": false,
|
| 289 |
+
"special": false
|
| 290 |
+
}
|
| 291 |
+
},
|
| 292 |
+
"additional_special_tokens": [
|
| 293 |
+
"<|endoftext|>",
|
| 294 |
+
"[MASK]",
|
| 295 |
+
"[gMASK]",
|
| 296 |
+
"[sMASK]",
|
| 297 |
+
"<sop>",
|
| 298 |
+
"<eop>",
|
| 299 |
+
"<|system|>",
|
| 300 |
+
"<|user|>",
|
| 301 |
+
"<|assistant|>",
|
| 302 |
+
"<|observation|>",
|
| 303 |
+
"<|begin_of_image|>",
|
| 304 |
+
"<|end_of_image|>",
|
| 305 |
+
"<|begin_of_video|>",
|
| 306 |
+
"<|end_of_video|>",
|
| 307 |
+
"<|begin_of_audio|>",
|
| 308 |
+
"<|end_of_audio|>",
|
| 309 |
+
"<|begin_of_transcription|>",
|
| 310 |
+
"<|end_of_transcription|>"
|
| 311 |
+
],
|
| 312 |
+
"clean_up_tokenization_spaces": false,
|
| 313 |
+
"do_lower_case": false,
|
| 314 |
+
"eos_token": "<|endoftext|>",
|
| 315 |
+
"extra_special_tokens": {},
|
| 316 |
+
"model_max_length": 128000,
|
| 317 |
+
"pad_token": "<|endoftext|>",
|
| 318 |
+
"padding_side": "left",
|
| 319 |
+
"remove_space": false,
|
| 320 |
+
"tokenizer_class": "PreTrainedTokenizer"
|
| 321 |
+
}
|