AI Cloud Architect

Own your AI: Learn how to fine-tune Gemma 3 270M and run it on-device

GoogleHow-to by Ian Ballantyne, Jason Mayes and Kristen QuanGoogle Developers Blog

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

A step-by-step guide to fine-tuning Gemma 3 270M with QLoRA in Colab, quantizing it to under 300MB, and running it in a browser via MediaPipe or Transformers.js.

Who it is for

Developers who want a small task-specific model that runs client-side in a web app without server inference costs.

Key points

  • Fine-tuning uses QLoRA on a free Colab T4 GPU, and the post says it takes minutes.
  • Quantization reduces weights from 16-bit to 4-bit; the post says the model is under 300MB after conversion.
  • The post's example translates text to emoji; the model runs in the browser via WebGPU after caching.