mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-03-27 09:41:25 +08:00
[CI/Build] Enable eager mode for Samplers-Test group
Signed-off-by: qli88 <qiang.li2@amd.com>
This commit is contained in:
parent
0075bfffd4
commit
eea8b6634c
@ -25,7 +25,7 @@ def test_ranks(
|
||||
flat_logprobs,
|
||||
example_prompts,
|
||||
):
|
||||
with vllm_runner(model, dtype=dtype, max_logprobs=MAX_LOGPROBS) as vllm_model:
|
||||
with vllm_runner(model, dtype=dtype, max_logprobs=MAX_LOGPROBS, enforce_eager=True) as vllm_model:
|
||||
tokenizer = vllm_model.llm.get_tokenizer()
|
||||
example_prompt_tokens = [tokenizer.encode(prompt) for prompt in example_prompts]
|
||||
sampling_params = SamplingParams(
|
||||
|
||||
@ -94,7 +94,7 @@ class TestTwoTokenBadWord:
|
||||
)[0]
|
||||
|
||||
def test_two_token_bad_word(self, vllm_runner):
|
||||
with vllm_runner(self.MODEL, dtype="half") as llm:
|
||||
with vllm_runner(self.MODEL, dtype="half", enforce_eager=True) as llm:
|
||||
output_token_ids = self._generate(llm)
|
||||
assert output_token_ids[:2] == [
|
||||
self.target_token_id1,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user