Skip to content
Repo

OnlineRollout

from modal_dojo import OnlineRollout

Placeholder rows that size a live generate batch.

OnlineRollout(n_rows: int) -> None
apply_chat_template() -> bool

Whether to apply the model’s chat template to the input.

cache_key() -> str | None
input_key() -> str

Prompt column name.

label_key() -> str

Ground-truth column name, or None when rows carry no label.

output_format() -> str

The on-disk format written by write(), either parquet or jsonl.

rows() -> Iterable[DatasetRow]

Load raw examples.

Returns

An iterable collection of raw examples.

validate_written(path: str) -> None

Validate the materialized file format and required columns.

write(path: str) -> None

Materialize training data at path.