[Inquiry]: Question about controlling reasoning effort for MiniMax-M2 in local SGLang deployment
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 25/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 領域
- ai
調査の方向性
The issue names the sglang.launch_server command and the OpenAI compatible /v1/chat/completions endpoint, but no repository files or tests. Start by checking the project’s usage guidance for local inference and reasoning controls. Done means providing a supported configuration or clarifying whether a reasoning budget can be set for MiniMax-M2 locally.
索引モデルが issue の本文から書いたものです。
説明
Basic Information - Models Used
MiniMax-M2
Description
I am running your MiniMax-M2 model locally using SGLang. I am very impressed with the capabilities of M2 on OpenRouter (especially with reasoning enabled), but I am struggling to reproduce similar behavior and control over the reasoning process in my local deployment.
Setup
- Model: MiniMaxAI/MiniMax-M2 (open weights)
- Inference stack: SGLang (launched via
sglang.launch_server) - Endpoint: OpenAI-compatible
/v1/chat/completions - Typical launch command (simplified):
python -m sglang.launch_server \
--model-path MiniMaxAI/MiniMax-M2 \
--host 0.0.0.0 \
--port 8010 \
--tp-size 4 \
--reasoning-parser minimax-append-think \
--mem-fraction-static 0.85
Problem
For my use case, I often send long texts (up to ~5,000 tokens) for analysis and transformation. When I do this:
-
On OpenRouter, with
reasoning.effortset to high, the model typically produces a reasonable amount of<think>...</think>content (roughly ~1,000 tokens of reasoning) and then a high-quality final answer. The behavior is stable and predictable. -
On my local SGLang deployment, with a similar prompt and
max_tokensset to a large value, the model often:- generates extremely long
<think>blocks, - consumes almost all available
max_tokenson thinking, - times out or ends with a truncated answer (sometimes only partial thoughts and no final response),
- and overall provides worse final quality than what I see via OpenRouter.
- generates extremely long
I have tried:
- Reducing
max_tokens(e.g. to 512/1024), - Adding system prompts such as:
"You are MiniMax-M2 running in LOW reasoning mode. Use only brief internal <think> blocks and then output a concise final answer."
However, the model seems to ignore these instructions in practice: it still spends most of the budget on <think>, and the generation often ends before the final answer.
My questions
-
Is there a supported way to control reasoning effort / thinking budget for MiniMax-M2 in a local deployment, similar to
reasoning.effort(“low/medium/high/minimal/none”) that OpenRouter exposes? -
Does MiniMax-M2 (open weights) support any parameters like:
reasoning_effort, orreasoning: { "effort": "low|medium|high" },
when used via an OpenAI-compatible/v1/chat/completionsAPI (SGLang / vLLM), or are such controls implemented only in your internal inference stack?
-
Is there an official recommendation for:
- limiting the number of tokens that can be used for
<think>...</think>, or - enabling a “non-thinking” or “short-thinking” mode for tasks where long reasoning is unnecessary (for example, analysis of a 5000-token article and returning a structured JSON summary)?
- limiting the number of tokens that can be used for
-
Do you have an example configuration (launch parameters + request payload) for:
- “MiniMax-M2 with controlled reasoning budget”,
ideally with something equivalent to “low/medium/high” effort that you internally use?
- “MiniMax-M2 with controlled reasoning budget”,
-
Are there any upcoming plans to expose an official way to control the reasoning budget (maximum thinking tokens, toggle for long thinking, etc.) for local deployments of MiniMax-M2, so that its behavior can be made closer to what users see on OpenRouter?
For my workload, the inability to reliably cap the reasoning length makes it very difficult to use M2 on long inputs: the model can “think forever”, hit timeouts, and still not produce a final answer. Any guidance, recommended parameters, or reference code from your side would be extremely helpful.
If needed, I can provide a small reproducible script (Python + example prompt) that demonstrates the difference in behavior between OpenRouter and my local SGLang setup.
- 主要言語
- 言語のデータがありません
- スター
- 2.6k
- フォーク
- 216
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MiniMax-AI/MiniMax-M2 のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 1/100
MiniMax-AI/MiniMax-M2#133 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 1/100
MiniMax-AI/MiniMax-M2#132 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 1/100
MiniMax-AI/MiniMax-M2#130 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 1/100
MiniMax-AI/MiniMax-M2#129 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
MiniMax-AI/MiniMax-M2#126 ·
MiniMax-AI/MiniMax-M2 の issue をすべて見る
似ている issue
-
check: T2 good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
srpadmanabhuni/agentest#566 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
SAP/ai-skills-library#137 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
Sagargupta16/awesome-mcp-servers#683 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
apache/flink-agents#1500 ·
メンテナーはふだん 1 日以内に返信
-
status:needs-review
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
Gentleman-Programming/engram#2515 ·
メンテナーはふだん 1 日以内に返信