# Different loss values in run\_glue

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdifferent-loss-values-in-run-glue%2F21818%3E%5C
**Category:** 🤗Transformers\
**Created:** [August 19, 2022, 4:43am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdifferent-loss-values-in-run-glue%2F21818 "2022-08-19T04:43:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daromog](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/daromog/32/35113_2.png) [@Daromog](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FDaromog)%5C
**Post date:** [August 19, 2022, 4:43am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdifferent-loss-values-in-run-glue%2F21818%2F1 "2022-08-19T04:43:50Z")

</div>

Hi, Im using run\_glue to fine tune some models , I was training the model with just 4 epochs, and seeing the logs after each epoch, and everything good but when it finishes it gives me like the final train metrics and the values are totally different

I got this

{‘loss’: 0.5777, ‘learning\_rate’: 7.500000000000001e-06, ‘epoch’: 1.0}  
{‘loss’: 0.3363, ‘learning\_rate’: 5e-06, ‘epoch’: 2.0}  
{‘loss’: 0.2117, ‘learning\_rate’: 2.5e-06, ‘epoch’: 3.0}  
{‘loss’: 0.1612, ‘learning\_rate’: 0.0, ‘epoch’: 4.0}

And after this

\*\*\*\*\* train metrics \*\*\*\*\*  
epoch = 4.0  
train\_loss = 0.3217  
train\_runtime = 0:01:06.18  
train\_samples = 50  
train\_samples\_per\_second = 3.384  
train\_steps\_per\_second = 0.423

why I got different training losses 0.16 vs 0.32 ??? . Due to it is the last epoch shouldn’t I get the same training loss why is this happening?
