The Kaitchup – AI on a Budget

The Kaitchup – AI on a Budget

Share this post

The Kaitchup – AI on a Budget
The Kaitchup – AI on a Budget
Fine-Tuning Gemma 3 on Your Computer with LoRA and QLoRA (+model review)

Fine-Tuning Gemma 3 on Your Computer with LoRA and QLoRA (+model review)

The efficiency of global-local attention with QK-Norm and no more soft-capping

Benjamin Marie's avatar
Benjamin Marie
Mar 13, 2025
∙ Paid
16

Share this post

The Kaitchup – AI on a Budget
The Kaitchup – AI on a Budget
Fine-Tuning Gemma 3 on Your Computer with LoRA and QLoRA (+model review)
7
1
Share
source (Google Blog)

Google introduced Gemma 3, an updated iteration of its Gemma model series. These models show strong performance compared to other open models of similar sizes, with the 27B variant (probably) being the most capable open LLM under 100B parameters.

To achieve this, Google developed a new architecture that improves both accuracy and efficiency. Additionally, Gemma 3 is natively multimodal, allowing it to process both text and image inputs.

The Kaitchup – AI on a Budget is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.

In this article, we will take a close look at the key architectural changes in Gemma 3, breaking down how these improvements impact performance, efficiency, and usability. We will explore both its strengths and limitations. Beyond architecture, I’ll also provide a hands-on guide with code for fine-tuning Gemma 3 on a 24GB GPU, covering best practices to optimize the process. Additionally, we will analyze memory consumption, discussing key factors that influence training efficiency. Special attention will be given to important fine-tuning settings, including model parameters, quantization options, and tokenizer considerations.

The notebook for fine-tuning Gemma 3 is available here:

Get the notebook (#150)

Gemma 3: A New Architecture with Global-Local Attention

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 The Kaitchup
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share