# Rouge eval metrics in summarization not computing

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Frouge-eval-metrics-in-summarization-not-computing%2F10191%3E%5C
**Category:** Amazon SageMaker\
**Created:** [September 21, 2021, 6:54pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Frouge-eval-metrics-in-summarization-not-computing%2F10191 "2021-09-21T18:54:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorgeutd](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/jorgeutd/32/39292_2.png) [@Jorgeutd](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJorgeutd)%5C
**Post date:** [September 21, 2021, 6:54pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Frouge-eval-metrics-in-summarization-not-computing%2F10191%2F1 "2021-09-21T18:54:28Z")

</div>

Hello @philschmid I was trying to fine tune a summarization model with a very small data set (100 samples) and none of the rouge eval metrics are being computed in the training job. Is there size limit in terms of samples that could be causing this?

Thank you.

![image](https://us1.discourse-cdn.com/hellohellohello/original/2X/1/1f6bea5ca2c8999c6f1de7b5ec83892be6ab041f.png)

---

<div class="post-metadata">

**Author:** ![philschmid](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/philschmid/32/38022_2.png) [@philschmid](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fphilschmid)%5C
**Post date:** [September 22, 2021, 7:48am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Frouge-eval-metrics-in-summarization-not-computing%2F10191%2F2 "2021-09-22T07:48:43Z")

</div>

Hello @Jorgeutd,

Are you using the `examples/` script? and are you passing the `hyperparameter` → `'predict_with_generate': True,`

> predict\_with\_generate ( `bool` , optional, defaults to `False` ):  
> Whether to use generate to calculate generative metrics (ROUGE, BLEU).`

---

<div class="post-metadata">

**Author:** ![Jorgeutd](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/jorgeutd/32/39292_2.png) [@Jorgeutd](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJorgeutd)%5C
**Post date:** [September 23, 2021, 1:39pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Frouge-eval-metrics-in-summarization-not-computing%2F10191%2F3 "2021-09-23T13:39:19Z")

</div>

Thank you @philschmid . I reviewed indeed that the run summ.py script this time.
