Hyperparameter Tuning with Katib on Kubernetes
Expert · 60 minutes · 5 tasks, checked automatically · 100 points
In this expert-level MLOps lab you will deploy Kubeflow Katib — the Kubernetes-native automated machine learning (AutoML) hyperparameter tuning system — onto a local kind cluster and run a real hyperparameter search experiment. You will install Katib using its official manifests, validate all control-plane components, create a Katib Experiment that tunes learning rate, number of layers and optimizer for a small stand-in training script (it reports a synthetic accuracy computed from the hyperparameters, so each trial takes seconds instead of training a real model), monitor the trial lifecycle, and extract the optimal hyperparameter set from the experiment results. By the end you will have hands-on experience with the full Katib workflow: CRD installation, Experiment authoring, Trial scheduling, and result analysis.
What you’ll learn
- Install Katib CRDs and the Katib control-plane (controller, db-manager, ui) from the official upstream manifests
- Author and submit a Katib Experiment manifest that performs a grid/random search over learning-rate and batch-size hyperparameters using a containerised training job
- Monitor Trial execution and retrieve the optimal hyperparameter configuration reported by the Experiment
How this lab works
- Start the lab: One click starts a real Kubernetes cluster on your computer (kind), with kubectl ready in a toolbox terminal.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads your live cluster and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Cluster: A real Kubernetes cluster on your computer (kind)
- Kubernetes: 1.34.8
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- A kind cluster created in the Kubernetes Playground
Topics: katib, kubeflow, hyperparameter-tuning, automl, mlops, kubernetes, kind, crd, experiment, trial
Create a free account to start this lab.
Keep going
- Autoscale LLM Inference from a Queue with KEDA
- Distributed PyTorch Training with the Training Operator (PyTorchJob)
- Distributed TensorFlow with TFJob on Kubernetes
- All-Reduce Training with MPIJob
- Fine-Tune a Small Language Model as a Job (LoRA, CPU)
- Share GPUs with Time-Slicing via the NVIDIA GPU Operator