Skip to main content
articleTechnical

Fine-Tuning a Small LLM for Voice Agents: A Practical Guide

personVaniAgent Team
calendar_todayNovember 29, 2026
schedule7 min read
Share
Fine-Tuning a Small LLM for Voice Agents: A Practical Guide: original workflow illustration
Original VaniAgent editorial graphic · Licensed for use on VaniAgent

Short answer: Fine-tune a small language model for a voice agent only after measuring a baseline and defining the behaviour to improve. Prepare authorised, reviewed call examples, train a lightweight adapter such as LoRA, and compare it with the original model on held-out tasks and realistic phone calls.

Define the problem before training

A voice agent includes recognition, conversation logic, language generation, tools, speech synthesis and telephony. A misunderstanding may come from recognition rather than the language model. A wrong appointment may come from a tool integration or stale data. Inspect recordings, transcripts and action logs to identify the stage that caused each failure.

Start with a baseline using the intended base model, prompt, knowledge and tools. Improve clear instructions, retrieval and validation first when those address the observed failure. Fine-tuning may help with repeated patterns such as concise spoken responses, structured extraction or consistent tool selection, but its value must be measured on your own task. Do not use training as a substitute for current business facts or deterministic permission checks.

Choose a small, bounded workflow and define success. Examples include correctly capturing an appointment request, asking one missing question at a time and handing off when an answer is unknown. Record baseline task completion, critical errors, tool-call accuracy, output length and latency for the same test set you will use later.

Prepare call transcripts responsibly

Use recordings and transcripts that your organisation is authorised to process for this purpose. Inventory the source, permitted use, retention and access. Remove unnecessary personal data and secrets before creating training examples. Keep the mapping between real and replacement identifiers out of the training set, and restrict who can access the original material.

Raw transcripts often contain recognition errors, agent mistakes and outdated policies. Have reviewers correct the target behaviour rather than teaching the model to imitate every historical response. Preserve realistic short replies, interruptions, names, numbers and language switches where they are relevant. Label uncertain or unsafe cases with the desired clarification, refusal or human handoff.

Create examples in the base model's required chat format. Include the system instructions, conversation context, available tool descriptions and the desired next assistant message or tool call. Make the target concise enough for speech and faithful to the task. Use a separate example for different possible outcomes rather than embedding contradictory answers in one target.

Split data by conversation and, where feasible, by customer or source group before deriving individual turns. Near-duplicate turns from the same call in training and evaluation can make results look better than performance on new callers. Keep a final holdout untouched during iteration. Track data versions, annotation guidelines and examples removed during review.

Train a LoRA adapter

Low-rank adaptation freezes the base model and trains small additional matrices in selected layers. The original LoRA paper describes this approach, while Hugging Face's PEFT documentation explains how adapters can be attached and trained. The method reduces the number of trainable parameters, but total memory and speed depend on the model, precision, sequence length, optimiser and hardware.

Choose a base model whose licence, languages, tool-call format and serving requirements fit the deployment. Record its exact revision and tokenizer. Select target modules and adapter settings appropriate to that architecture, and save the configuration with the adapter. The adapter depends on its compatible base model and tokenizer, so store their identifiers and licences together.

Run a small training experiment first. Check that training loss responds, the expected adapter parameters are trainable, and sample outputs use the desired format. Monitor validation results during training and compare checkpoints. More training is not automatically better: a model can memorise examples or lose useful general behaviour. Preserve the original base model and make it easy to roll back.

Evaluate behaviour beyond loss

Compare the tuned and untuned models with the same prompt, tool definitions and held-out inputs. Use a scorecard covering task completion, correct extraction of names and numbers, grounded answers, correct tool selection and arguments, unnecessary tool calls, handoff decisions and concise spoken wording. Record both improvements and regressions.

Include negative cases: missing information, conflicting instructions, an unavailable tool, a caller changing their mind, requests outside scope and attempts to induce an unauthorised action. Use deterministic checks for structured fields where possible and human review for conversational quality. Segment results by language, call type and difficulty, and record sample sizes. A small overall gain can hide a serious regression in one group.

Do not let a generated answer alone authorise a consequential action. Validate tool arguments, permissions and business rules in application code. Test that the system avoids repeating an action when requests time out or calls are retried. Keep an auditable link between the model version, prompt, tool schema and evaluation results.

Measure latency on the complete voice path

A smaller model may be attractive for response time, but benchmark the actual serving configuration. Measure time to first useful text, output tokens per second and tail latency at expected concurrency. Then measure from the caller's end of turn to first audible speech, including recognition, network, tool calls and synthesis. Test interruptions and long contexts.

Compare the base and adapter under the same hardware, precision, batch policy and traffic. An adapter can be served separately or merged where the tooling supports it, but verify output equivalence and performance for the chosen implementation. Record memory, queue depth and failure rate as well as averages. The GPU sizing guide outlines capacity testing.

Release and monitor

Start with a limited pilot and a human fallback. Review recordings and action logs using the same scorecard, track critical errors and changes in caller mix, and keep a tested rollback to the baseline. Re-evaluate after model, prompt, recognition or tool changes because the components interact.

Voice AI Studio fine-tuning describes VaniAgent's service for adapting models to business data. Ask for the data preparation, evaluation, deployment and ownership terms for your project. The Hindi ASR fine-tuning guide covers the separate speech-recognition stage.

Frequently asked questions

What is LoRA?

Low-rank adaptation trains a small set of adapter parameters while keeping base model weights frozen. The resulting adapter is used with the compatible base model.

Can I train on raw call transcripts?

Prepare authorised data, remove unnecessary sensitive information, correct examples and split by conversation or customer before training. Raw transcripts may contain errors and undesirable behaviour.

How do I know the tuned model is ready?

Compare it with the baseline on held-out scenarios and real call-path tests, including task accuracy, safety, tool use and latency at expected load.

Continue planning your workflow

See the parent guide, calling costs, or request a scoped demonstration. Examples and test resources are educational; verified provider configuration and measured customer results must be evaluated separately.

Build with Vani

Put these ideas into production

Deploy AI voice agents in minutes and build outbound, inbound, and follow-up workflows on one platform.

Keep exploring

Related Articles