<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/fine-tune-your-own-custom-llm-with-canonical-charmed-kubeflow-and-feast-rph6b35mi" -->

---
title: Fine tune your own custom LLM with Canonical Charmed...
description: A hands-on, end-to-end tutorial walks through fine-tuning a custom LLM using Canonical's Charmed Kubeflow and the Feast feature store. Steps include setting up...
canonical: https://daily.dev/posts/fine-tune-your-own-custom-llm-with-canonical-charmed-kubeflow-and-feast-rph6b35mi
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Fine tune your own custom LLM with Canonical Charmed Kubeflow and Feast | daily.dev
og:description: A hands-on, end-to-end tutorial walks through fine-tuning a custom LLM using Canonical's Charmed Kubeflow and the Feast feature store. Steps include setting up...
og:url: https://daily.dev/posts/fine-tune-your-own-custom-llm-with-canonical-charmed-kubeflow-and-feast-rph6b35mi
og:image: https://api.daily.dev/og/posts/Rph6B35Mi.png
og:image:alt: Fine tune your own custom LLM with Canonical Charmed Kubeflow and Feast
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Fine tune your own custom LLM with Canonical Charmed Kubeflow and Feast

**[Ubuntu](https://daily.dev/sources/ubuntu)** · 11 min read · 0 upvotes · 0 comments

## Summary

A hands-on, end-to-end tutorial walks through fine-tuning a custom LLM using Canonical's Charmed Kubeflow and the Feast feature store. Steps include setting up MicroK8s, Juju, and Terraform, deploying Kubeflow with Trainer v2, KServe, and Feast enabled, ingesting a Hugging Face dataset into PostgreSQL, registering features in Feast, running a LoRA fine-tuning job, and serving the resulting model via KServe with an OpenAI-compatible chat API. The guide fine-tunes GPT-2 on the nampdn-ai/tiny-webtext dataset and shows how swapping in a more capable base model like Qwen2.5-0.5B-Instruct improves output quality at the cost of longer training time.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://ubuntu.com/blog/fine-tune-your-own-custom-llm-with-canonical-charmed-kubeflow-and-feast>

## Questions this post answers

### How do I fine-tune a custom LLM using Kubeflow and Feast on Kubernetes?

Set up a MicroK8s cluster with Juju and Terraform, deploy Charmed Kubeflow with Feast, KServe, and Kubeflow Trainer v2 enabled, then ingest a Hugging Face dataset into PostgreSQL and register it as a Feast offline feature store. Run a training job that consumes the Feast features with Hugging Face LoRA fine-tuning, persist checkpoints to a PersistentVolume, then serve the model with KServe over an OpenAI-compatible chat API.

_daily.dev surfaces practical Kubeflow and Feast walkthroughs for engineers building their own fine-tuning pipelines._

### Why did my GPT-2 fine-tuned chatbot give repetitive nonsense answers?

GPT-2 is a very early model publicly released in 2019, so fine-tuning it on a small dataset like nampdn-ai/tiny-webtext tends to produce repetitive, low-quality responses such as looping the same sentence. Switching to a more capable base model, such as Qwen2.5-0.5B-Instruct, produces noticeably more coherent answers, though it takes much longer to fine-tune, potentially all day on hardware without GPUs.

_developers debugging weak fine-tuned model outputs can compare base model choices on daily.dev._

### What is Feast used for in a machine learning training pipeline?

Feast acts as a feature store that registers a dataset loaded into PostgreSQL as a reusable, offline feature store, letting a training script consume consistent features during fine-tuning. In this setup, a dataset is downloaded from Hugging Face, loaded into a Postgres offline_store database, registered via a features.py schema definition, and then read by the training job through Feast rather than accessed directly.

_daily.dev helps engineers evaluating feature stores like Feast for their ML pipelines stay informed._

## Similar posts on daily.dev

- [Fine-tune a RAG model with Feast and Kubeflow Trainer](https://daily.dev/posts/fine-tune-a-rag-model-with-feast-and-kubeflow-trainer-df2wziggv) · Red Hat Developer · 0 upvotes · 0 comments
- [How to Fine-Tune an LLM: An End-to-End Guide](https://daily.dev/posts/how-to-fine-tune-an-llm-an-end-to-end-guide-dgv3ruc1u) · Towards Data Science · 0 upvotes · 0 comments
- [How to Customize an LLM for AI Agents using SFT and QLoRA](https://daily.dev/posts/how-to-customize-an-llm-for-ai-agents-using-sft-and-qlora-jeancs7na) · freeCodeCamp · 0 upvotes · 0 comments
- [Using LangSmith to Support Fine-tuning](https://daily.dev/posts/using-langsmith-to-support-fine-tuning-gns73hvdu) · LangChain · 0 upvotes · 0 comments
- [Fine-Tune Local LLMs 2026](https://daily.dev/posts/fine-tune-local-llms-2026-kgpwp0kbx) · SitePoint · 1 upvotes · 0 comments

---

Tags: [#kubernetes](https://daily.dev/tags/kubernetes), [#machine-learning](https://daily.dev/tags/machine-learning), [#mlops](https://daily.dev/tags/mlops)

[View this post on daily.dev](https://daily.dev/posts/fine-tune-your-own-custom-llm-with-canonical-charmed-kubeflow-and-feast-rph6b35mi)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Fine tune your own custom LLM with Canonical Charmed Kubeflow and Feast","url":"https://daily.dev/posts/fine-tune-your-own-custom-llm-with-canonical-charmed-kubeflow-and-feast-rph6b35mi","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/fine-tune-your-own-custom-llm-with-canonical-charmed-kubeflow-and-feast-rph6b35mi"},"datePublished":"2026-09-24T13:34:36.457Z","dateModified":"2026-10-15T02:24:10.837Z","description":"A hands-on, end-to-end tutorial walks through fine-tuning a custom LLM using Canonical's Charmed Kubeflow and the Feast feature store. Steps include setting up...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/fdf08edf8a3b5023b7b9aef70b2826ef?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/fdf08edf8a3b5023b7b9aef70b2826ef?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Ubuntu","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Ubuntu","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/e9ae7e11e4574c27a37fcd23062e723e","url":"https://daily.dev/sources/ubuntu"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/fine-tune-your-own-custom-llm-with-canonical-charmed-kubeflow-and-feast-rph6b35mi","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"kubernetes,machine-learning,mlops","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Ubuntu","item":"https://daily.dev/sources/ubuntu"},{"@type":"ListItem","position":3,"name":"Fine tune your own custom LLM with Canonical Charmed Kubeflow and Feast"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/fine-tune-your-own-custom-llm-with-canonical-charmed-kubeflow-and-feast-rph6b35mi#faq","mainEntity":[{"@type":"Question","name":"How do I fine-tune a custom LLM using Kubeflow and Feast on Kubernetes?","acceptedAnswer":{"@type":"Answer","text":"Set up a MicroK8s cluster with Juju and Terraform, deploy Charmed Kubeflow with Feast, KServe, and Kubeflow Trainer v2 enabled, then ingest a Hugging Face dataset into PostgreSQL and register it as a Feast offline feature store. Run a training job that consumes the Feast features with Hugging Face LoRA fine-tuning, persist checkpoints to a PersistentVolume, then serve the model with KServe over an OpenAI-compatible chat API. daily.dev surfaces practical Kubeflow and Feast walkthroughs for engineers building their own fine-tuning pipelines."}},{"@type":"Question","name":"Why did my GPT-2 fine-tuned chatbot give repetitive nonsense answers?","acceptedAnswer":{"@type":"Answer","text":"GPT-2 is a very early model publicly released in 2019, so fine-tuning it on a small dataset like nampdn-ai/tiny-webtext tends to produce repetitive, low-quality responses such as looping the same sentence. Switching to a more capable base model, such as Qwen2.5-0.5B-Instruct, produces noticeably more coherent answers, though it takes much longer to fine-tune, potentially all day on hardware without GPUs. developers debugging weak fine-tuned model outputs can compare base model choices on daily.dev."}},{"@type":"Question","name":"What is Feast used for in a machine learning training pipeline?","acceptedAnswer":{"@type":"Answer","text":"Feast acts as a feature store that registers a dataset loaded into PostgreSQL as a reusable, offline feature store, letting a training script consume consistent features during fine-tuning. In this setup, a dataset is downloaded from Hugging Face, loaded into a Postgres offline_store database, registered via a features.py schema definition, and then read by the training job through Feast rather than accessed directly. daily.dev helps engineers evaluating feature stores like Feast for their ML pipelines stay informed."}}]}
```

