transformers 4.44.2 doesn't work with torch.compile and torch.export on T5 generate() #33283
Closed
2 of 4 tasks
Labels
bug
Compilation
Issues related to torchdynamo and torchinductor
Generation
WIP
Label your PR/Issue with WIP for some long outstanding Issues/PRs that are work in progress
System Info
transformers
version: 4.44.2Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
The following code breaks:
With the following error:
If I manually add
decoder_start_token_id=0
to the GenerationConfig. Then both compile and export work, although very slow.Expected behavior
Expected generate to work like before without manually specifying
decoder_start_token_id
orbos_token_id
in theGenerationConfig
.The text was updated successfully, but these errors were encountered: