[CI/Build] Fix Args for _get_logits_warper in Sampler Test (#5922)
This commit is contained in:
parent
365791ff81
commit
736ed38849
@ -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] = []
|
||||
|
||||
Loading…
Reference in New Issue
Block a user