# Trainer output much better than output from loaded model

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrainer-output-much-better-than-output-from-loaded-model%2F14276%3E%5C
**Category:** 🤗Transformers\
**Created:** [January 31, 2022, 4:47pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrainer-output-much-better-than-output-from-loaded-model%2F14276 "2022-01-31T16:47:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![egalinkin](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@egalinkin](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fegalinkin)%5C
**Post date:** [January 31, 2022, 4:47pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrainer-output-much-better-than-output-from-loaded-model%2F14276%2F1 "2022-01-31T16:47:47Z")

</div>

I fine-tuned a model using HF, Datasets, and trainer. However, I’m now running into a kind of curious issue: my output from the QA trainer is excellent but loading the trained model into a pipeline gives me terrible results.  
During training, I got a Rouge2 F1 of around .89, checkpointed the model, loaded from the best checkpoint and saved the model file. Now when I run the loaded model with the same tokenizer in a pipeline, I get terrible performance.

I used the QA Trainer from HF’s repo with very minor modifications – any thoughts?
