"vscode:/vscode.git/clone" did not exist on "a4bb2c5b04bd7e72a106c5f373f11255e891964f"
Unverified Commit 6774bd50 authored by mezuzza's avatar mezuzza Committed by GitHub
Browse files

Fix typing in AsyncLLMEngine & add toml to requirements-dev (#2100)

parent 31c1f325
# formatting
yapf==0.32.0
toml==0.10.2
ruff==0.1.5
# type checking
......
......@@ -2,7 +2,7 @@ import asyncio
import time
from functools import partial
from typing import (Any, Dict, Iterable, List, Optional, Set, Tuple, Type,
Union)
Union, AsyncIterator)
from vllm.config import ModelConfig
from vllm.engine.arg_utils import AsyncEngineArgs
......@@ -405,7 +405,8 @@ class AsyncLLMEngine:
prompt: Optional[str],
sampling_params: SamplingParams,
request_id: str,
prompt_token_ids: Optional[List[int]] = None) -> RequestOutput:
prompt_token_ids: Optional[List[int]] = None
) -> AsyncIterator[RequestOutput]:
"""Generate outputs for a request.
Generate outputs for a request. This method is a coroutine. It adds the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment