Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
69909126
"vllm/vscode:/vscode.git/clone" did not exist on "661a34fd4fdd700a29b2db758e23e4e243e7ff18"
Unverified
Commit
69909126
authored
May 01, 2024
by
sasha0552
Committed by
GitHub
May 01, 2024
Browse files
[Bugfix] Use random seed if seed is -1 (#4531)
parent
e491c7e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vllm/sampling_params.py
vllm/sampling_params.py
+4
-1
No files found.
vllm/sampling_params.py
View file @
69909126
...
...
@@ -139,7 +139,10 @@ class SamplingParams:
self
.
top_p
=
top_p
self
.
top_k
=
top_k
self
.
min_p
=
min_p
self
.
seed
=
seed
if
seed
==
-
1
:
self
.
seed
=
None
else
:
self
.
seed
=
seed
self
.
use_beam_search
=
use_beam_search
self
.
length_penalty
=
length_penalty
self
.
early_stopping
=
early_stopping
...
...
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