From b437c9a36d81872a82d4e987eb50a8e40b6aeb26 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Tue, 17 Mar 2026 01:32:18 -0700 Subject: [PATCH] studio: update Creative/Precise presets, show "Off" for disabled samplers (#4350) Creative: temperature=1.5, min_p=0.1, top_p=Off (1.0), top_k=Off (0) Precise: temperature=0.1, top_p=0.95, top_k=80, min_p=0.01 Also show "Off" in the slider label for top_p=1.0, top_k=0, and repetition_penalty=1.0 since those values disable their respective samplers. Changed top_k slider min from -1 to 0. --- .../src/features/chat/chat-settings-sheet.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/studio/frontend/src/features/chat/chat-settings-sheet.tsx b/studio/frontend/src/features/chat/chat-settings-sheet.tsx index 508194c061..a7969b6c7b 100644 --- a/studio/frontend/src/features/chat/chat-settings-sheet.tsx +++ b/studio/frontend/src/features/chat/chat-settings-sheet.tsx @@ -44,9 +44,10 @@ const BUILTIN_PRESETS: Preset[] = [ name: "Creative", params: { ...defaultInferenceParams, - temperature: 1.2, - topP: 0.95, - topK: 80, + temperature: 1.5, + topP: 1.0, + topK: 0, + minP: 0.1, repetitionPenalty: 1.0, }, }, @@ -54,9 +55,10 @@ const BUILTIN_PRESETS: Preset[] = [ name: "Precise", params: { ...defaultInferenceParams, - temperature: 0.2, - topP: 0.7, - topK: 20, + temperature: 0.1, + topP: 0.95, + topK: 80, + minP: 0.01, repetitionPenalty: 1.0, }, }, @@ -307,14 +309,16 @@ export function ChatSettingsPanel({ max={1} step={0.05} onChange={set("topP")} + displayValue={params.topP === 1 ? "Off" : undefined} />