Document supported models (#127)

This commit is contained in:
Woosuk Kwon
2023-06-02 22:35:17 -07:00
committed by GitHub
parent 0eda2e0953
commit 62ec38ea41
5 changed files with 58 additions and 3 deletions

View File

@@ -39,11 +39,13 @@ class LLM:
def generate(
self,
prompts: List[str],
prompts: Union[str, List[str]],
sampling_params: Optional[SamplingParams] = None,
prompt_token_ids: Optional[List[List[int]]] = None,
use_tqdm: bool = True,
) -> List[RequestOutput]:
if isinstance(prompts, str):
prompts = [prompts]
if sampling_params is None:
# Use default sampling params.
sampling_params = SamplingParams()