# Fine-Tune the biggest open-source models (even with a bad PC)
<!--
ref: @content/youtube/david-ondrej/fine-tune-the-biggest-open-source-models-even-with-a-bad-pc
tags: [fine-tuning, open-source models, LoRA, Fireworks AI, Hugging Face, dataset preparation, AI agents]
version: 2
updated_at: 2026-11-24T07:16:54.280Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=kxstlfc8Lw4)**

# Fine-Tune the biggest open-source models (even with a bad PC)

*Synthesized from David Ondrej, 2026-07-07.*

David Ondrej presents this solo tutorial, which walks through LoRA fine-tuning of the open-weight Kimi K2.7 model on a hosted platform rather than local hardware.

## Core Thesis
David Ondrej argues that a very large open-weight model can be fine-tuned on your own or a public dataset for roughly tens of dollars, because LoRA trains a small adapter on top of frozen base weights instead of the full trillion-parameter model. He pairs this with agent-driven setup, where AI coding agents handle dataset download, format conversion and platform configuration, so the workflow needs no local GPU cluster.

## Key Insights
- **Hardware framing.** He says a home setup able to fine-tune a trillion-parameter model would cost over $100,000, and that a Blackwell B300 costs around $40,000 each, with at least eight needed in a server rack, so $300,000 to $350,000 up front. Renting a hosted fine-tune avoids that outlay.
- **Why LoRA.** Low-rank adaptation freezes the base weights and trains only a small adapter. He describes supervised fine-tuning as the easier of the two main types, versus reinforcement learning, which rewards the model for trying different outputs.
- **Dataset quality matters most.** He warns that many public Hugging Face datasets were generated by weaker models, so he prefers data from a stronger source, here a dataset derived from Fable 5 with 118 matching datasets on Hugging Face. The example set had 4,600 rows, and he cites at least 1,000 rows as the rough minimum for an effective LoRA run.
- **Agent-driven workflow.** One agent (Pi, Codex or Claude Code) downloads the dataset with the Hugging Face CLI, a second agent checks progress on the first, and a conversion skill rewrites the data into the supervised fine-tuning format. He recommends giving agents screenshots when setup goes wrong.
- **Token scope.** For the Hugging Face access token he says read access to public repositories is enough, and he suggests keeping tokens out of agent prompts where practical while noting that pasting them is the fastest route.
- **Platform steps.** On Fireworks AI: choose supervised fine-tuning, select the Kimi K2.7 model with its LoRA variant, upload the JSONL file, keep default settings, and name the output model. The job ran at 0% then progressed while loss fell.
- **Cost figures.** He reports the run shown cost about $131 (the figure read on screen), says the most powerful hardware costs around $40 per hour, and puts his last setup at about $38. An earlier run on larger datasets cost about $800.
- **Deployment.** The custom model is deployed on four Nvidia B300 Blackwell GPUs with 288 GB of memory each, set to at least one always-on replica (zero stops it), with optional autoscaling up to five.
- **Comparison test.** He builds a side-by-side web app that sends one query to the base Kimi K2.7 and to the tuned version. The tuned model shows visible reasoning traces that came from the dataset and gives more concise answers, while both still identify as Kimi. He notes the dataset was small and did not change the model's identity.
- **Cost framing.** He argues that using an open model for routine work, with a stronger model reserved for planning, cuts token spend substantially compared with running everything on a frontier model.

## Actionable Takeaways
1. Create a Hugging Face account and an access token with read access to public repositories, then download the dataset with the Hugging Face CLI.
2. Check the dataset for source quality and row count, aiming for at least 1,000 rows, and convert it to supervised fine-tuning JSONL with a conversion skill or script.
3. On Fireworks AI, create a supervised fine-tuning job on the Kimi K2.7 LoRA model, keep defaults, and watch the loss curve.
4. Deploy the tuned model with at least one always-on replica, and set an API key with a small spending limit before wiring it into an app.
5. Test the tuned model against the base model on the same prompts before relying on it.

## Notable Quotes
> "And if you have a bad data set, you'll have a bad model, right?" — David Ondrej

> "So we can ask one agent to control another." — David Ondrej

> "It's so underrated, and many of you still aren't using AI heavily enough to build your own understanding." — David Ondrej

---

*Related: `@knowledge/protocols/agent-to-human-handoff-context-preload` · `@content/youtube/david-ondrej/fable-5-is-never-coming-back-heres-why` · `@content/youtube/david-ondrej/tailscale-clearly-explained-beginners-guide` · `@content/youtube/nate-herk/how-claude-is-creating-a-new-generation-of-millionaires` · `@content/youtube/eo-global/the-problem-with-ai-agents-no-one-is-talking-about-yutori-abhishek-das`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*