Moreau frames fine-tuning as one stage in quality optimization, after prompt engineering and retrieval-augmented generation. He recommends considering it when a task is narrow, such as classification or information extraction, high-quality training data is available, and earlier approaches have not met the production quality bar.
LLM Quality Optimization Bootcamp
Speakers
Thierry Moreau, OctoAI co-founder, explains when and how to fine-tune LLMs for better quality and lower serving costs at an AI Engineer lunch and learn, with colleague Pedro Torruella involved in the demo.
The fine-tuning cycle starts with collecting data and continues through training, deployment, and ongoing evaluation as production data changes. Moreau recommends using data close to real production inputs, splitting it into training, validation, and test sets, and starting with a smaller model such as Llama 3 8B. The demo uses parameter-efficient fine-tuning to create a compact LoRA that can be served alongside other LoRAs.
The demonstration uses the Pi-Masking-200K dataset, which covers 54 PII classes across 229 discussion subjects. A function call identifies sensitive strings and their categories, letting the application decide how to redact or substitute them. Moreau formats 10,000 examples for OpenPipe and fine-tunes a Llama 3 8B model; the live LoRA upload fails, so he uses an earlier uploaded asset for inference.
Because the dataset includes ground-truth privacy labels, the team can score false positives and missed PII without using an LLM judge. On a 100-sample evaluation, the fine-tune averages 0.97 against GPT-4's 0.68. Moreau reports serving costs of about $0.15 per million tokens for Llama 3 8B on OctoAI versus up to $30 for GPT-4.
Moreau says fine-tuning requires repeated monitoring and updates as production data drifts; it is not a one-time process. He emphasizes that model quality depends on the training data and that teams should first try prompting and RAG. He presents OpenPipe and OctoAI as ways to simplify training and deployment.
Takeaways
- Try prompt engineering and RAG before fine-tuning; reserve fine-tuning for focused tasks where those methods fall short.
- Use high-quality examples that resemble production data, and keep separate training, validation, and test sets.
- Start with a smaller model and parameter-efficient fine-tuning for specialized tasks; move to larger models if results require it.
- Use ground-truth labels for automated evaluation when available, and include both missed and incorrectly identified data in the score.
- Monitor production quality and refresh the dataset and model as inputs change.
Mentioned in this talk
Search inside this talk
What was claimed 8
- foundedThierry Moreau founded Octoco-founder
“I'm a co-founder at OctoAI”
YouTube Verified2 sources· Talk, Web· archived
- featureOcto: Provides LLM deployment endpoints for serving customized models
“I'll also use OctoAI for LLM deployment”
YouTube Unverified1 source· Talk
- featureOpenPipe: SaaS solution for fine-tuning that lowers the barrier to entry
“OpenPipe, a SaaS solution for fine-tuning”
YouTube Unverified1 source· Talk
- metricOcto: About $0.15 per million tokens for Llama 3 8B, compared with about $30 per million tokens for GPT-4 (200x difference)
“about 15 cents per million tokens, compared with ... GPT-4 at $30 per million tokens”
YouTube Unverified1 source· Talk
- usesOpenPipe uses
Meta Llama 3 8B“we’re fine-tuning a model from OpenPipe ... chose the Llama 3 8-billion-parameter model as the base”
YouTube Unverified1 source· Talk
- featureOpenPipe: Exports fine-tuned weights as LoRAs or merged checkpoints
“you can now export the weights and own them”
YouTube Unverified1 source· Talk
- usesOcto uses
Meta Llama 3 8B“we have our ... OpenPipe Llama 3 8B 32K model”
YouTube Unverified1 source· Talk
- metric
Meta Llama 3 8B: 0.97 average evaluation score versus GPT-4's 0.68 on 100 samples“GPT-4 achieved 0.68 out of 1, whereas our fine-tune achieved 0.97”
YouTube Unverified1 source· Talk













