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
736ed388
Unverified
Commit
736ed388
authored
Jun 27, 2024
by
Roger Wang
Committed by
GitHub
Jun 27, 2024
Browse files
[CI/Build] Fix Args for `_get_logits_warper` in Sampler Test (#5922)
parent
365791ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/samplers/test_sampler.py
tests/samplers/test_sampler.py
+1
-1
No files found.
tests/samplers/test_sampler.py
View file @
736ed388
...
@@ -587,7 +587,7 @@ def test_sampler_top_k_top_p(seed: int, device: str):
...
@@ -587,7 +587,7 @@ def test_sampler_top_k_top_p(seed: int, device: str):
generation_config
=
GenerationConfig
(
top_k
=
top_k
,
generation_config
=
GenerationConfig
(
top_k
=
top_k
,
top_p
=
top_p
,
top_p
=
top_p
,
do_sample
=
True
)
do_sample
=
True
)
warpers
=
generation_model
.
_get_logits_warper
(
generation_config
)
warpers
=
generation_model
.
_get_logits_warper
(
generation_config
,
device
)
assert
len
(
warpers
)
==
2
# top_p and top_k
assert
len
(
warpers
)
==
2
# top_p and top_k
seq_group_metadata_list
:
List
[
SequenceGroupMetadata
]
=
[]
seq_group_metadata_list
:
List
[
SequenceGroupMetadata
]
=
[]
...
...
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