Skip to content

Commit

Permalink
chore: set seed default to -1
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ghorbani committed Feb 11, 2025
1 parent 302e3a3 commit d2bc172
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export const defaultCompletionParams: CompletionParams = {
mirostat: 0, //Enable Mirostat sampling, controlling perplexity during text generation. Default: `0`, where `0` is disabled, `1` is Mirostat, and `2` is Mirostat 2.0.
mirostat_tau: 5, // Set the Mirostat target entropy, parameter tau. Default: `5.0`
mirostat_eta: 0.1, // Set the Mirostat learning rate, parameter eta. Default: `0.1`
seed: 0,
seed: -1,
n_probs: 0, // If greater than 0, the response also contains the probabilities of top N tokens for each generated token given the sampling settings.
stop: ['</s>'],
// emit_partial_completion: true, // This is not used in the current version of llama.rn
Expand Down
2 changes: 1 addition & 1 deletion src/utils/modelSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const COMPLETION_PARAMS_METADATA: Partial<
seed: {
validation: {
type: 'numeric',
min: 0,
min: -1,
max: Number.MAX_SAFE_INTEGER,
required: true,
},
Expand Down

0 comments on commit d2bc172

Please sign in to comment.