Leon4gr45 commited on
Commit
1c24286
·
verified ·
1 Parent(s): dfdf6b0

Thinking fixes: strip client max_tokens (enforce n-predict 2048), deepseek reasoning-format

Browse files
Files changed (1) hide show
  1. config.yaml +8 -1
config.yaml CHANGED
@@ -21,11 +21,18 @@ macros:
21
 
22
  models:
23
  lfm-thinking:
 
 
 
 
24
  cmd: >
25
  ${common}
26
  --model /models/LFM2.5-1.2B-Thinking-Q8_0.gguf
27
- --reasoning-format auto
 
28
  --alias lfm-thinking
 
 
29
  aliases:
30
  - thinking
31
  - decision
 
21
 
22
  models:
23
  lfm-thinking:
24
+ # A thinking model dies inside <think> on small budgets (measured: 512 was
25
+ # exhausted mid-reasoning on trivial prompts). Strip the client's max_tokens
26
+ # and enforce a 2048 default server-side; deepseek reasoning-format moves
27
+ # <think> text into reasoning_content so content carries only the answer.
28
  cmd: >
29
  ${common}
30
  --model /models/LFM2.5-1.2B-Thinking-Q8_0.gguf
31
+ --reasoning-format deepseek
32
+ --n-predict 2048
33
  --alias lfm-thinking
34
+ filters:
35
+ strip_params: "max_tokens, max_completion_tokens"
36
  aliases:
37
  - thinking
38
  - decision