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
chenpangpang
open-webui
Commits
8fcb5cee
Commit
8fcb5cee
authored
Aug 02, 2024
by
Timothy J. Baek
Browse files
enh: min_p
parent
13b757d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
backend/apps/ollama/main.py
backend/apps/ollama/main.py
+6
-0
No files found.
backend/apps/ollama/main.py
View file @
8fcb5cee
...
@@ -857,6 +857,12 @@ async def generate_chat_completion(
...
@@ -857,6 +857,12 @@ async def generate_chat_completion(
):
):
payload
[
"options"
][
"top_p"
]
=
model_info
.
params
.
get
(
"top_p"
,
None
)
payload
[
"options"
][
"top_p"
]
=
model_info
.
params
.
get
(
"top_p"
,
None
)
if
(
model_info
.
params
.
get
(
"min_p"
,
None
)
and
payload
[
"options"
].
get
(
"min_p"
)
is
None
):
payload
[
"options"
][
"min_p"
]
=
model_info
.
params
.
get
(
"min_p"
,
None
)
if
(
if
(
model_info
.
params
.
get
(
"use_mmap"
,
None
)
model_info
.
params
.
get
(
"use_mmap"
,
None
)
and
payload
[
"options"
].
get
(
"use_mmap"
)
is
None
and
payload
[
"options"
].
get
(
"use_mmap"
)
is
None
...
...
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