Skip to content
View as Markdown

tinker_cookbook.supervised.Config

Generated from tinker-cookbook at commit 8486b8d. Source links point at that snapshot.

class tinker_cookbook.supervised.Config()

Configuration for supervised fine-tuning.

This chz dataclass holds every knob for a supervised learning run: model selection, learning-rate schedule, checkpointing cadence, evaluation, and logging.

from tinker_cookbook import cli_utils
from tinker_cookbook.supervised import train
config = train.Config(
log_path=cli_utils.runs_path("sft-run"),
model_name="Qwen/Qwen3-8B",
dataset_builder=my_dataset_builder,
learning_rate=1e-4,
)
asyncio.run(train.main(config))

Fields: