Upload folder using huggingface_hub
Browse files- .gitattributes +2 -0
- config.json +188 -0
- rank0.engine +3 -0
- tokenization/1_Pooling/config.json +10 -0
- tokenization/config.json +30 -0
- tokenization/config_sentence_transformers.json +8 -0
- tokenization/generation_config.json +6 -0
- tokenization/merges.txt +0 -0
- tokenization/model.safetensors.index.json +405 -0
- tokenization/model_auto.py +47 -0
- tokenization/modules.json +20 -0
- tokenization/tokenizer.json +3 -0
- tokenization/tokenizer_config.json +240 -0
- tokenization/vocab.json +0 -0
.gitattributes
CHANGED
@@ -33,3 +33,5 @@ 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 |
+
rank0.engine filter=lfs diff=lfs merge=lfs -text
|
37 |
+
tokenization/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
config.json
ADDED
@@ -0,0 +1,188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"version": "0.18.1",
|
3 |
+
"pretrained_config": {
|
4 |
+
"mlp_bias": false,
|
5 |
+
"attn_bias": false,
|
6 |
+
"rotary_base": 1000000,
|
7 |
+
"rotary_scaling": null,
|
8 |
+
"disable_weight_only_quant_plugin": false,
|
9 |
+
"num_labels": 1,
|
10 |
+
"use_logn_attn": false,
|
11 |
+
"moe": {
|
12 |
+
"num_experts": 0,
|
13 |
+
"shared_expert_intermediate_size": 0,
|
14 |
+
"top_k": 0,
|
15 |
+
"normalization_mode": 0,
|
16 |
+
"sparse_mixer_epsilon": 0.01,
|
17 |
+
"tp_mode": 0,
|
18 |
+
"device_limited_n_group": 0,
|
19 |
+
"device_limited_topk_group": 0,
|
20 |
+
"device_limited_routed_scaling_factor": 1.0
|
21 |
+
},
|
22 |
+
"architecture": "Qwen3ForCausalLM",
|
23 |
+
"dtype": "bfloat16",
|
24 |
+
"vocab_size": 151669,
|
25 |
+
"hidden_size": 1024,
|
26 |
+
"num_hidden_layers": 28,
|
27 |
+
"num_attention_heads": 16,
|
28 |
+
"hidden_act": "silu",
|
29 |
+
"logits_dtype": "float16",
|
30 |
+
"norm_epsilon": 1e-06,
|
31 |
+
"runtime_defaults": null,
|
32 |
+
"position_embedding_type": "rope_gpt_neox",
|
33 |
+
"num_key_value_heads": 8,
|
34 |
+
"intermediate_size": 3072,
|
35 |
+
"max_position_embeddings": 32768,
|
36 |
+
"mapping": {
|
37 |
+
"world_size": 1,
|
38 |
+
"gpus_per_node": 8,
|
39 |
+
"cp_size": 1,
|
40 |
+
"tp_size": 1,
|
41 |
+
"pp_size": 1,
|
42 |
+
"moe_tp_size": 1,
|
43 |
+
"moe_ep_size": 1,
|
44 |
+
"auto_parallel": false
|
45 |
+
},
|
46 |
+
"quantization": {
|
47 |
+
"quant_algo": "FP8",
|
48 |
+
"kv_cache_quant_algo": null,
|
49 |
+
"group_size": 128,
|
50 |
+
"smoothquant_val": 0.5,
|
51 |
+
"clamp_val": null,
|
52 |
+
"use_meta_recipe": false,
|
53 |
+
"has_zero_point": false,
|
54 |
+
"pre_quant_scale": false,
|
55 |
+
"exclude_modules": [
|
56 |
+
"lm_head"
|
57 |
+
]
|
58 |
+
},
|
59 |
+
"use_parallel_embedding": true,
|
60 |
+
"embedding_sharding_dim": 0,
|
61 |
+
"head_size": 128,
|
62 |
+
"qk_layernorm": false,
|
63 |
+
"rotary_embedding_dim": 128,
|
64 |
+
"producer": {
|
65 |
+
"name": "modelopt",
|
66 |
+
"version": "0.27.0"
|
67 |
+
},
|
68 |
+
"share_embedding_table": false,
|
69 |
+
"residual_mlp": false,
|
70 |
+
"bias": false,
|
71 |
+
"rotary_pct": 1.0,
|
72 |
+
"rank": 0,
|
73 |
+
"decoder": "qwen",
|
74 |
+
"rmsnorm": true,
|
75 |
+
"lm_head_bias": false,
|
76 |
+
"seq_length": 8192,
|
77 |
+
"qwen_type": "qwen3",
|
78 |
+
"moe_intermediate_size": 0,
|
79 |
+
"moe_shared_expert_intermediate_size": 0,
|
80 |
+
"tie_word_embeddings": true,
|
81 |
+
"model_type": "qwen",
|
82 |
+
"pooling_mode": "lasttoken",
|
83 |
+
"is_causal": true,
|
84 |
+
"id2label": {
|
85 |
+
"0": "LABEL_0",
|
86 |
+
"1": "LABEL_1"
|
87 |
+
}
|
88 |
+
},
|
89 |
+
"build_config": {
|
90 |
+
"max_input_len": 32768,
|
91 |
+
"max_seq_len": 32768,
|
92 |
+
"opt_batch_size": 8,
|
93 |
+
"max_batch_size": 256,
|
94 |
+
"max_beam_width": 1,
|
95 |
+
"max_num_tokens": 32768,
|
96 |
+
"opt_num_tokens": 256,
|
97 |
+
"max_prompt_embedding_table_size": 0,
|
98 |
+
"kv_cache_type": "DISABLED",
|
99 |
+
"gather_context_logits": false,
|
100 |
+
"gather_generation_logits": false,
|
101 |
+
"strongly_typed": true,
|
102 |
+
"force_num_profiles": null,
|
103 |
+
"profiling_verbosity": "layer_names_only",
|
104 |
+
"enable_debug_output": false,
|
105 |
+
"max_draft_len": 0,
|
106 |
+
"speculative_decoding_mode": 1,
|
107 |
+
"use_refit": false,
|
108 |
+
"input_timing_cache": null,
|
109 |
+
"output_timing_cache": "model.cache",
|
110 |
+
"lora_config": {
|
111 |
+
"lora_dir": [],
|
112 |
+
"lora_ckpt_source": "hf",
|
113 |
+
"max_lora_rank": 64,
|
114 |
+
"lora_target_modules": [],
|
115 |
+
"trtllm_modules_to_hf_modules": {}
|
116 |
+
},
|
117 |
+
"auto_parallel_config": {
|
118 |
+
"world_size": 1,
|
119 |
+
"gpus_per_node": 8,
|
120 |
+
"cluster_key": null,
|
121 |
+
"cluster_info": null,
|
122 |
+
"sharding_cost_model": "alpha_beta",
|
123 |
+
"comm_cost_model": "alpha_beta",
|
124 |
+
"enable_pipeline_parallelism": false,
|
125 |
+
"enable_shard_unbalanced_shape": false,
|
126 |
+
"enable_shard_dynamic_shape": false,
|
127 |
+
"enable_reduce_scatter": true,
|
128 |
+
"builder_flags": null,
|
129 |
+
"debug_mode": false,
|
130 |
+
"infer_shape": true,
|
131 |
+
"validation_mode": false,
|
132 |
+
"same_buffer_io": {},
|
133 |
+
"same_spec_io": {},
|
134 |
+
"sharded_io_allowlist": [],
|
135 |
+
"fill_weights": false,
|
136 |
+
"parallel_config_cache": null,
|
137 |
+
"profile_cache": null,
|
138 |
+
"dump_path": null,
|
139 |
+
"debug_outputs": []
|
140 |
+
},
|
141 |
+
"weight_sparsity": false,
|
142 |
+
"weight_streaming": false,
|
143 |
+
"plugin_config": {
|
144 |
+
"dtype": "bfloat16",
|
145 |
+
"bert_attention_plugin": "auto",
|
146 |
+
"gpt_attention_plugin": "auto",
|
147 |
+
"gemm_plugin": null,
|
148 |
+
"explicitly_disable_gemm_plugin": false,
|
149 |
+
"gemm_swiglu_plugin": null,
|
150 |
+
"fp8_rowwise_gemm_plugin": null,
|
151 |
+
"qserve_gemm_plugin": null,
|
152 |
+
"identity_plugin": null,
|
153 |
+
"nccl_plugin": null,
|
154 |
+
"lora_plugin": null,
|
155 |
+
"weight_only_groupwise_quant_matmul_plugin": null,
|
156 |
+
"weight_only_quant_matmul_plugin": null,
|
157 |
+
"smooth_quant_plugins": true,
|
158 |
+
"smooth_quant_gemm_plugin": null,
|
159 |
+
"layernorm_quantization_plugin": null,
|
160 |
+
"rmsnorm_quantization_plugin": null,
|
161 |
+
"quantize_per_token_plugin": false,
|
162 |
+
"quantize_tensor_plugin": false,
|
163 |
+
"moe_plugin": "auto",
|
164 |
+
"mamba_conv1d_plugin": "auto",
|
165 |
+
"low_latency_gemm_plugin": null,
|
166 |
+
"low_latency_gemm_swiglu_plugin": null,
|
167 |
+
"context_fmha": true,
|
168 |
+
"bert_context_fmha_fp32_acc": false,
|
169 |
+
"paged_kv_cache": false,
|
170 |
+
"remove_input_padding": true,
|
171 |
+
"reduce_fusion": false,
|
172 |
+
"user_buffer": false,
|
173 |
+
"tokens_per_block": 64,
|
174 |
+
"use_paged_context_fmha": false,
|
175 |
+
"use_fp8_context_fmha": false,
|
176 |
+
"multiple_profiles": false,
|
177 |
+
"paged_state": false,
|
178 |
+
"streamingllm": false,
|
179 |
+
"manage_weights": false,
|
180 |
+
"use_fused_mlp": true,
|
181 |
+
"pp_reduce_scatter": false
|
182 |
+
},
|
183 |
+
"use_strip_plan": false,
|
184 |
+
"max_encoder_input_len": 1024,
|
185 |
+
"monitor_memory": false,
|
186 |
+
"use_mrope": false
|
187 |
+
}
|
188 |
+
}
|
rank0.engine
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b73f63e38635edcb326d24f0bde57b995b71531c38e481d2f16e3936dfe3265b
|
3 |
+
size 779308428
|
tokenization/1_Pooling/config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"word_embedding_dimension": 1024,
|
3 |
+
"pooling_mode_cls_token": false,
|
4 |
+
"pooling_mode_mean_tokens": false,
|
5 |
+
"pooling_mode_max_tokens": false,
|
6 |
+
"pooling_mode_mean_sqrt_len_tokens": false,
|
7 |
+
"pooling_mode_weightedmean_tokens": false,
|
8 |
+
"pooling_mode_lasttoken": true,
|
9 |
+
"include_prompt": true
|
10 |
+
}
|
tokenization/config.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"Qwen3Model"
|
4 |
+
],
|
5 |
+
"attention_bias": false,
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 151643,
|
8 |
+
"eos_token_id": 151643,
|
9 |
+
"head_dim": 128,
|
10 |
+
"hidden_act": "silu",
|
11 |
+
"hidden_size": 1024,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 3072,
|
14 |
+
"max_position_embeddings": 32768,
|
15 |
+
"max_window_layers": 28,
|
16 |
+
"model_type": "qwen3",
|
17 |
+
"num_attention_heads": 16,
|
18 |
+
"num_hidden_layers": 28,
|
19 |
+
"num_key_value_heads": 8,
|
20 |
+
"rms_norm_eps": 1e-06,
|
21 |
+
"rope_scaling": null,
|
22 |
+
"rope_theta": 1000000,
|
23 |
+
"sliding_window": null,
|
24 |
+
"tie_word_embeddings": true,
|
25 |
+
"torch_dtype": "bfloat16",
|
26 |
+
"transformers_version": "4.52.4",
|
27 |
+
"use_cache": true,
|
28 |
+
"use_sliding_window": false,
|
29 |
+
"vocab_size": 151669
|
30 |
+
}
|
tokenization/config_sentence_transformers.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"prompts": {
|
3 |
+
"query": "Instruct: Given a web search query, retrieve relevant passages that answer the query\nQuery:",
|
4 |
+
"document": ""
|
5 |
+
},
|
6 |
+
"default_prompt_name": null,
|
7 |
+
"similarity_fn_name": "cosine"
|
8 |
+
}
|
tokenization/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.51.3"
|
6 |
+
}
|
tokenization/merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenization/model.safetensors.index.json
ADDED
@@ -0,0 +1,405 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"metadata": {
|
3 |
+
"total_size": 15134590976
|
4 |
+
},
|
5 |
+
"weight_map": {
|
6 |
+
"embed_tokens.weight": "model-00001-of-00004.safetensors",
|
7 |
+
"layers.0.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
8 |
+
"layers.0.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
9 |
+
"layers.0.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
10 |
+
"layers.0.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
11 |
+
"layers.0.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
12 |
+
"layers.0.self_attn.k_norm.weight": "model-00001-of-00004.safetensors",
|
13 |
+
"layers.0.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
14 |
+
"layers.0.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
15 |
+
"layers.0.self_attn.q_norm.weight": "model-00001-of-00004.safetensors",
|
16 |
+
"layers.0.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
17 |
+
"layers.0.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
18 |
+
"layers.1.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
19 |
+
"layers.1.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
20 |
+
"layers.1.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
21 |
+
"layers.1.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
22 |
+
"layers.1.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
23 |
+
"layers.1.self_attn.k_norm.weight": "model-00001-of-00004.safetensors",
|
24 |
+
"layers.1.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
25 |
+
"layers.1.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
26 |
+
"layers.1.self_attn.q_norm.weight": "model-00001-of-00004.safetensors",
|
27 |
+
"layers.1.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
28 |
+
"layers.1.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
29 |
+
"layers.10.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
30 |
+
"layers.10.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
31 |
+
"layers.10.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
32 |
+
"layers.10.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
33 |
+
"layers.10.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
34 |
+
"layers.10.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
|
35 |
+
"layers.10.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
36 |
+
"layers.10.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
37 |
+
"layers.10.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
|
38 |
+
"layers.10.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
39 |
+
"layers.10.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
40 |
+
"layers.11.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
41 |
+
"layers.11.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
42 |
+
"layers.11.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
43 |
+
"layers.11.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
44 |
+
"layers.11.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
45 |
+
"layers.11.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
|
46 |
+
"layers.11.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
47 |
+
"layers.11.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
48 |
+
"layers.11.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
|
49 |
+
"layers.11.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
50 |
+
"layers.11.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
51 |
+
"layers.12.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
52 |
+
"layers.12.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
53 |
+
"layers.12.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
54 |
+
"layers.12.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
55 |
+
"layers.12.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
56 |
+
"layers.12.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
|
57 |
+
"layers.12.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
58 |
+
"layers.12.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
59 |
+
"layers.12.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
|
60 |
+
"layers.12.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
61 |
+
"layers.12.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
62 |
+
"layers.13.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
63 |
+
"layers.13.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
64 |
+
"layers.13.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
65 |
+
"layers.13.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
66 |
+
"layers.13.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
67 |
+
"layers.13.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
|
68 |
+
"layers.13.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
69 |
+
"layers.13.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
70 |
+
"layers.13.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
|
71 |
+
"layers.13.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
72 |
+
"layers.13.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
73 |
+
"layers.14.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
74 |
+
"layers.14.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
75 |
+
"layers.14.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
76 |
+
"layers.14.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
77 |
+
"layers.14.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
78 |
+
"layers.14.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
|
79 |
+
"layers.14.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
80 |
+
"layers.14.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
81 |
+
"layers.14.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
|
82 |
+
"layers.14.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
83 |
+
"layers.14.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
84 |
+
"layers.15.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
85 |
+
"layers.15.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
86 |
+
"layers.15.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
87 |
+
"layers.15.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
88 |
+
"layers.15.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
89 |
+
"layers.15.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
|
90 |
+
"layers.15.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
91 |
+
"layers.15.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
92 |
+
"layers.15.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
|
93 |
+
"layers.15.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
94 |
+
"layers.15.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
95 |
+
"layers.16.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
96 |
+
"layers.16.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
97 |
+
"layers.16.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
98 |
+
"layers.16.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
99 |
+
"layers.16.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
100 |
+
"layers.16.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
|
101 |
+
"layers.16.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
102 |
+
"layers.16.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
103 |
+
"layers.16.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
|
104 |
+
"layers.16.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
105 |
+
"layers.16.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
106 |
+
"layers.17.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
107 |
+
"layers.17.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
108 |
+
"layers.17.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
109 |
+
"layers.17.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
110 |
+
"layers.17.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
111 |
+
"layers.17.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
|
112 |
+
"layers.17.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
113 |
+
"layers.17.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
114 |
+
"layers.17.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
|
115 |
+
"layers.17.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
116 |
+
"layers.17.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
117 |
+
"layers.18.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
118 |
+
"layers.18.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
119 |
+
"layers.18.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
120 |
+
"layers.18.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
121 |
+
"layers.18.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
122 |
+
"layers.18.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
|
123 |
+
"layers.18.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
124 |
+
"layers.18.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
125 |
+
"layers.18.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
|
126 |
+
"layers.18.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
127 |
+
"layers.18.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
128 |
+
"layers.19.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
129 |
+
"layers.19.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
130 |
+
"layers.19.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
131 |
+
"layers.19.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
132 |
+
"layers.19.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
133 |
+
"layers.19.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
|
134 |
+
"layers.19.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
135 |
+
"layers.19.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
136 |
+
"layers.19.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
|
137 |
+
"layers.19.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
138 |
+
"layers.19.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
139 |
+
"layers.2.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
140 |
+
"layers.2.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
141 |
+
"layers.2.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
142 |
+
"layers.2.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
143 |
+
"layers.2.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
144 |
+
"layers.2.self_attn.k_norm.weight": "model-00001-of-00004.safetensors",
|
145 |
+
"layers.2.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
146 |
+
"layers.2.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
147 |
+
"layers.2.self_attn.q_norm.weight": "model-00001-of-00004.safetensors",
|
148 |
+
"layers.2.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
149 |
+
"layers.2.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
150 |
+
"layers.20.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
151 |
+
"layers.20.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
152 |
+
"layers.20.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
153 |
+
"layers.20.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
154 |
+
"layers.20.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
155 |
+
"layers.20.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
|
156 |
+
"layers.20.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
157 |
+
"layers.20.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
158 |
+
"layers.20.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
|
159 |
+
"layers.20.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
160 |
+
"layers.20.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
161 |
+
"layers.21.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
162 |
+
"layers.21.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
163 |
+
"layers.21.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
164 |
+
"layers.21.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
165 |
+
"layers.21.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
166 |
+
"layers.21.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
|
167 |
+
"layers.21.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
168 |
+
"layers.21.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
169 |
+
"layers.21.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
|
170 |
+
"layers.21.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
171 |
+
"layers.21.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
172 |
+
"layers.22.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
173 |
+
"layers.22.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
174 |
+
"layers.22.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
175 |
+
"layers.22.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
176 |
+
"layers.22.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
177 |
+
"layers.22.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
|
178 |
+
"layers.22.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
179 |
+
"layers.22.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
180 |
+
"layers.22.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
|
181 |
+
"layers.22.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
182 |
+
"layers.22.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
183 |
+
"layers.23.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
184 |
+
"layers.23.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
185 |
+
"layers.23.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
186 |
+
"layers.23.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
187 |
+
"layers.23.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
188 |
+
"layers.23.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
|
189 |
+
"layers.23.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
190 |
+
"layers.23.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
191 |
+
"layers.23.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
|
192 |
+
"layers.23.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
193 |
+
"layers.23.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
194 |
+
"layers.24.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
195 |
+
"layers.24.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
196 |
+
"layers.24.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
197 |
+
"layers.24.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
198 |
+
"layers.24.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
199 |
+
"layers.24.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
|
200 |
+
"layers.24.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
201 |
+
"layers.24.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
202 |
+
"layers.24.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
|
203 |
+
"layers.24.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
204 |
+
"layers.24.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
205 |
+
"layers.25.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
206 |
+
"layers.25.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
207 |
+
"layers.25.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
208 |
+
"layers.25.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
209 |
+
"layers.25.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
210 |
+
"layers.25.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
|
211 |
+
"layers.25.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
212 |
+
"layers.25.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
213 |
+
"layers.25.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
|
214 |
+
"layers.25.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
215 |
+
"layers.25.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
216 |
+
"layers.26.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
217 |
+
"layers.26.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
218 |
+
"layers.26.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
219 |
+
"layers.26.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
220 |
+
"layers.26.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
221 |
+
"layers.26.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
|
222 |
+
"layers.26.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
223 |
+
"layers.26.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
224 |
+
"layers.26.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
|
225 |
+
"layers.26.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
226 |
+
"layers.26.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
227 |
+
"layers.27.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
228 |
+
"layers.27.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
229 |
+
"layers.27.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
230 |
+
"layers.27.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
231 |
+
"layers.27.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
232 |
+
"layers.27.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
|
233 |
+
"layers.27.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
234 |
+
"layers.27.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
235 |
+
"layers.27.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
|
236 |
+
"layers.27.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
237 |
+
"layers.27.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
238 |
+
"layers.28.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
239 |
+
"layers.28.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
240 |
+
"layers.28.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
241 |
+
"layers.28.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
242 |
+
"layers.28.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
243 |
+
"layers.28.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
|
244 |
+
"layers.28.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
245 |
+
"layers.28.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
246 |
+
"layers.28.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
|
247 |
+
"layers.28.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
248 |
+
"layers.28.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
249 |
+
"layers.29.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
250 |
+
"layers.29.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
251 |
+
"layers.29.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
252 |
+
"layers.29.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
253 |
+
"layers.29.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
254 |
+
"layers.29.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
|
255 |
+
"layers.29.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
256 |
+
"layers.29.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
257 |
+
"layers.29.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
|
258 |
+
"layers.29.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
259 |
+
"layers.29.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
260 |
+
"layers.3.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
261 |
+
"layers.3.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
262 |
+
"layers.3.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
263 |
+
"layers.3.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
264 |
+
"layers.3.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
265 |
+
"layers.3.self_attn.k_norm.weight": "model-00001-of-00004.safetensors",
|
266 |
+
"layers.3.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
267 |
+
"layers.3.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
268 |
+
"layers.3.self_attn.q_norm.weight": "model-00001-of-00004.safetensors",
|
269 |
+
"layers.3.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
270 |
+
"layers.3.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
271 |
+
"layers.30.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
272 |
+
"layers.30.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
273 |
+
"layers.30.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
274 |
+
"layers.30.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
275 |
+
"layers.30.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
276 |
+
"layers.30.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
|
277 |
+
"layers.30.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
278 |
+
"layers.30.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
279 |
+
"layers.30.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
|
280 |
+
"layers.30.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
281 |
+
"layers.30.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
282 |
+
"layers.31.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
283 |
+
"layers.31.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
284 |
+
"layers.31.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
285 |
+
"layers.31.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
286 |
+
"layers.31.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
287 |
+
"layers.31.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
|
288 |
+
"layers.31.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
289 |
+
"layers.31.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
290 |
+
"layers.31.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
|
291 |
+
"layers.31.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
292 |
+
"layers.31.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
293 |
+
"layers.32.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
294 |
+
"layers.32.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
295 |
+
"layers.32.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
296 |
+
"layers.32.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
297 |
+
"layers.32.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
298 |
+
"layers.32.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
|
299 |
+
"layers.32.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
300 |
+
"layers.32.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
301 |
+
"layers.32.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
|
302 |
+
"layers.32.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
303 |
+
"layers.32.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
304 |
+
"layers.33.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
305 |
+
"layers.33.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
306 |
+
"layers.33.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
307 |
+
"layers.33.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
308 |
+
"layers.33.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
309 |
+
"layers.33.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
|
310 |
+
"layers.33.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
311 |
+
"layers.33.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
312 |
+
"layers.33.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
|
313 |
+
"layers.33.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
314 |
+
"layers.33.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
315 |
+
"layers.34.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
316 |
+
"layers.34.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
317 |
+
"layers.34.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
318 |
+
"layers.34.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
319 |
+
"layers.34.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
320 |
+
"layers.34.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
|
321 |
+
"layers.34.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
322 |
+
"layers.34.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
323 |
+
"layers.34.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
|
324 |
+
"layers.34.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
325 |
+
"layers.34.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
326 |
+
"layers.35.input_layernorm.weight": "model-00004-of-00004.safetensors",
|
327 |
+
"layers.35.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
|
328 |
+
"layers.35.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
|
329 |
+
"layers.35.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
|
330 |
+
"layers.35.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
|
331 |
+
"layers.35.self_attn.k_norm.weight": "model-00004-of-00004.safetensors",
|
332 |
+
"layers.35.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
333 |
+
"layers.35.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
|
334 |
+
"layers.35.self_attn.q_norm.weight": "model-00004-of-00004.safetensors",
|
335 |
+
"layers.35.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
336 |
+
"layers.35.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
337 |
+
"layers.4.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
338 |
+
"layers.4.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
339 |
+
"layers.4.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
340 |
+
"layers.4.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
341 |
+
"layers.4.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
342 |
+
"layers.4.self_attn.k_norm.weight": "model-00001-of-00004.safetensors",
|
343 |
+
"layers.4.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
344 |
+
"layers.4.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
345 |
+
"layers.4.self_attn.q_norm.weight": "model-00001-of-00004.safetensors",
|
346 |
+
"layers.4.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
347 |
+
"layers.4.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
348 |
+
"layers.5.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
349 |
+
"layers.5.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
350 |
+
"layers.5.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
351 |
+
"layers.5.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
352 |
+
"layers.5.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
353 |
+
"layers.5.self_attn.k_norm.weight": "model-00001-of-00004.safetensors",
|
354 |
+
"layers.5.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
355 |
+
"layers.5.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
356 |
+
"layers.5.self_attn.q_norm.weight": "model-00001-of-00004.safetensors",
|
357 |
+
"layers.5.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
358 |
+
"layers.5.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
359 |
+
"layers.6.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
360 |
+
"layers.6.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
361 |
+
"layers.6.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
362 |
+
"layers.6.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
363 |
+
"layers.6.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
364 |
+
"layers.6.self_attn.k_norm.weight": "model-00001-of-00004.safetensors",
|
365 |
+
"layers.6.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
366 |
+
"layers.6.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
367 |
+
"layers.6.self_attn.q_norm.weight": "model-00001-of-00004.safetensors",
|
368 |
+
"layers.6.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
369 |
+
"layers.6.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
370 |
+
"layers.7.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
371 |
+
"layers.7.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
372 |
+
"layers.7.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
373 |
+
"layers.7.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
374 |
+
"layers.7.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
375 |
+
"layers.7.self_attn.k_norm.weight": "model-00001-of-00004.safetensors",
|
376 |
+
"layers.7.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
377 |
+
"layers.7.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
378 |
+
"layers.7.self_attn.q_norm.weight": "model-00001-of-00004.safetensors",
|
379 |
+
"layers.7.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
380 |
+
"layers.7.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
381 |
+
"layers.8.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
382 |
+
"layers.8.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
383 |
+
"layers.8.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
384 |
+
"layers.8.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
385 |
+
"layers.8.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
386 |
+
"layers.8.self_attn.k_norm.weight": "model-00001-of-00004.safetensors",
|
387 |
+
"layers.8.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
388 |
+
"layers.8.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
389 |
+
"layers.8.self_attn.q_norm.weight": "model-00001-of-00004.safetensors",
|
390 |
+
"layers.8.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
391 |
+
"layers.8.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
392 |
+
"layers.9.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
393 |
+
"layers.9.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
394 |
+
"layers.9.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
395 |
+
"layers.9.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
396 |
+
"layers.9.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
397 |
+
"layers.9.self_attn.k_norm.weight": "model-00001-of-00004.safetensors",
|
398 |
+
"layers.9.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
399 |
+
"layers.9.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
400 |
+
"layers.9.self_attn.q_norm.weight": "model-00001-of-00004.safetensors",
|
401 |
+
"layers.9.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
402 |
+
"layers.9.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
403 |
+
"norm.weight": "model-00004-of-00004.safetensors"
|
404 |
+
}
|
405 |
+
}
|
tokenization/model_auto.py
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from transformers import AutoModel
|
2 |
+
from huggingface_hub import HfApi, snapshot_download
|
3 |
+
|
4 |
+
def get_model(model_name: str):
|
5 |
+
"""
|
6 |
+
Load a model from the Hugging Face model hub.
|
7 |
+
|
8 |
+
Args:
|
9 |
+
model_name (str): The name of the model to load.
|
10 |
+
|
11 |
+
Returns:
|
12 |
+
transformers.PreTrainedModel: The loaded model.
|
13 |
+
"""
|
14 |
+
return AutoModel.from_pretrained(model_name, torch_dtype="bfloat16")
|
15 |
+
|
16 |
+
|
17 |
+
def upload_and_convert(
|
18 |
+
model_name: str = "mixedbread-ai/mxbai-rerank-base-v2",
|
19 |
+
):
|
20 |
+
"""Upload the converted sequence classifier to the hub."""
|
21 |
+
model = get_model(model_name)
|
22 |
+
split_name = model_name.split("/")[-1]
|
23 |
+
|
24 |
+
|
25 |
+
|
26 |
+
snapshot_download(f"{model_name}", local_dir=f"./{split_name}")
|
27 |
+
model.save_pretrained(f"./{split_name}")
|
28 |
+
|
29 |
+
api = HfApi()
|
30 |
+
api.create_repo(repo_id=f"michaelfeil/{split_name}-auto", exist_ok=True)
|
31 |
+
api.upload_folder(
|
32 |
+
repo_id=f"michaelfeil/{split_name}-auto",
|
33 |
+
folder_path=f"./{split_name}",
|
34 |
+
)
|
35 |
+
|
36 |
+
|
37 |
+
if __name__ == "__main__":
|
38 |
+
upload_and_convert(
|
39 |
+
model_name="Qwen/Qwen3-Embedding-0.6B",
|
40 |
+
)
|
41 |
+
upload_and_convert(
|
42 |
+
model_name="Qwen/Qwen3-Embedding-4B",
|
43 |
+
)
|
44 |
+
upload_and_convert(
|
45 |
+
model_name="Qwen/Qwen3-Embedding-8B",
|
46 |
+
)
|
47 |
+
print("Model uploaded successfully.")
|
tokenization/modules.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"idx": 0,
|
4 |
+
"name": "0",
|
5 |
+
"path": "",
|
6 |
+
"type": "sentence_transformers.models.Transformer"
|
7 |
+
},
|
8 |
+
{
|
9 |
+
"idx": 1,
|
10 |
+
"name": "1",
|
11 |
+
"path": "1_Pooling",
|
12 |
+
"type": "sentence_transformers.models.Pooling"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"idx": 2,
|
16 |
+
"name": "2",
|
17 |
+
"path": "2_Normalize",
|
18 |
+
"type": "sentence_transformers.models.Normalize"
|
19 |
+
}
|
20 |
+
]
|
tokenization/tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:def76fb086971c7867b829c23a26261e38d9d74e02139253b38aeb9df8b4b50a
|
3 |
+
size 11423705
|
tokenization/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 |
+
"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\n {{- \"# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\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\" }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0].content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set content = message.content %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is defined and message.reasoning_content is not none %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in message.content %}\n {%- set content = message.content.split('</think>')[-1].lstrip('\\n') %}\n {%- set reasoning_content = message.content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content.strip('\\n') + '\\n</think>\\n\\n' + content.lstrip('\\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- endif %}\n{%- endif %}",
|
231 |
+
"clean_up_tokenization_spaces": false,
|
232 |
+
"eos_token": "<|im_end|>",
|
233 |
+
"errors": "replace",
|
234 |
+
"extra_special_tokens": {},
|
235 |
+
"model_max_length": 131072,
|
236 |
+
"pad_token": "<|endoftext|>",
|
237 |
+
"split_special_tokens": false,
|
238 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
239 |
+
"unk_token": null
|
240 |
+
}
|
tokenization/vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|