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.
This commit is contained in:
Daniel Han 2026-03-17 01:32:18 -07:00 committed by GitHub
commit b437c9a36d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}
/>
<ParamSlider
label="Top K"
value={params.topK}
min={-1}
min={0}
max={100}
step={1}
onChange={set("topK")}
displayValue={params.topK === 0 ? "Off" : undefined}
/>
<ParamSlider
label="Min P"