コンテンツにスキップ

Trainer

Trainer provides a complete training and evaluation loop for supported VoiceHub speech models. You need a compatible model, a dataset, and the model-owned objective declared by its training profile to get started.

Underneath, Trainer handles batching, gradient accumulation, evaluation, checkpointing, exact resume state, and portable model export. Configure the run with TrainingArguments to choose batch size, training duration, device and precision strategy, logging, evaluation, and checkpoint cadence.

Speech architectures do not share one safe fallback loss. VoiceHub therefore validates the selected model, checkpoint, dataset fields, trainable components, and recipe before it loads a training runtime. An inference-only or unsupported path fails closed instead of reporting a plausible but invalid training run.

Next steps