mirror of
https://github.com/NVIDIA-NeMo/DataDesigner
synced 2026-05-24 09:48:29 +00:00
Preserves tree from previous docs-website head: 5e47d33ea8. This branch is a CI-managed publish artifact like gh-pages; source provenance is tracked in commit messages rather than Git ancestry.
823 B
823 B
Run Config
RunConfig controls dataset generation behavior, including early shutdown thresholds,
batch sizing, non-inference worker concurrency, and the Jinja rendering engine used by
the runtime.
JinjaRenderingEngine.SECURE is the default. Set JinjaRenderingEngine.NATIVE
when you want Jinja2's broader built-in sandbox behavior instead of Data Designer's
hardened renderer.
For guidance on when to use each mode, see Security.
Usage
import data_designer.config as dd
from data_designer.interface import DataDesigner
data_designer = DataDesigner()
data_designer.set_run_config(dd.RunConfig(
buffer_size=500,
max_conversation_restarts=3,
jinja_rendering_engine=dd.JinjaRenderingEngine.NATIVE,
))
API Reference
::: data_designer.config.run_config