# How to fine tune a base model?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-fine-tune-a-base-model%2F164886%3E%5C
**Category:** Beginners\
**Created:** [July 29, 2025, 4:29am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-fine-tune-a-base-model%2F164886 "2025-07-29T04:29:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aw632](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@aw632](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Faw632)%5C
**Post date:** [July 29, 2025, 4:29am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-fine-tune-a-base-model%2F164886%2F1 "2025-07-29T04:29:54Z")

</div>

I am trying to fine tune the [google/gemma-3n-E2B · Hugging Face](https://huggingface.co/google/gemma-3n-E2B) model, which is a base model (NOT instruct). How do I fine tune this model on my dataset which I prepared? All the guides I see on HF for finetuning seem to use chat template models, I can’t find any tutorials for fine tuning VLM that don’t have chat templates.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [July 29, 2025, 5:37am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-fine-tune-a-base-model%2F164886%2F2 "2025-07-29T05:37:11Z")

</div>

[Whether or not it is necessary to apply a Chat Template to chat-style text data in advance to convert it into a predefined format](https://huggingface.co/blog/chat-templates) is the only difference in the tasks required for fine-tuning, whether it is applied to [the base model or the Instruct model](https://huggingface.co/tiiuae/falcon-40b-instruct/discussions/8#64774c20bb7681ad67042d1a). However, best practices in terms of accuracy may vary…  
Google appears to have provided [an explanation regarding fine-tuning as a VLM](https://ai.google.dev/gemma/docs/core/huggingface_vision_finetune_qlora).

Other resources:

> **[Fine-Tuning a Vision Language Model (Qwen2-VL-7B) with the Hugging Face...](https://huggingface.co/learn/cookbook/en/fine_tuning_vlm_trl)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

> **[Fine-Tuning Your First Large Language Model (LLM) with PyTorch and Hugging Face](https://huggingface.co/blog/dvgodoy/fine-tuning-llm-hugging-face)**
>
> A Blog post by Daniel Voigt Godoy on Hugging Face
