Skip to content

Commit

Permalink
[Doc] Specify async engine args in docs (vllm-project#9726)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkLight1337 authored and Linkun Chen committed Nov 4, 2024
1 parent 33fdcae commit 7be802c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vllm/engine/async_llm_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,7 @@ async def generate(
>>> # the complete example.
>>>
>>> # initialize the engine and the example input
>>> # note that engine_args here is AsyncEngineArgs instance
>>> engine = AsyncLLMEngine.from_engine_args(engine_args)
>>> example_input = {
>>> "prompt": "What is LLM?",
Expand Down Expand Up @@ -1082,6 +1083,7 @@ async def encode(
>>> # the complete example.
>>>
>>> # initialize the engine and the example input
>>> # note that engine_args here is AsyncEngineArgs instance
>>> engine = AsyncLLMEngine.from_engine_args(engine_args)
>>> example_input = {
>>> "input": "What is LLM?",
Expand Down

0 comments on commit 7be802c

Please sign in to comment.