# Fine-tune Llama2 evaluation

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-llama2-evaluation%2F63741%3E%5C
**Category:** Beginners\
**Created:** [November 27, 2023, 4:45pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-llama2-evaluation%2F63741 "2023-11-27T16:45:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SuperOvni](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@SuperOvni](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FSuperOvni)%5C
**Post date:** [November 27, 2023, 4:45pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffine-tune-llama2-evaluation%2F63741%2F1 "2023-11-27T16:45:20Z")

</div>

Hello,  
I want to fine-tune Llama2 for a specific text generation task, I would like to get the model outputs for my evaluation dataset in text form to be able to perform custom metrics. It looks like I can use the compute\_metrics function or I can use generate to get the output of my evaluation. But I’ve got a problem: when I decode my outputs, they’re absolutely not the same for the two methods, why?
