Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
fix benchmark issue - internal method changed
Browse files Browse the repository at this point in the history
  • Loading branch information
robertgshaw2-neuralmagic committed Jun 9, 2024
1 parent 611cfed commit 73132a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions neuralmagic/benchmarks/scripts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
import json
import random
from pathlib import Path
from typing import List, Tuple
from typing import List, Tuple, cast

from transformers import PreTrainedTokenizerBase

from vllm import LLM, SamplingParams
from vllm import __version__ as __vllm_version__
from vllm.inputs import PromptStrictInputs
from vllm.outputs import RequestOutput
from vllm.transformers_utils.tokenizer import get_tokenizer

Expand Down Expand Up @@ -139,8 +140,7 @@ def warmup_vllm_engine(engine: LLM,
max_tokens=output_len,
)
engine._add_request(
prompt=prompt,
prompt_token_ids=None,
inputs=cast(PromptStrictInputs, prompt),
params=sampling_params,
)

Expand Down

0 comments on commit 73132a5

Please sign in to comment.