WhoBuilt

From 46% to 90%: Fine-Tuning Tiny LLMs for On-Device Agents

May 20, 2026· 21 min· 83K views·Watch on YouTube

Speaker

Cormac Brick, a software engineering tech lead at Google AI Edge, explains on the AI Engineer channel how to build on-device agents and deploy tiny, task-specific language models.

Choosing system or app AI

Brick describes on-device AI as useful for latency, privacy, offline access, reliability, and cost. Developers can use system models such as Gemini Nano through AI Core, or ship customized models in their apps with LiteRT-LM. Google's LiteRT runtime supports CPU, GPU, or NPU execution across platforms.

Adding skills to on-device agents

The Google AI Edge Gallery demonstrates a simple agent harness built around Gemma 4. Skill descriptions go into the prompt, while each skill's details load on demand through a load-skill tool. Skills can include JavaScript to render app interfaces, such as a restaurant roulette wheel or a map.

Exporting and deploying tiny models

LiteRT-LM packages models and related files for on-device inference, with C++ and Java APIs available in the talk. Brick outlines a workflow from Transformers through LiteRT Torch export to testing with LiteRT-LM Run and deployment. Models with 100 to 200 million parameters often need a narrow task, so fine-tuning with synthetic data can help.

Fine-tuning improves function calling

FunctionGemma has 270 million parameters and can run on devices as old as Pixel 7. For an app-function task, its initial success rate was about 46%; after fine-tuning on a synthetically generated dataset, it exceeded 90% on eight of ten functions. Brick says the approach takes more work than prompting a larger model, but can make on-device function calling more reliable.

Tiny models in a transcription app

Brick describes Eloquent, an offline transcription service that uses Gemma 3-based models with a few hundred million parameters. An ASR model transcribes speech, and a text-polishing model removes filler words and uses a personal dictionary for names and technical terms. He presents it as an example of fine-tuned tiny models working together in a production app.

Takeaways

  • Start with a preloaded system model when it meets the use case; app-shipped models add customization but require more integration work.
  • For small models, narrow the task and fine-tune with synthetic examples instead of relying on a long system prompt.
  • Measure function calling by function: the reported fine-tuning raised success above 90% for eight of ten functions, with two still weaker.
  • Load skill details on demand to let an agent access capabilities without putting every function detail in its initial prompt.
  • Chaining small models can support an offline workflow, such as transcription followed by text polishing and personal vocabulary.

Mentioned in this talk

Search inside this talk

What was claimed 10

Show all 10 facts

Related talks