Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Woosuk Kwon <[email protected]>
  • Loading branch information
WoosukKwon committed Nov 20, 2024
1 parent f525281 commit 2613820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/offline_inference_tpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
]
answers = [
" or, through inaction, allow a human being to come to harm.",
" what is essential is invisible to the eye",
" what is essential is invisible to the eye.",
" but in rising every time we fall.",
]
N = 1
Expand All @@ -19,7 +19,7 @@

# Set `enforce_eager=True` to avoid ahead-of-time compilation.
# In real workloads, `enforace_eager` should be `False`.
llm = LLM(model="google/gemma-2b", enable_prefix_caching=True)
llm = LLM(model="google/gemma-2b", enforce_eager=True)
outputs = llm.generate(prompts, sampling_params)
for output, answer in zip(outputs, answers):
prompt = output.prompt
Expand Down

0 comments on commit 2613820

Please sign in to comment.