From 13c370d76fbc6af3a29e86dc088d68074809dd3d Mon Sep 17 00:00:00 2001 From: Raghu Banda Date: Fri, 25 Sep 2026 12:06:52 -0400 Subject: [PATCH] fix: make --reasoning-parser conditional for non-thinking models MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Models without thinking mode (e.g., Qwen2.5-Coder-7B-Instruct, Llama-3) do not support a reasoning parser. The template emitted --reasoning-parser unconditionally, which caused vLLM to fail with an empty flag value when vllm.reasoningParser was set to an empty string. Wrap the flag in a Helm conditional so it is only emitted when vllm.reasoningParser has a non-empty value. This allows any model to be deployed by setting reasoningParser to empty in values, without requiring template edits. Tested: deployed Qwen2.5-Coder-7B-Instruct (no reasoning parser) on RHOAI 3.5 / OpenShift 4.20 with vLLM v0.19.0 — model starts and serves inference correctly. --- charts/pca-ai-serving/templates/llminferenceservice.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/pca-ai-serving/templates/llminferenceservice.yaml b/charts/pca-ai-serving/templates/llminferenceservice.yaml index 95fff27..a348244 100644 --- a/charts/pca-ai-serving/templates/llminferenceservice.yaml +++ b/charts/pca-ai-serving/templates/llminferenceservice.yaml @@ -60,7 +60,9 @@ spec: - --enable-prefix-caching - --enable-auto-tool-choice - --tool-call-parser={{ include "pca-ai-serving.vllm.toolCallParser" . }} + {{- if .Values.vllm.reasoningParser }} - --reasoning-parser={{ .Values.vllm.reasoningParser }} + {{- end }} {{- if .Values.vllm.kvCacheDtype }} - --kv-cache-dtype={{ .Values.vllm.kvCacheDtype }} {{- end }}