mattmireles/gemma-tuner-multimodal

Fine-tune Gemma 4 and 3n with audio, images and text on Apple Silicon, using PyTorch and Metal Performance Shaders.

What it solves

This project enables you to fine-tune Gemma multimodal models (text, image, and audio) directly on your Apple Silicon Mac. It removes the need for expensive NVIDIA hardware or cloud-based GPU rentals, allowing you to train custom models on your own machine while keeping your data private.

How it works

It uses a LoRA (Low-Rank Adaptation) approach to fine-tune Gemma checkpoints. You provide your training data in simple CSV files. The tool includes a wizard-based CLI to guide you through configuration and training. For large datasets, it supports streaming data directly from Google Cloud Storage or BigQuery, so you don't need to store terabytes of data on your local SSD. It also features a real-time browser-based visualizer to monitor loss, memory usage, and token predictions while training.

Who it’s for

It is designed for developers and researchers who want to build domain-specific AI assistants—such as specialized transcription, visual document understanding, or custom language adaptation—using Apple hardware. It is ideal for those who need to train on proprietary data that must remain on-device.

Highlights

  • Runs natively on Apple Silicon (MPS) without requiring CUDA.
  • Supports multimodal training: text-only, image-text (captioning/VQA), and audio-text.
  • Streams large datasets from GCS or BigQuery to avoid local storage limits.
  • Includes a real-time training visualizer for monitoring metrics like loss, memory, and attention heatmaps.
  • Simple CSV-based data format; no complex JSONL or Parquet requirements.

Related

  • Dispatch
  • Dispatch
  • Project
  • Project
  • Dispatch