Skip to content

Commit

Permalink
[CI/Build] Fix Args for _get_logits_warper in Sampler Test (vllm-pr…
Browse files Browse the repository at this point in the history
  • Loading branch information
ywang96 authored and jimpang committed Jul 8, 2024
1 parent aa21c3d commit 9723b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/samplers/test_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ def test_sampler_top_k_top_p(seed: int, device: str):
generation_config = GenerationConfig(top_k=top_k,
top_p=top_p,
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

seq_group_metadata_list: List[SequenceGroupMetadata] = []
Expand Down

0 comments on commit 9723b2d

Please sign in to comment.