Open philkuz opened 1 week ago
The crux of the issue is the erasure of shape info in a few places, such as: https://github.com/huggingface/transformers/blob/3d99f1746e0d667cbec9e69b4ec11289c4752630/src/transformers/models/mask2former/modeling_mask2former.py#L1307
As well as a downstream issue simliar to the issue raised in https://github.com/huggingface/transformers/issues/34022 and fixed in https://github.com/huggingface/transformers/pull/34023
I've managed to narrow down the minimum number of changes necessary to enable this model in my local fork and will put out a PR shortly.
System Info
transformers
version: 4.46.0.dev0Who can help?
@amyeroberts, @qubvel, @ylacombe
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
which causes
Expected behavior
torch.export works for this model.