generation_init
Signature
- Initializes inference backend and sampling parameters.
- Supports
vllm,openai,hfbackends. extra_paramscan be used to passchat_template_kwargsor other backend-specific parameters.
generate
Signature
- Plain text conversation generation.
- Automatically handles Prompt in list, supports string or OpenAI format dictionary.
multimodal_generate
Signature
- Text-image multimodal conversation generation.
multimodal_path: List of image paths corresponding to each Prompt (supports local path or URL).image_tag: If specified (e.g.,<img>), inserts image at that tag’s position in Prompt; otherwise defaults to appending to end of Prompt.
multiturn_generate
Signature
- Multi-turn conversation generation.
- Supports only single-call generation, does not handle batch Prompts.
vllm_shutdown
Signature
- Explicitly shuts down vLLM engine and releases VRAM resources.
- Valid only when using
vllmbackend.
Configuration
servers/generation/parameter.yaml
backend_configs Detailed Description:
sampling_params Detailed Description: