Skip to content

[Trainer][Eval] Why the model output for the first element in eval batch is skipped in logits? #34278

@konradkalita

Description

@konradkalita

I wonder why this is written this way. It causes a bug in my eval pipeline as I loose a one element from every batch in eval loop:

logits = outputs[1:]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions