AI-generated editorial illustration; not a documentary photograph.
Canonical has published a technical guide for fine-tuning a language model on a Kubernetes cluster using Charmed Kubeflow, Feast and KServe. The walkthrough takes a dataset from Hugging Face through ingestion, feature registration, training and model serving, ending with an OpenAI-compatible chat endpoint.
What the workflow uses
The guide sets up a one-node MicroK8s cluster with Juju and Terraform, then deploys selected Kubeflow components. It enables Feast, Kubeflow Trainer v2 and KServe while leaving several other modules disabled, including Katib, MLflow, TensorBoard and observability. The accompanying project files are hosted in GitHub, and the dataset is loaded from the Hugging Face repository nampdn-ai/tiny-webtext.
Requirements and execution
Canonical’s example targets Ubuntu 24.04 LTS or later on a system with at least 32GB of RAM and 16 CPU cores, alongside a stable internet connection and familiarity with Linux and Kubernetes. The tutorial also requires a Hugging Face account. Users ingest the data into PostgreSQL, register it in Feast, package the training code into a Kubernetes ConfigMap and create a 20GB PersistentVolumeClaim for model checkpoints.
Training and serving
The sample job fine-tunes GPT-2 with Kubeflow Trainer v2 and stores its output on the persistent volume. KServe then exposes the resulting model through an internal REST endpoint. Canonical’s example produces repetitive answers, which the guide attributes in part to GPT-2’s age and limited capability, rather than presenting the output as a strong model result.
Material limitations
The process is resource-intensive and can take an hour or more depending on hardware. The guide says its author’s system, which had no GPUs, required all day to fine-tune Qwen/Qwen2.5-0.5B-Instruct using the same dataset. That model is offered as an alternative base model, but the source does not provide an independent quality evaluation or claim that the resulting chatbot is production-ready.
Source: Fine tune your own custom LLM with Canonical Charmed Kubeflow and Feast

Leave a Reply