Skip to content

[Consistency] Automatically set decoder_input_ids for TFEncoderDecoderModel #14397

@NielsRogge

Description

@NielsRogge

🚀 Feature request

Currently, the EncoderDecoderModel class in PyTorch automatically creates the decoder_input_ids based on the labels provided by the user (similar to how this is done for T5/BART). This should also be implemented for TFEncoderDecoderModel, because currently users should manually provide decoder_input_ids to the model.

One can take a look at the TF implementation of BART for example to see how to shift the labels in order to automatically create the decoder_input_ids, namely here.

One should then also update the docstring correspondingly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions