# Generation scores

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgeneration-scores%2F37546%3E%5C
**Category:** Beginners\
**Created:** [April 24, 2023, 5:34am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgeneration-scores%2F37546 "2023-04-24T05:34:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![heekang](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@heekang](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fheekang)%5C
**Post date:** [April 24, 2023, 5:34am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgeneration-scores%2F37546%2F1 "2023-04-24T05:34:58Z")

</div>

Hi, I’m trying to use `.generate()` method for decoder-only models(ex. GPT2), and figuring out that it provides various helpful values as well as the generated sequence(s). However, I cannot find detailed description of each value.

In detail, when I use beam search (by passing `num_beams` 3, `num_return-sequences`3, `do_sample` False), I can get `sequences`, `sequences_scores`, `scores`, and `beam_indices`. Obviously, `sequences` is the generated sequences(token ids). But what do others mean? And how can I compute them by hand?

Plus, 🤗huggingface transformers provide `compute_transition_scores()` method for each model. What does this value mean? How can I compute it? And what’s the difference between `scores` and `transition_scores`?
