Skip to content

Commit

Permalink
Add default top_p value for Chat UI (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
petermuller authored Jun 14, 2024
1 parent 52fb8ae commit 18d4e4e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function ModelKwargsEditor({ setModelConfig, visible, setVisible
// Default stop sequences based on User/Assistant instruction prompting for Falcon, Mistral, etc.
const [maxNewTokens, setMaxNewTokens] = useState(null);
const [n, setN] = useState(null);
const [topP, setTopP] = useState(null);
const [topP, setTopP] = useState(0.01);
const [frequencyPenalty, setFrequencyPenalty] = useState(null);
const [presencePenalty, setPresencePenalty] = useState(null);
const [temperature, setTemperature] = useState(null);
Expand Down Expand Up @@ -127,7 +127,7 @@ export default function ModelKwargsEditor({ setModelConfig, visible, setVisible
<Input
value={topP?.toString()}
type="number"
step={0.1}
step={0.01}
inputMode="decimal"
disableBrowserAutocorrect={true}
onChange={(event) => {
Expand Down

0 comments on commit 18d4e4e

Please sign in to comment.