Skip to content

Commit

Permalink
pass context length to ollama to avoid context truncation (#1106)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmalleman authored Feb 11, 2025
1 parent bf41953 commit 3f8eab2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions srv/adapter/payloads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ function getBasePayload(opts: AdapterProps, stops: string[] = []) {
mirostat: gen.mirostatToggle && gen.mirostatTau ? 2 : 0,
mirostat_tau: gen.mirostatTau,
mirostat_eta: gen.mirostatLR,
num_ctx: gen.maxContextLength,
stop: getStoppingStrings(opts, stops),

// ignore_eos: false,
Expand Down

0 comments on commit 3f8eab2

Please sign in to comment.