Skip to content

Conversation

@titaiwangms
Copy link
Collaborator

With the current regression on 20-ish LLMs, it's found that torch.export.Dim("batch", min=1, max=1024) sets a constraints to the graph when the tracing inputs have at least 2 on batch size. While with torch.export.Dim.DYNAMIC, such constraints are not set. From ONNX perspective, we don't have constraint range, so I think it makes sense that we only use DYNAMIC in such cases.

@titaiwangms titaiwangms requested a review from xadupre September 3, 2025 20:59
@titaiwangms
Copy link
Collaborator Author

Check URLs / build (pull_request) seems buggy to me.

@titaiwangms titaiwangms added the enhancement New feature or request label Sep 4, 2025
@sdpython sdpython merged commit e53fe05 into sdpython:main Sep 4, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants