Using vLLM with Curator
Prerequisites
Offline Mode (Local)
1. Create Pydantic Models for Structured Output
from pydantic import BaseModel, Field
from typing import List
class Recipe(BaseModel):
title: str = Field(description="Title of the recipe")
ingredients: List[str] = Field(description="List of ingredients needed")
instructions: List[str] = Field(description="Step by step cooking instructions")
prep_time: int = Field(description="Preparation time in minutes")
cook_time: int = Field(description="Cooking time in minutes")
servings: int = Field(description="Number of servings")2. Create a Curator LLM Subclass
3. Initialize and Use the Generator
Online Mode (Server)
1. Start the VLLM Server
2. Configure the Generator
Example Output
VLLM Offline Configuration
Backend Parameters (for Offline Mode)
Last updated