llama.cpp backend: allow `--reasoning on|off` in runtime flag allowlist

オープン 初心者向け
#1,064 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
90/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go
領域
backend

調査の方向性

既存の llama.cpp の推論関連フラグが定義されている pkg/inference/runtime_flags_allowlist.go から始めます。allowlist のエントリを、文書化されている llama-server --reasoning on|off|auto フラグと比較し、その後、docker model configure -- --reasoning off が以前の拒否なしに受け付けられることを確認します。

索引モデルが issue の本文から書いたものです。

説明

llama.cpp's llama-server (verified on build 9879 / 72874f559) exposes a first-class server flag:

--reasoning [on|off|auto]   Use reasoning/thinking in the chat (default: auto = detect from template)

docker model configure rejects it:

$ docker model configure <model> -- --reasoning off
runtime flag "--reasoning" is not allowed for backend "llama.cpp"

It's missing from pkg/inference/runtime_flags_allowlist.go (which already allows --reasoning-format, --reasoning-budget, --reasoning-preserve, --chat-template-kwargs).

Why it matters: for hybrid thinking models (Qwen 3.5/4B family), the current way to pin a model non-thinking at the server level is --chat-template-kwargs '{"enable_thinking": false}'. On current builds this logs a deprecation warning at every server start:

W Setting 'enable_thinking' via --chat-template-kwargs is deprecated. Use --reasoning on / --reasoning off instead.

The flag is a simple enum, touches no files or external resources, and fits the existing allowlist security model (cf. #1032 for the reasoning-preserve flags).

Related: #1028 (request-body reasoning_effort: none), #1032 (reasoning-preserve flags).

主要言語
Go
スター
651
フォーク
155
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

docker/model-runner のほかの issue

docker/model-runner の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。