nemo_curator.models.vllm_model
Module Contents
Classes
Data
API
Bases: ModelInterface
Generic vLLM language model wrapper for text generation.
_final_max_model_len
_is_qwen3
_llm
_sampling_params
model_id_names
Return the model identifier.
Generate text from prompts.
Parameters:
prompts
List of prompt strings or list of message dicts (for chat template).
Returns: list[str]
List of generated text strings.
Raises:
RuntimeError: If the model is not set up or generation fails.
Get the tokenizer from the LLM instance.
Set up the vLLM model and sampling parameters.