DavidAU commited on
Commit
c76422e
·
verified ·
1 Parent(s): 29f3a4a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +489 -3
README.md CHANGED
@@ -47,8 +47,494 @@ pipeline_tag: text-generation
47
 
48
  <h2>Qwen3-17B-QiMing-V1.0-Total-Recall-Light</h2>
49
 
50
- QiMing-v1.0-14B with Brainstorm 5x (by DavidAU) applied.
 
51
 
52
- Part of project to benchmark Brainstorm versions.
53
 
54
- [ more to come ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
 
48
  <h2>Qwen3-17B-QiMing-V1.0-Total-Recall-Light</h2>
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 GENERAL USAGE.
54
 
55
+ This model is based on "aifeifei798/QiMing-v1.0-14B" (base of Qwen3 14B instruct), with Brainstorm 5X (by DavidAU) - details at bottom of this page.
56
+
57
+ The Brainstorm adapter will improve general performance and "out of the box" thinking.
58
+
59
+ This version has the NATIVE context of 40k (default, can be changed via rope) context.
60
+
61
+ This is a reasoning/thinking block model.
62
+
63
+ I have included an optional system prompt to invoke "thinking" in this model, if you want to activate it.
64
+
65
+ Recommended settings - general:
66
+ - 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)
67
+ - Temp .3 to .6 (+- .2)
68
+ - Topk of 20, 40 or 100
69
+ - Topp of .95 / min p of .05
70
+ - Suggest min context window 4k to 8k.
71
+ - System prompt (optional) to focus the model better.
72
+
73
+ For additional settings, tool use, and other model settings.
74
+
75
+ Summary of root model below, followed by FULL HELP SECTION, then info on Brainstorm 40x.
76
+
77
+ OPTIONAL SYSTEM PROMPT - INVOKE "Thinking":
78
+
79
+ ```
80
+ 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.
81
+ ```
82
+
83
+ 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.
84
+
85
+ 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.
86
+
87
+ If you change "ponder" to a different word/phrase this will affect model "thinking" too.
88
+
89
+ ---
90
+
91
+ QUANTS
92
+
93
+ ---
94
+
95
+ GGUF? GGUF Imatrix? Other?
96
+
97
+ Special thanks to Team Mradermacher, Team Nightmedia and other quanters!
98
+
99
+ See under "model tree", upper right and click on "quantizations".
100
+
101
+ New quants will automatically appear.
102
+
103
+ ---
104
+
105
+ # Qwen3-14B
106
+
107
+ ## Qwen3 Highlights
108
+
109
+ Qwen3 is the latest generation of large language models in Qwen series, offering a comprehensive suite of dense and mixture-of-experts (MoE) models. Built upon extensive training, Qwen3 delivers groundbreaking advancements in reasoning, instruction-following, agent capabilities, and multilingual support, with the following key features:
110
+
111
+ - **Uniquely support of seamless switching between thinking mode** (for complex logical reasoning, math, and coding) and **non-thinking mode** (for efficient, general-purpose dialogue) **within single model**, ensuring optimal performance across various scenarios.
112
+ - **Significantly enhancement in its reasoning capabilities**, surpassing previous QwQ (in thinking mode) and Qwen2.5 instruct models (in non-thinking mode) on mathematics, code generation, and commonsense logical reasoning.
113
+ - **Superior human preference alignment**, excelling in creative writing, role-playing, multi-turn dialogues, and instruction following, to deliver a more natural, engaging, and immersive conversational experience.
114
+ - **Expertise in agent capabilities**, enabling precise integration with external tools in both thinking and unthinking modes and achieving leading performance among open-source models in complex agent-based tasks.
115
+ - **Support of 100+ languages and dialects** with strong capabilities for **multilingual instruction following** and **translation**.
116
+
117
+ ## Model Overview
118
+
119
+ **Qwen3-14B** has the following features:
120
+ - Type: Causal Language Models
121
+ - Training Stage: Pretraining & Post-training
122
+ - Number of Parameters: 14.8B
123
+ - Number of Paramaters (Non-Embedding): 13.2B
124
+ - Number of Layers: 40
125
+ - Number of Attention Heads (GQA): 40 for Q and 8 for KV
126
+ - Context Length: 32,768 natively and [131,072 tokens with YaRN](#processing-long-texts).
127
+
128
+ For more details, including benchmark evaluation, hardware requirements, and inference performance, please refer to our [blog](https://qwenlm.github.io/blog/qwen3/), [GitHub](https://github.com/QwenLM/Qwen3), and [Documentation](https://qwen.readthedocs.io/en/latest/).
129
+
130
+ ## Quickstart
131
+
132
+ The code of Qwen3 has been in the latest Hugging Face `transformers` and we advise you to use the latest version of `transformers`.
133
+
134
+ With `transformers<4.51.0`, you will encounter the following error:
135
+ ```
136
+ KeyError: 'qwen3'
137
+ ```
138
+
139
+ The following contains a code snippet illustrating how to use the model generate content based on given inputs.
140
+ ```python
141
+ from transformers import AutoModelForCausalLM, AutoTokenizer
142
+
143
+ model_name = "Qwen/Qwen3-14B"
144
+
145
+ # load the tokenizer and the model
146
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
147
+ model = AutoModelForCausalLM.from_pretrained(
148
+ model_name,
149
+ torch_dtype="auto",
150
+ device_map="auto"
151
+ )
152
+
153
+ # prepare the model input
154
+ prompt = "Give me a short introduction to large language model."
155
+ messages = [
156
+ {"role": "user", "content": prompt}
157
+ ]
158
+ text = tokenizer.apply_chat_template(
159
+ messages,
160
+ tokenize=False,
161
+ add_generation_prompt=True,
162
+ enable_thinking=True # Switches between thinking and non-thinking modes. Default is True.
163
+ )
164
+ model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
165
+
166
+ # conduct text completion
167
+ generated_ids = model.generate(
168
+ **model_inputs,
169
+ max_new_tokens=32768
170
+ )
171
+ output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist()
172
+
173
+ # parsing thinking content
174
+ try:
175
+ # rindex finding 151668 (</think>)
176
+ index = len(output_ids) - output_ids[::-1].index(151668)
177
+ except ValueError:
178
+ index = 0
179
+
180
+ thinking_content = tokenizer.decode(output_ids[:index], skip_special_tokens=True).strip("\n")
181
+ content = tokenizer.decode(output_ids[index:], skip_special_tokens=True).strip("\n")
182
+
183
+ print("thinking content:", thinking_content)
184
+ print("content:", content)
185
+ ```
186
+
187
+ For deployment, you can use `sglang>=0.4.6.post1` or `vllm>=0.8.5` or to create an OpenAI-compatible API endpoint:
188
+ - SGLang:
189
+ ```shell
190
+ python -m sglang.launch_server --model-path Qwen/Qwen3-14B --reasoning-parser qwen3
191
+ ```
192
+ - vLLM:
193
+ ```shell
194
+ vllm serve Qwen/Qwen3-14B --enable-reasoning --reasoning-parser deepseek_r1
195
+ ```
196
+
197
+ For local use, applications such as Ollama, LMStudio, MLX-LM, llama.cpp, and KTransformers have also supported Qwen3.
198
+
199
+ ## Switching Between Thinking and Non-Thinking Mode
200
+
201
+ > [!TIP]
202
+ > The `enable_thinking` switch is also available in APIs created by SGLang and vLLM.
203
+ > Please refer to our documentation for [SGLang](https://qwen.readthedocs.io/en/latest/deployment/sglang.html#thinking-non-thinking-modes) and [vLLM](https://qwen.readthedocs.io/en/latest/deployment/vllm.html#thinking-non-thinking-modes) users.
204
+
205
+ ### `enable_thinking=True`
206
+
207
+ By default, Qwen3 has thinking capabilities enabled, similar to QwQ-32B. This means the model will use its reasoning abilities to enhance the quality of generated responses. For example, when explicitly setting `enable_thinking=True` or leaving it as the default value in `tokenizer.apply_chat_template`, the model will engage its thinking mode.
208
+
209
+ ```python
210
+ text = tokenizer.apply_chat_template(
211
+ messages,
212
+ tokenize=False,
213
+ add_generation_prompt=True,
214
+ enable_thinking=True # True is the default value for enable_thinking
215
+ )
216
+ ```
217
+
218
+ In this mode, the model will generate think content wrapped in a `<think>...</think>` block, followed by the final response.
219
+
220
+ > [!NOTE]
221
+ > For thinking mode, use `Temperature=0.6`, `TopP=0.95`, `TopK=20`, and `MinP=0` (the default setting in `generation_config.json`). **DO NOT use greedy decoding**, as it can lead to performance degradation and endless repetitions. For more detailed guidance, please refer to the [Best Practices](#best-practices) section.
222
+
223
+
224
+ ### `enable_thinking=False`
225
+
226
+ We provide a hard switch to strictly disable the model's thinking behavior, aligning its functionality with the previous Qwen2.5-Instruct models. This mode is particularly useful in scenarios where disabling thinking is essential for enhancing efficiency.
227
+
228
+ ```python
229
+ text = tokenizer.apply_chat_template(
230
+ messages,
231
+ tokenize=False,
232
+ add_generation_prompt=True,
233
+ enable_thinking=False # Setting enable_thinking=False disables thinking mode
234
+ )
235
+ ```
236
+
237
+ In this mode, the model will not generate any think content and will not include a `<think>...</think>` block.
238
+
239
+ > [!NOTE]
240
+ > For non-thinking mode, we suggest using `Temperature=0.7`, `TopP=0.8`, `TopK=20`, and `MinP=0`. For more detailed guidance, please refer to the [Best Practices](#best-practices) section.
241
+
242
+ ### Advanced Usage: Switching Between Thinking and Non-Thinking Modes via User Input
243
+
244
+ We provide a soft switch mechanism that allows users to dynamically control the model's behavior when `enable_thinking=True`. Specifically, you can add `/think` and `/no_think` to user prompts or system messages to switch the model's thinking mode from turn to turn. The model will follow the most recent instruction in multi-turn conversations.
245
+
246
+ Here is an example of a multi-turn conversation:
247
+
248
+ ```python
249
+ from transformers import AutoModelForCausalLM, AutoTokenizer
250
+
251
+ class QwenChatbot:
252
+ def __init__(self, model_name="Qwen/Qwen3-14B"):
253
+ self.tokenizer = AutoTokenizer.from_pretrained(model_name)
254
+ self.model = AutoModelForCausalLM.from_pretrained(model_name)
255
+ self.history = []
256
+
257
+ def generate_response(self, user_input):
258
+ messages = self.history + [{"role": "user", "content": user_input}]
259
+
260
+ text = self.tokenizer.apply_chat_template(
261
+ messages,
262
+ tokenize=False,
263
+ add_generation_prompt=True
264
+ )
265
+
266
+ inputs = self.tokenizer(text, return_tensors="pt")
267
+ response_ids = self.model.generate(**inputs, max_new_tokens=32768)[0][len(inputs.input_ids[0]):].tolist()
268
+ response = self.tokenizer.decode(response_ids, skip_special_tokens=True)
269
+
270
+ # Update history
271
+ self.history.append({"role": "user", "content": user_input})
272
+ self.history.append({"role": "assistant", "content": response})
273
+
274
+ return response
275
+
276
+ # Example Usage
277
+ if __name__ == "__main__":
278
+ chatbot = QwenChatbot()
279
+
280
+ # First input (without /think or /no_think tags, thinking mode is enabled by default)
281
+ user_input_1 = "How many r's in strawberries?"
282
+ print(f"User: {user_input_1}")
283
+ response_1 = chatbot.generate_response(user_input_1)
284
+ print(f"Bot: {response_1}")
285
+ print("----------------------")
286
+
287
+ # Second input with /no_think
288
+ user_input_2 = "Then, how many r's in blueberries? /no_think"
289
+ print(f"User: {user_input_2}")
290
+ response_2 = chatbot.generate_response(user_input_2)
291
+ print(f"Bot: {response_2}")
292
+ print("----------------------")
293
+
294
+ # Third input with /think
295
+ user_input_3 = "Really? /think"
296
+ print(f"User: {user_input_3}")
297
+ response_3 = chatbot.generate_response(user_input_3)
298
+ print(f"Bot: {response_3}")
299
+ ```
300
+
301
+ > [!NOTE]
302
+ > For API compatibility, when `enable_thinking=True`, regardless of whether the user uses `/think` or `/no_think`, the model will always output a block wrapped in `<think>...</think>`. However, the content inside this block may be empty if thinking is disabled.
303
+ > When `enable_thinking=False`, the soft switches are not valid. Regardless of any `/think` or `/no_think` tags input by the user, the model will not generate think content and will not include a `<think>...</think>` block.
304
+
305
+ ## Agentic Use
306
+
307
+ Qwen3 excels in tool calling capabilities. We recommend using [Qwen-Agent](https://github.com/QwenLM/Qwen-Agent) to make the best use of agentic ability of Qwen3. Qwen-Agent encapsulates tool-calling templates and tool-calling parsers internally, greatly reducing coding complexity.
308
+
309
+ To define the available tools, you can use the MCP configuration file, use the integrated tool of Qwen-Agent, or integrate other tools by yourself.
310
+ ```python
311
+ from qwen_agent.agents import Assistant
312
+
313
+ # Define LLM
314
+ llm_cfg = {
315
+ 'model': 'Qwen3-14B',
316
+
317
+ # Use the endpoint provided by Alibaba Model Studio:
318
+ # 'model_type': 'qwen_dashscope',
319
+ # 'api_key': os.getenv('DASHSCOPE_API_KEY'),
320
+
321
+ # Use a custom endpoint compatible with OpenAI API:
322
+ 'model_server': 'http://localhost:8000/v1', # api_base
323
+ 'api_key': 'EMPTY',
324
+
325
+ # Other parameters:
326
+ # 'generate_cfg': {
327
+ # # Add: When the response content is `<think>this is the thought</think>this is the answer;
328
+ # # Do not add: When the response has been separated by reasoning_content and content.
329
+ # 'thought_in_content': True,
330
+ # },
331
+ }
332
+
333
+ # Define Tools
334
+ tools = [
335
+ {'mcpServers': { # You can specify the MCP configuration file
336
+ 'time': {
337
+ 'command': 'uvx',
338
+ 'args': ['mcp-server-time', '--local-timezone=Asia/Shanghai']
339
+ },
340
+ "fetch": {
341
+ "command": "uvx",
342
+ "args": ["mcp-server-fetch"]
343
+ }
344
+ }
345
+ },
346
+ 'code_interpreter', # Built-in tools
347
+ ]
348
+
349
+ # Define Agent
350
+ bot = Assistant(llm=llm_cfg, function_list=tools)
351
+
352
+ # Streaming generation
353
+ messages = [{'role': 'user', 'content': 'https://qwenlm.github.io/blog/ Introduce the latest developments of Qwen'}]
354
+ for responses in bot.run(messages=messages):
355
+ pass
356
+ print(responses)
357
+ ```
358
+
359
+ ## Processing Long Texts
360
+
361
+ Qwen3 natively supports context lengths of up to 32,768 tokens. For conversations where the total length (including both input and output) significantly exceeds this limit, we recommend using RoPE scaling techniques to handle long texts effectively. We have validated the model's performance on context lengths of up to 131,072 tokens using the [YaRN](https://arxiv.org/abs/2309.00071) method.
362
+
363
+ YaRN is currently supported by several inference frameworks, e.g., `transformers` and `llama.cpp` for local use, `vllm` and `sglang` for deployment. In general, there are two approaches to enabling YaRN for supported frameworks:
364
+
365
+ - Modifying the model files:
366
+ In the `config.json` file, add the `rope_scaling` fields:
367
+ ```json
368
+ {
369
+ ...,
370
+ "rope_scaling": {
371
+ "rope_type": "yarn",
372
+ "factor": 4.0,
373
+ "original_max_position_embeddings": 32768
374
+ }
375
+ }
376
+ ```
377
+ For `llama.cpp`, you need to regenerate the GGUF file after the modification.
378
+
379
+ - Passing command line arguments:
380
+
381
+ For `vllm`, you can use
382
+ ```shell
383
+ vllm serve ... --rope-scaling '{"rope_type":"yarn","factor":4.0,"original_max_position_embeddings":32768}' --max-model-len 131072
384
+ ```
385
+
386
+ For `sglang`, you can use
387
+ ```shell
388
+ python -m sglang.launch_server ... --json-model-override-args '{"rope_scaling":{"rope_type":"yarn","factor":4.0,"original_max_position_embeddings":32768}}'
389
+ ```
390
+
391
+ For `llama-server` from `llama.cpp`, you can use
392
+ ```shell
393
+ llama-server ... --rope-scaling yarn --rope-scale 4 --yarn-orig-ctx 32768
394
+ ```
395
+
396
+ > [!IMPORTANT]
397
+ > If you encounter the following warning
398
+ > ```
399
+ > Unrecognized keys in `rope_scaling` for 'rope_type'='yarn': {'original_max_position_embeddings'}
400
+ > ```
401
+ > please upgrade `transformers>=4.51.0`.
402
+
403
+ > [!NOTE]
404
+ > All the notable open-source frameworks implement static YaRN, which means the scaling factor remains constant regardless of input length, **potentially impacting performance on shorter texts.**
405
+ > We advise adding the `rope_scaling` configuration only when processing long contexts is required.
406
+ > It is also recommended to modify the `factor` as needed. For example, if the typical context length for your application is 65,536 tokens, it would be better to set `factor` as 2.0.
407
+
408
+ > [!NOTE]
409
+ > The default `max_position_embeddings` in `config.json` is set to 40,960. This allocation includes reserving 32,768 tokens for outputs and 8,192 tokens for typical prompts, which is sufficient for most scenarios involving short text processing. If the average context length does not exceed 32,768 tokens, we do not recommend enabling YaRN in this scenario, as it may potentially degrade model performance.
410
+
411
+ > [!TIP]
412
+ > The endpoint provided by Alibaba Model Studio supports dynamic YaRN by default and no extra configuration is needed.
413
+
414
+ ## Best Practices
415
+
416
+ To achieve optimal performance, we recommend the following settings:
417
+
418
+ 1. **Sampling Parameters**:
419
+ - For thinking mode (`enable_thinking=True`), use `Temperature=0.6`, `TopP=0.95`, `TopK=20`, and `MinP=0`. **DO NOT use greedy decoding**, as it can lead to performance degradation and endless repetitions.
420
+ - For non-thinking mode (`enable_thinking=False`), we suggest using `Temperature=0.7`, `TopP=0.8`, `TopK=20`, and `MinP=0`.
421
+ - For supported frameworks, you can adjust the `presence_penalty` parameter between 0 and 2 to reduce endless repetitions. However, using a higher value may occasionally result in language mixing and a slight decrease in model performance.
422
+
423
+ 2. **Adequate Output Length**: We recommend using an output length of 32,768 tokens for most queries. For benchmarking on highly complex problems, such as those found in math and programming competitions, we suggest setting the max output length to 38,912 tokens. This provides the model with sufficient space to generate detailed and comprehensive responses, thereby enhancing its overall performance.
424
+
425
+ 3. **Standardize Output Format**: We recommend using prompts to standardize model outputs when benchmarking.
426
+ - **Math Problems**: Include "Please reason step by step, and put your final answer within \boxed{}." in the prompt.
427
+ - **Multiple-Choice Questions**: Add the following JSON structure to the prompt to standardize responses: "Please show your choice in the `answer` field with only the choice letter, e.g., `"answer": "C"`."
428
+
429
+ 4. **No Thinking Content in History**: In multi-turn conversations, the historical model output should only include the final output part and does not need to include the thinking content. It is implemented in the provided chat template in Jinja2. However, for frameworks that do not directly use the Jinja2 chat template, it is up to the developers to ensure that the best practice is followed.
430
+
431
+ ---
432
+
433
+ <H2>Help, Adjustments, Samplers, Parameters and More</H2>
434
+
435
+ ---
436
+
437
+ <B>CHANGE THE NUMBER OF ACTIVE EXPERTS:</B>
438
+
439
+ See this document:
440
+
441
+ https://huggingface.co/DavidAU/How-To-Set-and-Manage-MOE-Mix-of-Experts-Model-Activation-of-Experts
442
+
443
+ <B>Settings: CHAT / ROLEPLAY and/or SMOOTHER operation of this model:</B>
444
+
445
+ In "KoboldCpp" or "oobabooga/text-generation-webui" or "Silly Tavern" ;
446
+
447
+ Set the "Smoothing_factor" to 1.5
448
+
449
+ : in KoboldCpp -> Settings->Samplers->Advanced-> "Smooth_F"
450
+
451
+ : in text-generation-webui -> parameters -> lower right.
452
+
453
+ : In Silly Tavern this is called: "Smoothing"
454
+
455
+
456
+ NOTE: For "text-generation-webui"
457
+
458
+ -> if using GGUFs you need to use "llama_HF" (which involves downloading some config files from the SOURCE version of this model)
459
+
460
+ Source versions (and config files) of my models are here:
461
+
462
+ https://huggingface.co/collections/DavidAU/d-au-source-files-for-gguf-exl2-awq-gptq-hqq-etc-etc-66b55cb8ba25f914cbf210be
463
+
464
+ OTHER OPTIONS:
465
+
466
+ - Increase rep pen to 1.1 to 1.15 (you don't need to do this if you use "smoothing_factor")
467
+
468
+ - If the interface/program you are using to run AI MODELS supports "Quadratic Sampling" ("smoothing") just make the adjustment as noted.
469
+
470
+ <B>Highest Quality Settings / Optimal Operation Guide / Parameters and Samplers</B>
471
+
472
+ This a "Class 1" model:
473
+
474
+ 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:
475
+
476
+ [ https://huggingface.co/DavidAU/Maximizing-Model-Performance-All-Quants-Types-And-Full-Precision-by-Samplers_Parameters ]
477
+
478
+ You can see all parameters used for generation, in addition to advanced parameters and samplers to get the most out of this model here:
479
+
480
+ [ https://huggingface.co/DavidAU/Maximizing-Model-Performance-All-Quants-Types-And-Full-Precision-by-Samplers_Parameters ]
481
+
482
+ ---
483
+
484
+ <H2>What is Brainstorm?</H2>
485
+
486
+ ---
487
+
488
+ <B>Brainstorm 5x</B>
489
+
490
+ The BRAINSTORM process was developed by David_AU.
491
+
492
+ Some of the core principals behind this process are discussed in this <a href="https://arxiv.org/pdf/2401.02415">
493
+ scientific paper : Progressive LLaMA with Block Expansion </a>.
494
+
495
+ However I went in a completely different direction from what was outlined in this paper.
496
+
497
+ What is "Brainstorm" ?
498
+
499
+ The reasoning center of an LLM is taken apart, reassembled, and expanded.
500
+
501
+ In this case for this model: 5 times
502
+
503
+ Then these centers are individually calibrated. These "centers" also interact with each other.
504
+ This introduces subtle changes into the reasoning process.
505
+ The calibrations further adjust - dial up or down - these "changes" further.
506
+ The number of centers (5x,10x etc) allow more "tuning points" to further customize how the model reasons so to speak.
507
+
508
+ The core aim of this process is to increase the model's detail, concept and connection to the "world",
509
+ general concept connections, prose quality and prose length without affecting instruction following.
510
+
511
+ This will also enhance any creative use case(s) of any kind, including "brainstorming", creative art form(s) and like case uses.
512
+
513
+ Here are some of the enhancements this process brings to the model's performance:
514
+
515
+ - Prose generation seems more focused on the moment to moment.
516
+ - Sometimes there will be "preamble" and/or foreshadowing present.
517
+ - Fewer or no "cliches"
518
+ - Better overall prose and/or more complex / nuanced prose.
519
+ - A greater sense of nuance on all levels.
520
+ - Coherence is stronger.
521
+ - Description is more detailed, and connected closer to the content.
522
+ - Simile and Metaphors are stronger and better connected to the prose, story, and character.
523
+ - Sense of "there" / in the moment is enhanced.
524
+ - Details are more vivid, and there are more of them.
525
+ - Prose generation length can be long to extreme.
526
+ - Emotional engagement is stronger.
527
+ - The model will take FEWER liberties vs a normal model: It will follow directives more closely but will "guess" less.
528
+ - The MORE instructions and/or details you provide the more strongly the model will respond.
529
+ - Depending on the model "voice" may be more "human" vs original model's "voice".
530
+
531
+ Other "lab" observations:
532
+
533
+ - This process does not, in my opinion, make the model 5x or 10x "smarter" - if only that was true!
534
+ - However, a change in "IQ" was not an issue / a priority, and was not tested or calibrated for so to speak.
535
+ - From lab testing it seems to ponder, and consider more carefully roughly speaking.
536
+ - You could say this process sharpens the model's focus on it's task(s) at a deeper level.
537
+
538
+ 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.
539
+
540
+ ---