# Problem on inference using peft and DonUT

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-on-inference-using-peft-and-donut%2F78799%3E%5C
**Category:** 🤗Transformers\
**Created:** [March 26, 2024, 3:40pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-on-inference-using-peft-and-donut%2F78799 "2024-03-26T15:40:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edgar404](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@Edgar404](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FEdgar404)%5C
**Post date:** [March 26, 2024, 3:40pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-on-inference-using-peft-and-donut%2F78799%2F1 "2024-03-26T15:40:13Z")

</div>

I trained a DonUT model to perform document extraction from receipt , after the training i tested the accuracy and everything was fine so i pushed the tokenizer and the model to hub

But when i call it from hub the model behave as if it was never trained , the results are not even coherents . This happens only with the peft finetuned model . I have done a full finetuning just before and everything is fine

[Link to the source code](https://www.kaggle.com/code/edgarmevaa/full-finetuning-of-donut-on-numeric-data/edit)
