# Issue while loading file-tuned gemma2

**URL:** <https://discuss.huggingface.co/t/issue-while-loading-file-tuned-gemma2/118613>\
**Category:** Models\
**Created:** [November 13, 2024, 1:16pm UTC](https://discuss.huggingface.co/t/issue-while-loading-file-tuned-gemma2/118613 "2024-11-13T13:16:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [November 13, 2024, 1:23pm UTC](https://discuss.huggingface.co/t/issue-while-loading-file-tuned-gemma2/118613/2 "2024-11-13T13:23:34Z")

</div>

In the HF library, this is a message that often appears in both image generation AI and LLM, but the fact that it is only a warning means that the warning itself probably does not interfere with operation.  
I think the cause of the strange output is something else.

> [@Unable to load checkpoint after finetuning](https://discuss.huggingface.co/t/unable-to-load-checkpoint-after-finetuning/50693):
>
> Hi, So I’m running into trouble when trying to load the model weights after finetuning a pretrained base model, steps I’m taking: model= BertForSequenceClassification.from\_pretrained("model/repo") model.classifier = torch.nn.Sequential( torch.nn.Dropout(0.4), torch.nn.Linear(model.config.hidden\_size, 256), torch.nn.ReLU(), torch.nn.Dropout(0.4), torch.nn.Linear(256, 2), ) getting a warning here which I guess is fine for the moment: Some weights of the model checkpoint at…

---

_[View the full topic](https://discuss.huggingface.co/t/issue-while-loading-file-tuned-gemma2/118613)._
