Overview
What is BuiltinTrainer
The Kubeflow SDK train()
API supports two types of trainers: BuiltinTrainer()
and CustomTrainer()
.
These options allow you to specify how you want to configure the TrainJob:
CustomTrainer: Use this when you need full control over the training process. It requires you to define a self-contained Python function that includes the entire model training process.
BuiltinTrainer: Designed for configuration-driven TrainJobs using a predefined training script, often tailored for tasks like LLMs fine-tuning. The training script contains entire post-training logic for LLMs fine-tuning, and it allows you to adjust the configurations for dataset, LoRA parameters, learning rates, etc. The
BuiltinTrainer
is ideal for fast iteration without modifying the training loop.
Currently, Kubeflow SDK supports these configs for BuiltinTrainer
:
- TorchTuneConfig: Configuration to fine-tune LLMs with TorchTune.
Next Steps
Feedback
Was this page helpful?
Thank you for your feedback!
We're sorry this page wasn't helpful. If you have a moment, please share your feedback so we can improve.