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:
parent
ee6f057cc2
commit
b437c9a36d
1 changed files with 11 additions and 7 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue