Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
d4ebdadb
Commit
d4ebdadb
authored
Dec 27, 2023
by
Jeffrey Morgan
Browse files
enable `cache_prompt` by default
parent
c5f21f73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
api/types.go
api/types.go
+0
-1
llm/ext_server.go
llm/ext_server.go
+2
-2
No files found.
api/types.go
View file @
d4ebdadb
...
...
@@ -103,7 +103,6 @@ type Options struct {
MirostatEta
float32
`json:"mirostat_eta,omitempty"`
PenalizeNewline
bool
`json:"penalize_newline,omitempty"`
Stop
[]
string
`json:"stop,omitempty"`
Cache
bool
`json:"cache,omitempty"`
}
// Runner options which must be set when the model is loaded into memory
...
...
llm/ext_server.go
View file @
d4ebdadb
...
...
@@ -234,8 +234,8 @@ func predict(llm extServer, opts api.Options, ctx context.Context, predict Predi
"penalize_nl"
:
opts
.
PenalizeNewline
,
"seed"
:
opts
.
Seed
,
"stop"
:
opts
.
Stop
,
"image_data"
:
imageData
,
"cache_prompt"
:
opts
.
Cach
e
,
"image_data"
:
imageData
,
"cache_prompt"
:
tru
e
,
}
if
predict
.
Format
==
"json"
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment