Skip to content

Use torch._check instead of a test in Gemma3Model#41319

Open
xadupre wants to merge 1 commit intohuggingface:mainfrom
xadupre:gemma
Open

Use torch._check instead of a test in Gemma3Model#41319
xadupre wants to merge 1 commit intohuggingface:mainfrom
xadupre:gemma

Conversation

@xadupre
Copy link
Copy Markdown
Contributor

@xadupre xadupre commented Oct 3, 2025

What does this PR do?

torch.export.export fails because of a test checking two dimension are equal. This PR replaces the test by torch._check.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 3, 2025

[For maintainers] Suggested jobs to run (before merge)

run-slow: gemma3

@ydshieh
Copy link
Copy Markdown
Collaborator

ydshieh commented Oct 3, 2025

torch.export.export fails

does it fails even if the dimension are equal ..?

Copy link
Copy Markdown
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah very happy to fix export! Can we ship this to all other models that use the check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants