Model Configurations
Model configurations define the specific models you use for synthetic data generation and their associated inference parameters. Each ModelConfig represents a named model that can be referenced throughout your data generation workflows.
Overview
A ModelConfig specifies which LLM model to use and how it should behave during generation. When you create column configurations (like LLMText, LLMCode, or LLMStructured), you reference a model by its alias. Data Designer uses the model configuration to determine which model to call and with what parameters.
When a column includes multi_modal_context, the ModelConfig alias must point to a model that supports the media types you send. Data Designer can serialize image, audio, and video context blocks, but model capability is still provider-specific. Local audio/video paths require explicit URL mode (data_type=url) and require the model endpoint to have filesystem access to the same paths, typically a colocated vLLM server configured for local media access.
ModelConfig Structure
The ModelConfig class has the following fields:
Examples
Basic Model Configuration
Multiple Model Configurations for Different Tasks
Experiment with max_tokens for Task-Specific Model Configurations
The number of tokens required to generate a single data entry can vary significantly with use case. For example, reasoning models often need more tokens to “think through” problems before generating a response. Note that max_tokens specifies the maximum number of output tokens to generate in the response, so set this value based on the expected length of the generated content.
Skipping Health Checks
By default, Data Designer runs a health check for each model before starting data generation to ensure the model is accessible and configured correctly. You can skip this health check for specific models by setting skip_health_check=True:
When to Skip Health Checks Skipping health checks can be useful when:
- You’ve already verified the model is accessible and want to speed up initialization
- You’re using a model that doesn’t support the standard health check format
- You want to defer model validation until the model is actually used
Note that skipping health checks means errors will only be discovered during actual data generation.
See Also
- Inference Parameters: Detailed guide to inference parameters and how to configure them
- Model Providers: Learn about configuring model providers
- Default Model Settings: Pre-configured model settings included with Data Designer
- Custom Model Settings: Learn how to create custom providers and model configurations
- Configure Model Settings With the CLI: Use the CLI to manage model settings
- Architecture & Performance: Understanding separation of concerns and optimizing concurrency