# \[HELP\] custom trained VLM ignoring input image.  

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-custom-trained-vlm-ignoring-input-image%2F169222%3E%5C
**Category:** Models\
**Created:** [October 16, 2025, 2:42pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-custom-trained-vlm-ignoring-input-image%2F169222 "2025-10-16T14:42:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kethankrk](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/kethankrk/32/59878_2.png) [@kethankrk](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fkethankrk)%5C
**Post date:** [October 16, 2025, 2:42pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-custom-trained-vlm-ignoring-input-image%2F169222%2F1 "2025-10-16T14:42:23Z")

</div>

I was learning about VLM. and tried to create a small one using “HuggingFaceTB/SmolLM2-135M“ and “google/siglip-base-patch16-224“ with their pre-trained weights. But the loss is stuck between 0.5 and 0.4 and the model is generating the trained dataset like caption but that has nothing to do with the input image. It look like the model is completely ignoring the image embeddings.

Google colab notebook: [click here](https://colab.research.google.com/drive/1nKQgdlntSDflM5MKMI0qEr71wi_E12AY?usp=sharing)

I am just learning so this might be some silly mistake or i might have misunderstood something. I tried many things, used multiple LLMs for an explanation, but nothing helped or gave a proper explanation. Please point out what’s wrong here.

I tried training for 500 - 600 steps but results where same as doing a single epoch which as around 250 steps.

---

<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 17, 2025, 4:41am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-custom-trained-vlm-ignoring-input-image%2F169222%2F2 "2025-10-17T04:41:37Z")

</div>

I [managed to reproduce the issue](https://huggingface.co/datasets/John6666/forum2/blob/main/vlm_ignore_image_1.md) and [make a few minor improvements](https://huggingface.co/datasets/John6666/forum2/blob/main/tiny_vlm_(2)_patched.ipynb), but I’m not sure if it’s actually fixed…
