Skip to content

calculating loss per token #9

@xiamengzhou

Description

@xiamengzhou

Hi,

I am looking into the baseline code for calculating the likelihood of the generation, and not sure why in this line it was the loss within this range [-SUFFIX_LEN-1:-1] is considered. I thought it should be loss in [-SUFFIX_LEN:] is considered as it was the first prefix token's loss excluded, so the losses at the last 50 positions should be the losses for the 50 generated tokens.

Maybe I misunderstood tough! Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions