# How do I finetune Blip2 model on a custom dataset?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-i-finetune-blip2-model-on-a-custom-dataset%2F109600%3E%5C
**Category:** Intermediate\
**Created:** [October 1, 2024, 10:45am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-i-finetune-blip2-model-on-a-custom-dataset%2F109600 "2024-10-01T10:45:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sashika](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@sashika](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsashika)%5C
**Post date:** [October 1, 2024, 10:45am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-i-finetune-blip2-model-on-a-custom-dataset%2F109600%2F1 "2024-10-01T10:45:10Z")

</div>

I am new to this area. I want to fine-tune the blip2 model on a custom dataset. I tried the freezing vision model and the language model but I didn’t get satisfactory results. Do I need to fine-tune the language model? I am working with medical data.

---

<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:** [October 1, 2024, 11:39am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-i-finetune-blip2-model-on-a-custom-dataset%2F109600%2F2 "2024-10-01T11:39:35Z")

</div>

I don’t know much about it, but we have people who know the best about it.

> **[BLIP-2](https://huggingface.co/docs/transformers/v4.45.1/model_doc/blip-2)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

@nielsr Looks like a question about BLIP2.
