ronx-labs commited on
Commit
4102587
·
verified ·
1 Parent(s): 3548c16

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ qwen3-total-recall.gif filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,397 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: transformers
4
+ language:
5
+ - en
6
+ - fr
7
+ - zh
8
+ - de
9
+ tags:
10
+ - programming
11
+ - code generation
12
+ - code
13
+ - codeqwen
14
+ - programming
15
+ - code generation
16
+ - code
17
+ - codeqwen
18
+ - moe
19
+ - coding
20
+ - coder
21
+ - qwen2
22
+ - chat
23
+ - qwen
24
+ - qwen-coder
25
+ - chat
26
+ - qwen
27
+ - qwen-coder
28
+ - moe
29
+ - Qwen3-Coder-30B-A3B-Instruct
30
+ - Qwen3-30B-A3B
31
+ - mixture of experts
32
+ - 128 experts
33
+ - 10 active experts
34
+ - 256k context
35
+ - qwen3
36
+ - finetune
37
+ - brainstorm 40x
38
+ - brainstorm
39
+ - optional thinking
40
+ - qwen3_moe
41
+ base_model:
42
+ - Qwen/Qwen3-Coder-30B-A3B-Instruct
43
+ pipeline_tag: text-generation
44
+ ---
45
+
46
+ <h2>Qwen3-Coder-53B-A3B-Instruct-TOTAL-RECALL-v2-MASTER-CODER-L [256k context]</h2>
47
+
48
+ <img src="qwen3-total-recall.gif" style="float:right; width:300px; height:300px; padding:10px;">
49
+
50
+ This repo contains the full precision source code, in "safe tensors" format to generate GGUFs, GPTQ, EXL2, AWQ, HQQ and other formats.
51
+ The source code can also be used directly.
52
+
53
+ This model is for CODING and programming in all major programming languages and many minor ones too.
54
+
55
+ This model is based on Qwen3-Coder-30B-A3B-Instruct (MOE, 128 experts, 10 activated), with Brainstorm 20X
56
+ (by DavidAU) - details at bottom of this page.
57
+
58
+ The Brainstorm adapter will improve general performance and "out of the box" thinking.
59
+
60
+ This creates a model of 53B parameters, 84 layers and 1011 tensors.
61
+
62
+ This version has the NATIVE context of 256k.
63
+
64
+ I modified the default experts to 10, from the base of 8 (activated) - found this works better with coding and Brainstorm in general.
65
+
66
+ You can change the number of expert activated - see below in help section.
67
+
68
+ This is a non-reasoning/non-thinking block model.
69
+
70
+ I have included an optional system prompt to invoke "thinking" in this model, if you want to activate it.
71
+
72
+ For coding, programming set expert to:
73
+ - 6-8 for general work.
74
+ - 10 for moderate work. [default]
75
+ - 12-16 for complex work, long projects, complex coding.
76
+ - Suggest min context window 4k to 8k.
77
+ - And for longer context, and/or multi-turn -> increase experts by 1-2 to help with longer context/multi turn understanding.
78
+
79
+ Recommended settings - general:
80
+ - Rep pen 1.05 to 1.1 ; however rep pen of 1 will work well (may need to raise it for lower quants/fewer activated experts)
81
+ - Temp .3 to .6 (+- .2)
82
+ - Topk of 20, 40 or 100
83
+ - Topp of .95 / min p of .05
84
+ - Suggest min context window 4k to 8k.
85
+ - System prompt (optional) to focus the model better.
86
+
87
+ This is the refined version -V1.4- from this project (see this repo for all settings, details, system prompts, example generations etc etc):
88
+
89
+ https://huggingface.co/DavidAU/Qwen3-55B-A3B-TOTAL-RECALL-Deep-40X-GGUF/
90
+
91
+ This version 2 is slightly smaller, with further refinements to the Brainstorm adapter and uses the new "Qwen3-30B-A3B-Instruct-2507".
92
+
93
+ Review and Specialized Settings for this model (V 1.4):
94
+
95
+ https://www.linkedin.com/posts/gchesler_davidauqwen3-53b-a3b-total-recall-v14-128k-activity-7344938636141858816-ILCM/
96
+
97
+ https://www.linkedin.com/posts/gchesler_haskell-postgres-agentic-activity-7347103276141596672-_zbo/
98
+
99
+ You may also want to see (root model of Total Recall series - Version 1):
100
+
101
+ https://huggingface.co/Qwen/Qwen3-30B-A3B
102
+
103
+ AND Version 2 root model:
104
+
105
+ https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct
106
+
107
+ For additional settings, tool use, and other model settings.
108
+
109
+ Summary of root model below, followed by FULL HELP SECTION, then info on Brainstorm 40x.
110
+
111
+ OPTIONAL SYSTEM PROMPT - INVOKE "Thinking":
112
+
113
+ ```
114
+ Enable deep thinking subroutine. You are a deep thinking AI, you may use extremely long chains of thought to deeply consider the problem and deliberate with yourself via systematic reasoning processes to help come to a correct solution prior to answering. You should enclose your thoughts and internal monologue inside ###ponder### ###/ponder### tags, and then provide your solution or response to the problem.
115
+ ```
116
+
117
+ Use this to INVOKE "thinking" block(s) in the model. These will be a lot shorter than 1000s of tokens generally in most "thinking" models.
118
+
119
+ In you use this prompt, you may need to raise "rep pen" to 1.08 to 1.1, to prevent "loops" in the "thought block(s)" ; especially in lower quants.
120
+
121
+ If you change "ponder" to a different word/phrase this will affect model "thinking" too.
122
+
123
+ ---
124
+
125
+ QUANTS
126
+
127
+ ---
128
+
129
+ Special Thanks to Team Mradermacher, and Nightmedia for the quants:
130
+
131
+ GGUF:
132
+
133
+ https://huggingface.co/mradermacher/Qwen3-Coder-53B-A3B-Instruct-TOTAL-RECALL-v2-MASTER-CODER-L-GGUF
134
+
135
+ GGUF-IMATRIX:
136
+
137
+ https://huggingface.co/mradermacher/Qwen3-Coder-53B-A3B-Instruct-TOTAL-RECALL-v2-MASTER-CODER-L-i1-GGUF
138
+
139
+ MLX:
140
+
141
+ https://huggingface.co/nightmedia/Qwen3-Coder-53B-A3B-Instruct-TOTAL-RECALL-v2-MASTER-CODER-L-q5-hi-mlx
142
+
143
+ https://huggingface.co/nightmedia/Qwen3-Coder-53B-A3B-Instruct-TOTAL-RECALL-v2-MASTER-CODER-L-q6-mlx
144
+
145
+
146
+ ---
147
+
148
+ # Qwen3-Coder-3B-A3B-Instruct
149
+
150
+ ## Highlights
151
+
152
+ **Qwen3-Coder** is available in multiple sizes. Today, we're excited to introduce **Qwen3-Coder-30B-A3B-Instruct**. This streamlined model maintains impressive performance and efficiency, featuring the following key enhancements:
153
+
154
+ - **Significant Performance** among open models on **Agentic Coding**, **Agentic Browser-Use**, and other foundational coding tasks.
155
+ - **Long-context Capabilities** with native support for **256K** tokens, extendable up to **1M** tokens using Yarn, optimized for repository-scale understanding.
156
+ - **Agentic Coding** supporting for most platform such as **Qwen Code**, **CLINE**, featuring a specially designed function call format.
157
+
158
+ ![image/jpeg](https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen3-Coder/qwen3-coder-30a3-main.jpg)
159
+
160
+ ## Model Overview
161
+
162
+ **Qwen3-Coder-30B-A3B-Instruct** has the following features:
163
+ - Type: Causal Language Models
164
+ - Training Stage: Pretraining & Post-training
165
+ - Number of Parameters: 30.5B in total and 3.3B activated
166
+ - Number of Layers: 48
167
+ - Number of Attention Heads (GQA): 32 for Q and 4 for KV
168
+ - Number of Experts: 128
169
+ - Number of Activated Experts: 8
170
+ - Context Length: **262,144 natively**.
171
+
172
+ **NOTE: This model supports only non-thinking mode and does not generate ``<think></think>`` blocks in its output. Meanwhile, specifying `enable_thinking=False` is no longer required.**
173
+
174
+ For more details, including benchmark evaluation, hardware requirements, and inference performance, please refer to our [blog](https://qwenlm.github.io/blog/qwen3-coder/), [GitHub](https://github.com/QwenLM/Qwen3-Coder), and [Documentation](https://qwen.readthedocs.io/en/latest/).
175
+
176
+
177
+ ## Quickstart
178
+
179
+ We advise you to use the latest version of `transformers`.
180
+
181
+ With `transformers<4.51.0`, you will encounter the following error:
182
+ ```
183
+ KeyError: 'qwen3_moe'
184
+ ```
185
+
186
+ The following contains a code snippet illustrating how to use the model generate content based on given inputs.
187
+ ```python
188
+ from transformers import AutoModelForCausalLM, AutoTokenizer
189
+
190
+ model_name = "Qwen/Qwen3-Coder-30B-A3B-Instruct"
191
+
192
+ # load the tokenizer and the model
193
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
194
+ model = AutoModelForCausalLM.from_pretrained(
195
+ model_name,
196
+ torch_dtype="auto",
197
+ device_map="auto"
198
+ )
199
+
200
+ # prepare the model input
201
+ prompt = "Write a quick sort algorithm."
202
+ messages = [
203
+ {"role": "user", "content": prompt}
204
+ ]
205
+ text = tokenizer.apply_chat_template(
206
+ messages,
207
+ tokenize=False,
208
+ add_generation_prompt=True,
209
+ )
210
+ model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
211
+
212
+ # conduct text completion
213
+ generated_ids = model.generate(
214
+ **model_inputs,
215
+ max_new_tokens=65536
216
+ )
217
+ output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist()
218
+
219
+ content = tokenizer.decode(output_ids, skip_special_tokens=True)
220
+
221
+ print("content:", content)
222
+ ```
223
+
224
+ **Note: If you encounter out-of-memory (OOM) issues, consider reducing the context length to a shorter value, such as `32,768`.**
225
+
226
+ For local use, applications such as Ollama, LMStudio, MLX-LM, llama.cpp, and KTransformers have also supported Qwen3.
227
+
228
+ ## Agentic Coding
229
+
230
+ Qwen3-Coder excels in tool calling capabilities.
231
+
232
+ You can simply define or use any tools as following example.
233
+ ```python
234
+ # Your tool implementation
235
+ def square_the_number(num: float) -> dict:
236
+ return num ** 2
237
+
238
+ # Define Tools
239
+ tools=[
240
+ {
241
+ "type":"function",
242
+ "function":{
243
+ "name": "square_the_number",
244
+ "description": "output the square of the number.",
245
+ "parameters": {
246
+ "type": "object",
247
+ "required": ["input_num"],
248
+ "properties": {
249
+ 'input_num': {
250
+ 'type': 'number',
251
+ 'description': 'input_num is a number that will be squared'
252
+ }
253
+ },
254
+ }
255
+ }
256
+ }
257
+ ]
258
+
259
+ import OpenAI
260
+ # Define LLM
261
+ client = OpenAI(
262
+ # Use a custom endpoint compatible with OpenAI API
263
+ base_url='http://localhost:8000/v1', # api_base
264
+ api_key="EMPTY"
265
+ )
266
+
267
+ messages = [{'role': 'user', 'content': 'square the number 1024'}]
268
+
269
+ completion = client.chat.completions.create(
270
+ messages=messages,
271
+ model="Qwen3-Coder-30B-A3B-Instruct",
272
+ max_tokens=65536,
273
+ tools=tools,
274
+ )
275
+
276
+ print(completion.choice[0])
277
+ ```
278
+
279
+ ## Best Practices
280
+
281
+ To achieve optimal performance, we recommend the following settings:
282
+
283
+ 1. **Sampling Parameters**:
284
+ - We suggest using `temperature=0.7`, `top_p=0.8`, `top_k=20`, `repetition_penalty=1.05`.
285
+
286
+ 2. **Adequate Output Length**: We recommend using an output length of 65,536 tokens for most queries, which is adequate for instruct models.
287
+
288
+ ---
289
+
290
+ <H2>Help, Adjustments, Samplers, Parameters and More</H2>
291
+
292
+ ---
293
+
294
+ <B>CHANGE THE NUMBER OF ACTIVE EXPERTS:</B>
295
+
296
+ See this document:
297
+
298
+ https://huggingface.co/DavidAU/How-To-Set-and-Manage-MOE-Mix-of-Experts-Model-Activation-of-Experts
299
+
300
+ <B>Settings: CHAT / ROLEPLAY and/or SMOOTHER operation of this model:</B>
301
+
302
+ In "KoboldCpp" or "oobabooga/text-generation-webui" or "Silly Tavern" ;
303
+
304
+ Set the "Smoothing_factor" to 1.5
305
+
306
+ : in KoboldCpp -> Settings->Samplers->Advanced-> "Smooth_F"
307
+
308
+ : in text-generation-webui -> parameters -> lower right.
309
+
310
+ : In Silly Tavern this is called: "Smoothing"
311
+
312
+
313
+ NOTE: For "text-generation-webui"
314
+
315
+ -> if using GGUFs you need to use "llama_HF" (which involves downloading some config files from the SOURCE version of this model)
316
+
317
+ Source versions (and config files) of my models are here:
318
+
319
+ https://huggingface.co/collections/DavidAU/d-au-source-files-for-gguf-exl2-awq-gptq-hqq-etc-etc-66b55cb8ba25f914cbf210be
320
+
321
+ OTHER OPTIONS:
322
+
323
+ - Increase rep pen to 1.1 to 1.15 (you don't need to do this if you use "smoothing_factor")
324
+
325
+ - If the interface/program you are using to run AI MODELS supports "Quadratic Sampling" ("smoothing") just make the adjustment as noted.
326
+
327
+ <B>Highest Quality Settings / Optimal Operation Guide / Parameters and Samplers</B>
328
+
329
+ This a "Class 1" model:
330
+
331
+ For all settings used for this model (including specifics for its "class"), including example generation(s) and for advanced settings guide (which many times addresses any model issue(s)), including methods to improve model performance for all use case(s) as well as chat, roleplay and other use case(s) please see:
332
+
333
+ [ https://huggingface.co/DavidAU/Maximizing-Model-Performance-All-Quants-Types-And-Full-Precision-by-Samplers_Parameters ]
334
+
335
+ You can see all parameters used for generation, in addition to advanced parameters and samplers to get the most out of this model here:
336
+
337
+ [ https://huggingface.co/DavidAU/Maximizing-Model-Performance-All-Quants-Types-And-Full-Precision-by-Samplers_Parameters ]
338
+
339
+ ---
340
+
341
+ <H2>What is Brainstorm?</H2>
342
+
343
+ ---
344
+
345
+ <B>Brainstorm 40x</B>
346
+
347
+ The BRAINSTORM process was developed by David_AU.
348
+
349
+ Some of the core principals behind this process are discussed in this <a href="https://arxiv.org/pdf/2401.02415">
350
+ scientific paper : Progressive LLaMA with Block Expansion </a>.
351
+
352
+ However I went in a completely different direction from what was outlined in this paper.
353
+
354
+ What is "Brainstorm" ?
355
+
356
+ The reasoning center of an LLM is taken apart, reassembled, and expanded.
357
+
358
+ In this case for this model: 40 times
359
+
360
+ Then these centers are individually calibrated. These "centers" also interact with each other.
361
+ This introduces subtle changes into the reasoning process.
362
+ The calibrations further adjust - dial up or down - these "changes" further.
363
+ The number of centers (5x,10x etc) allow more "tuning points" to further customize how the model reasons so to speak.
364
+
365
+ The core aim of this process is to increase the model's detail, concept and connection to the "world",
366
+ general concept connections, prose quality and prose length without affecting instruction following.
367
+
368
+ This will also enhance any creative use case(s) of any kind, including "brainstorming", creative art form(s) and like case uses.
369
+
370
+ Here are some of the enhancements this process brings to the model's performance:
371
+
372
+ - Prose generation seems more focused on the moment to moment.
373
+ - Sometimes there will be "preamble" and/or foreshadowing present.
374
+ - Fewer or no "cliches"
375
+ - Better overall prose and/or more complex / nuanced prose.
376
+ - A greater sense of nuance on all levels.
377
+ - Coherence is stronger.
378
+ - Description is more detailed, and connected closer to the content.
379
+ - Simile and Metaphors are stronger and better connected to the prose, story, and character.
380
+ - Sense of "there" / in the moment is enhanced.
381
+ - Details are more vivid, and there are more of them.
382
+ - Prose generation length can be long to extreme.
383
+ - Emotional engagement is stronger.
384
+ - The model will take FEWER liberties vs a normal model: It will follow directives more closely but will "guess" less.
385
+ - The MORE instructions and/or details you provide the more strongly the model will respond.
386
+ - Depending on the model "voice" may be more "human" vs original model's "voice".
387
+
388
+ Other "lab" observations:
389
+
390
+ - This process does not, in my opinion, make the model 5x or 10x "smarter" - if only that was true!
391
+ - However, a change in "IQ" was not an issue / a priority, and was not tested or calibrated for so to speak.
392
+ - From lab testing it seems to ponder, and consider more carefully roughly speaking.
393
+ - You could say this process sharpens the model's focus on it's task(s) at a deeper level.
394
+
395
+ The process to modify the model occurs at the root level - source files level. The model can quanted as a GGUF, EXL2, AWQ etc etc.
396
+
397
+ ---
config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3MoeForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "decoder_sparse_step": 1,
8
+ "eos_token_id": 151645,
9
+ "head_dim": 128,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 2048,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 5472,
14
+ "max_position_embeddings": 262144,
15
+ "max_window_layers": 28,
16
+ "mlp_only_layers": [],
17
+ "model_type": "qwen3_moe",
18
+ "moe_intermediate_size": 768,
19
+ "norm_topk_prob": true,
20
+ "num_attention_heads": 32,
21
+ "num_experts": 128,
22
+ "num_experts_per_tok": 10,
23
+ "num_hidden_layers": 84,
24
+ "num_key_value_heads": 4,
25
+ "output_router_logits": false,
26
+ "qkv_bias": false,
27
+ "rms_norm_eps": 1e-06,
28
+ "rope_scaling": null,
29
+ "rope_theta": 10000000,
30
+ "router_aux_loss_coef": 0.0,
31
+ "shared_expert_intermediate_size": 0,
32
+ "sliding_window": null,
33
+ "tie_word_embeddings": false,
34
+ "torch_dtype": "float16",
35
+ "transformers_version": "4.52.0.dev0",
36
+ "use_cache": true,
37
+ "use_qk_norm": true,
38
+ "use_sliding_window": false,
39
+ "vocab_size": 151936
40
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model-00001-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ca45186c3f6f7c513328e7b63cc9a5a357d87cb8811322b162e50f28726817f
3
+ size 4999261784
model-00002-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8b92607cdd1b899aa803a8e01c4a333be2f5e67ca41a45df361c2517e59d8ae
3
+ size 4997741616
model-00003-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b758f0f23c256c3d9af018a65bc17588e06a4a30dfef56d70688d5d231669786
3
+ size 4997741624
model-00004-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0aa5c7da60ef5a31b270a7d6b1ef2d63c800728fe6c3a7112da2853d4c6cf70d
3
+ size 4997741232
model-00005-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a90910202e5adff3ac3c4aa195a98b0852bf9da2b29958c6cf3a9b117086931
3
+ size 4997741624
model-00006-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6224e4b611b0320f2cf6407b0046d19faa7a6e550dd4d6e883344b390acbf05f
3
+ size 4997741600
model-00007-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ab731b19536658632834393bbdab3a5ec98a8c341ec86a53432a24cacbe7fa9
3
+ size 4997741256
model-00008-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be4b5a461e1b5ef95ed764556376b03b189a93a5d77ee29eddfa3f422ad95cb6
3
+ size 4997741624
model-00009-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28e3ecb4f9696ef9d13f0e16869a84176492b3545b5affe02bb1bdb8911a0195
3
+ size 4997741232
model-00010-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:179ac1ebc3e501d520af16f464078f3169facf532858efd03a827f0080492a34
3
+ size 4997741624
model-00011-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bbc45a013c9a7fa256181a4273777a60c1faa072730ee898690e862a1a6ed29
3
+ size 4997360344
model-00012-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:baa2f7a8c32590fcadeba62970471b25c5459af3c4b8d53f3f19c221f9dc92f7
3
+ size 4998758600
model-00013-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:239c9197c5ad4a508288ad0f031f332f1abb3a6d72bfa9d7bc8a66cdb6496d1d
3
+ size 4998758600
model-00014-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:431214aed1baf94b8c9c4bf4d6045eaf22bb282437802f1e4e44f4c3db1495fb
3
+ size 4998757000
model-00015-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e31fe6712912bc65b461cef7b5b4bd8c7ffbac7b7ab0af7f7f5f006410790539
3
+ size 4998756992
model-00016-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:831e3d2a93a92dc4ef381942ef82248a260db9dae045b965b0abdd7b570b8987
3
+ size 4998756904
model-00017-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:474c14f78a64c5ec4d1900b4da3d868c3bd7659b4b93db9f781e76cae7e98b06
3
+ size 4998756968
model-00018-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8aaa73af37127f17fedac8b1d48f0332f8a8fc7da92dd413cca2205a40ba7cf
3
+ size 4998756984
model-00019-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f87e4e94f4e9605b00b9357aae7568aa6bd52aa89341038d2244e2e8f5c2ef75
3
+ size 4998756904
model-00020-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f9cc6e41bd94aa373233eaadc580e9511a206a9c9199223335f1cac3eca4a09
3
+ size 4999434464
model-00021-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30fd6f3615f63881f3918c35d4113dc9777b185b6bb5b696e0d69963f7c6292e
3
+ size 4997740056
model-00022-of-00022.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e7dfc5ca285ab69a6328bf5ba93a6a091c7e1bd441db11a749bd7a4cd009cb4
3
+ size 969453768
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
qwen3-total-recall.gif ADDED

Git LFS Details

  • SHA256: 5feb3fffa02be4cf97a94cf965963f37347d0a36c2b65a7b6b9008bb85627ff1
  • Pointer size: 132 Bytes
  • Size of remote file: 1.64 MB
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "151643": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "151644": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151645": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "151646": {
29
+ "content": "<|object_ref_start|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "151647": {
37
+ "content": "<|object_ref_end|>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "151648": {
45
+ "content": "<|box_start|>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "151649": {
53
+ "content": "<|box_end|>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "151650": {
61
+ "content": "<|quad_start|>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "151651": {
69
+ "content": "<|quad_end|>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "151652": {
77
+ "content": "<|vision_start|>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "151653": {
85
+ "content": "<|vision_end|>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "151654": {
93
+ "content": "<|vision_pad|>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "151655": {
101
+ "content": "<|image_pad|>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "151656": {
109
+ "content": "<|video_pad|>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ },
116
+ "151657": {
117
+ "content": "<tool_call>",
118
+ "lstrip": false,
119
+ "normalized": false,
120
+ "rstrip": false,
121
+ "single_word": false,
122
+ "special": false
123
+ },
124
+ "151658": {
125
+ "content": "</tool_call>",
126
+ "lstrip": false,
127
+ "normalized": false,
128
+ "rstrip": false,
129
+ "single_word": false,
130
+ "special": false
131
+ },
132
+ "151659": {
133
+ "content": "<|fim_prefix|>",
134
+ "lstrip": false,
135
+ "normalized": false,
136
+ "rstrip": false,
137
+ "single_word": false,
138
+ "special": false
139
+ },
140
+ "151660": {
141
+ "content": "<|fim_middle|>",
142
+ "lstrip": false,
143
+ "normalized": false,
144
+ "rstrip": false,
145
+ "single_word": false,
146
+ "special": false
147
+ },
148
+ "151661": {
149
+ "content": "<|fim_suffix|>",
150
+ "lstrip": false,
151
+ "normalized": false,
152
+ "rstrip": false,
153
+ "single_word": false,
154
+ "special": false
155
+ },
156
+ "151662": {
157
+ "content": "<|fim_pad|>",
158
+ "lstrip": false,
159
+ "normalized": false,
160
+ "rstrip": false,
161
+ "single_word": false,
162
+ "special": false
163
+ },
164
+ "151663": {
165
+ "content": "<|repo_name|>",
166
+ "lstrip": false,
167
+ "normalized": false,
168
+ "rstrip": false,
169
+ "single_word": false,
170
+ "special": false
171
+ },
172
+ "151664": {
173
+ "content": "<|file_sep|>",
174
+ "lstrip": false,
175
+ "normalized": false,
176
+ "rstrip": false,
177
+ "single_word": false,
178
+ "special": false
179
+ },
180
+ "151665": {
181
+ "content": "<tool_response>",
182
+ "lstrip": false,
183
+ "normalized": false,
184
+ "rstrip": false,
185
+ "single_word": false,
186
+ "special": false
187
+ },
188
+ "151666": {
189
+ "content": "</tool_response>",
190
+ "lstrip": false,
191
+ "normalized": false,
192
+ "rstrip": false,
193
+ "single_word": false,
194
+ "special": false
195
+ },
196
+ "151667": {
197
+ "content": "<think>",
198
+ "lstrip": false,
199
+ "normalized": false,
200
+ "rstrip": false,
201
+ "single_word": false,
202
+ "special": false
203
+ },
204
+ "151668": {
205
+ "content": "</think>",
206
+ "lstrip": false,
207
+ "normalized": false,
208
+ "rstrip": false,
209
+ "single_word": false,
210
+ "special": false
211
+ }
212
+ },
213
+ "additional_special_tokens": [
214
+ "<|im_start|>",
215
+ "<|im_end|>",
216
+ "<|object_ref_start|>",
217
+ "<|object_ref_end|>",
218
+ "<|box_start|>",
219
+ "<|box_end|>",
220
+ "<|quad_start|>",
221
+ "<|quad_end|>",
222
+ "<|vision_start|>",
223
+ "<|vision_end|>",
224
+ "<|vision_pad|>",
225
+ "<|image_pad|>",
226
+ "<|video_pad|>"
227
+ ],
228
+ "bos_token": null,
229
+ "chat_template": "{% macro render_item_list(item_list, tag_name='required') %}\n {%- if item_list is defined and item_list is iterable and item_list | length > 0 %}\n {%- if tag_name %}{{- '\\n<' ~ tag_name ~ '>' -}}{% endif %}\n {{- '[' }}\n {%- for item in item_list -%}\n {%- if loop.index > 1 %}{{- \", \"}}{% endif -%}\n {%- if item is string -%}\n {{ \"`\" ~ item ~ \"`\" }}\n {%- else -%}\n {{ item }}\n {%- endif -%}\n {%- endfor -%}\n {{- ']' }}\n {%- if tag_name %}{{- '</' ~ tag_name ~ '>' -}}{% endif %}\n {%- endif %}\n{% endmacro %}\n\n{%- if messages[0][\"role\"] == \"system\" %}\n {%- set system_message = messages[0][\"content\"] %}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {%- set loop_messages = messages %}\n{%- endif %}\n\n{%- if not tools is defined %}\n {%- set tools = [] %}\n{%- endif %}\n\n{%- if system_message is defined %}\n {{- \"<|im_start|>system\\n\" + system_message }}\n{%- else %}\n {%- if tools is iterable and tools | length > 0 %}\n {{- \"<|im_start|>system\\nYou are Qwen, a helpful AI assistant that can interact with a computer to solve tasks.\" }}\n {%- endif %}\n{%- endif %}\n{%- if tools is iterable and tools | length > 0 %}\n {{- \"\\n\\nYou have access to the following functions:\\n\\n\" }}\n {{- \"<tools>\" }}\n {%- for tool in tools %}\n {%- if tool.function is defined %}\n {%- set tool = tool.function %}\n {%- endif %}\n {{- \"\\n<function>\\n<name>\" ~ tool.name ~ \"</name>\" }}\n {{- '\\n<description>' ~ (tool.description | trim) ~ '</description>' }}\n {{- '\\n<parameters>' }}\n {%- for param_name, param_fields in tool.parameters.properties|items %}\n {{- '\\n<parameter>' }}\n {{- '\\n<name>' ~ param_name ~ '</name>' }}\n {%- if param_fields.type is defined %}\n {{- '\\n<type>' ~ (param_fields.type | string) ~ '</type>' }}\n {%- endif %}\n {%- if param_fields.description is defined %}\n {{- '\\n<description>' ~ (param_fields.description | trim) ~ '</description>' }}\n {%- endif %}\n {{- render_item_list(param_fields.enum, 'enum') }}\n {%- set handled_keys = ['type', 'description', 'enum', 'required'] %}\n {%- for json_key in param_fields.keys() | reject(\"in\", handled_keys) %}\n {%- set normed_json_key = json_key | replace(\"-\", \"_\") | replace(\" \", \"_\") | replace(\"$\", \"\") %}\n {%- if param_fields[json_key] is mapping %}\n {{- '\\n<' ~ normed_json_key ~ '>' ~ (param_fields[json_key] | tojson | safe) ~ '</' ~ normed_json_key ~ '>' }}\n {%- else %}\n {{-'\\n<' ~ normed_json_key ~ '>' ~ (param_fields[json_key] | string) ~ '</' ~ normed_json_key ~ '>' }}\n {%- endif %}\n {%- endfor %}\n {{- render_item_list(param_fields.required, 'required') }}\n {{- '\\n</parameter>' }}\n {%- endfor %}\n {{- render_item_list(tool.parameters.required, 'required') }}\n {{- '\\n</parameters>' }}\n {%- if tool.return is defined %}\n {%- if tool.return is mapping %}\n {{- '\\n<return>' ~ (tool.return | tojson | safe) ~ '</return>' }}\n {%- else %}\n {{- '\\n<return>' ~ (tool.return | string) ~ '</return>' }}\n {%- endif %}\n {%- endif %}\n {{- '\\n</function>' }}\n {%- endfor %}\n {{- \"\\n</tools>\" }}\n {{- '\\n\\nIf you choose to call a function ONLY reply in the following format with NO suffix:\\n\\n<tool_call>\\n<function=example_function_name>\\n<parameter=example_parameter_1>\\nvalue_1\\n</parameter>\\n<parameter=example_parameter_2>\\nThis is the value for the second parameter\\nthat can span\\nmultiple lines\\n</parameter>\\n</function>\\n</tool_call>\\n\\n<IMPORTANT>\\nReminder:\\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\\n- Required parameters MUST be specified\\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\\n</IMPORTANT>' }}\n{%- endif %}\n{%- if system_message is defined %}\n {{- '<|im_end|>\\n' }}\n{%- else %}\n {%- if tools is iterable and tools | length > 0 %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in loop_messages %}\n {%- if message.role == \"assistant\" and message.tool_calls is defined and message.tool_calls is iterable and message.tool_calls | length > 0 %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content is defined and message.content is string and message.content | trim | length > 0 %}\n {{- '\\n' + message.content | trim + '\\n' }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- if tool_call.arguments is defined %}\n {%- for args_name, args_value in tool_call.arguments|items %}\n {{- '<parameter=' + args_name + '>\\n' }}\n {%- set args_value = args_value if args_value is string else args_value | string %}\n {{- args_value }}\n {{- '\\n</parameter>\\n' }}\n {%- endfor %}\n {%- endif %}\n {{- '</function>\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"user\" or message.role == \"system\" or message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.previtem and loop.previtem.role != \"tool\" %}\n {{- '<|im_start|>user\\n' }}\n {%- endif %}\n {{- '<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>\\n' }}\n {%- if not loop.last and loop.nextitem.role != \"tool\" %}\n {{- '<|im_end|>\\n' }}\n {%- elif loop.last %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
230
+ "clean_up_tokenization_spaces": false,
231
+ "eos_token": "<|im_end|>",
232
+ "errors": "replace",
233
+ "model_max_length": 1048576,
234
+ "pad_token": "<|endoftext|>",
235
+ "split_special_tokens": false,
236
+ "tokenizer_class": "Qwen2Tokenizer",
237
+ "unk_token": null,
238
+ "add_bos_token": false
239
+ }