mratsim commited on
Commit
a3aac1b
·
verified ·
1 Parent(s): 2d8be0e

Add repetition_penalty and frequency_penalty suggestion

Browse files
Files changed (1) hide show
  1. README.md +7 -1
README.md CHANGED
@@ -141,11 +141,16 @@ You have 2 reasoning parsers;
141
 
142
  The reason why `minimax_m2_append_think` was introduced was Interleaved Thinking and having the model build upon it's previous thinking (usually frontends discard the thinking trace)
143
 
 
 
 
 
144
  ```bash
145
  # Model configuration (Mandatory)
146
  MODEL="mratsim/MiniMax-M2.1-FP8-INT4-AWQ"
147
  MODELNAME="MiniMax-M2.1-FP8"
148
  GPU_UTIL=0.93
 
149
 
150
  # Prevent memory fragmentation
151
  export PYTORCH_ALLOC_CONF=expandable_segments:True,max_split_size_mb:512
@@ -158,9 +163,10 @@ vllm serve "${MODEL}" \
158
  --trust-remote-code \
159
  --gpu-memory-utilization ${GPU_UTIL} \
160
  --tp 2 \
 
161
  --enable-auto-tool-choice \
162
  --tool-call-parser minimax_m2 \
163
- --reasoning-parser minimax_m2
164
  # --reasoning-parser minimax_m2_append_think
165
  ```
166
 
 
141
 
142
  The reason why `minimax_m2_append_think` was introduced was Interleaved Thinking and having the model build upon it's previous thinking (usually frontends discard the thinking trace)
143
 
144
+ > [!TIP]
145
+ > 💡With the recommended parameters the model tends to get stuck in repetition loops.\
146
+ > It seems like repetition_penalty: 1.10, frequency_penalty: 0.40 avoids that
147
+
148
  ```bash
149
  # Model configuration (Mandatory)
150
  MODEL="mratsim/MiniMax-M2.1-FP8-INT4-AWQ"
151
  MODELNAME="MiniMax-M2.1-FP8"
152
  GPU_UTIL=0.93
153
+ SAMPLER_OVERRIDE='{"temperature": 1, "top_p": 0.95, "top_k": 40, "repetition_penalty": 1.1, "frequency_penalty": 0.40}'
154
 
155
  # Prevent memory fragmentation
156
  export PYTORCH_ALLOC_CONF=expandable_segments:True,max_split_size_mb:512
 
163
  --trust-remote-code \
164
  --gpu-memory-utilization ${GPU_UTIL} \
165
  --tp 2 \
166
+ --override-generation-config "${SAMPLER_OVERRIDE}" \
167
  --enable-auto-tool-choice \
168
  --tool-call-parser minimax_m2 \
169
+ --reasoning-parser minimax_m2 \
170
  # --reasoning-parser minimax_m2_append_think
171
  ```
172