# Different results from checkpoint evaluation when loading fine-tuned LLM model

**URL:** <https://discuss.huggingface.co/t/different-results-from-checkpoint-evaluation-when-loading-fine-tuned-llm-model/43106>\
**Category:** Intermediate\
**Created:** [June 13, 2023, 6:02pm UTC](https://discuss.huggingface.co/t/different-results-from-checkpoint-evaluation-when-loading-fine-tuned-llm-model/43106 "2023-06-13T18:02:18Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![botkop](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/botkop/32/3143_2.png) [@botkop](https://discuss.huggingface.co/u/botkop)\
**Post date:** [September 22, 2023, 8:24am UTC](https://discuss.huggingface.co/t/different-results-from-checkpoint-evaluation-when-loading-fine-tuned-llm-model/43106/6 "2023-09-22T08:24:36Z")

</div>

probably related:

> [@Llama-2 Sequence Classification: Much lower accuracy on inference from checkpoint compared to model](https://discuss.huggingface.co/t/llama-2-sequence-classification-much-lower-accuracy-on-inference-from-checkpoint-compared-to-model/54910):
>
> I’m finetuning a Llama-2 sequence classification model with peft and qlora, and evaluating every 100 steps. I also save a checkpoint every 100 steps. When I load the checkpoint and do inference on the same validation set as during training, the accuracy is really much lower. Here’s the relevant code: Training: q\_config = BitsAndBytesConfig( load\_in\_4bit=True, bnb\_4bit\_quant\_type="nf4", bnb\_4bit\_use\_double\_quant=True, bnb\_4bit\_compute\_dtype=torch.bfloat16 ) model = AutoModelForSeq…

---

_[View the full topic](https://discuss.huggingface.co/t/different-results-from-checkpoint-evaluation-when-loading-fine-tuned-llm-model/43106)._
