Views
No views yet
<think>...</think> blocks before the final answer.JetBrains/Mellum2-12B-A2.5B-Thinking<|im_end|> (token ID 28)config.json and generation_config.json identify token ID 0 as
the EOS token, while the tokenizer identifies <|im_end|> (ID 28) as EOS.
This conversion uses token ID 28 so MLX generation stops at the end of the
assistant turn.pip install -U mlx-lm1mlx_lm.chat \
2 --model mlx-community/Mellum2-12B-A2.5B-Thinking-bf16 \
3 --max-tokens 8192 \
4 --temp 0.6 \
5 --top-p 0.951mlx_lm.generate \
2 --model mlx-community/Mellum2-12B-A2.5B-Thinking-bf16 \
3 --prompt "Explain why 1024 is a power of two." \
4 --max-tokens 2048 \
5 --temp 0.6 \
6 --top-p 0.95| Prompt tokens | TTFT | Prefill | Generation | End-to-end | Peak memory |
|---|---|---|---|---|---|
| 4,096 | 812.3 ms | 5,042.4 tok/s | 93.8 tok/s | 11.7 s | 23.2 GB |
| 8,192 | 1,707.8 ms | 4,796.9 tok/s | 90.6 tok/s | 13.0 s | 23.4 GB |
| 16,384 | 4,286.3 ms | 3,822.4 tok/s | 79.6 tok/s | 17.2 s | 23.6 GB |
| 32,768 | 10,906.1 ms | 3,004.5 tok/s | 71.6 tok/s | 25.2 s | 23.9 GB |
| 65,536 | 26,813.7 ms | 2,444.1 tok/s | 58.0 tok/s | 44.5 s | 24.6 GB |
| 131,072 | 84,021.3 ms | 1,560.0 tok/s | 35.8 tok/s | 112.6 s | 26.0 GB |