Skip to content

Donut model only works on 4.36.2 for inference, not 4.37.2 #28846

Description

@VikParuchuri

System Info

I have a donut model with some slight customizations to the mbart decoder (added gqa and moe). It works fine on 4.36.2 and 4.37.2 for training.

But inference only works on 4.36.2. When I run inference on 4.37.2, then the output degenerates into repetition. @amyeroberts

Here is an example (the text has been ocred with donut, then rendered back onto a page image):

This is with 4.36.2:

image

And this is with 4.37.2:

image

Everything else is identical (same system, same packages). I don't see anything obvious in the release notes that would cause this.

Who can help?

No response

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

You should see different output with different transformers versions.

Expected behavior

I expect the output to be the same with both versions, and to not degenerate into repetition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions