Skip to content

Fix mistral ONNX export#31696

Merged
fxmarty merged 3 commits into
huggingface:mainfrom
fxmarty:fix-mistral-onnx-export
Jul 2, 2024
Merged

Fix mistral ONNX export#31696
fxmarty merged 3 commits into
huggingface:mainfrom
fxmarty:fix-mistral-onnx-export

Conversation

@fxmarty

@fxmarty fxmarty commented Jun 28, 2024

Copy link
Copy Markdown
Contributor

The ONNX torchscript export fails after #30642 as exclude_mask |= ... gets mapped to aten::__ior_ which is not exportable. aten::bitwise_or is.

Using torch.bitwise_or(exclude_mask, second_mask, out=exclude_mask) breaks as well the ONNX export so using the inplace version of the operator instead.

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@fxmarty

fxmarty commented Jun 28, 2024

Copy link
Copy Markdown
Contributor Author

keras CI looks broken

@ArthurZucker ArthurZucker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM as long as compile is still supported?

@zhenglongjiepheonix zhenglongjiepheonix left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good to me , it seems still compile-compatible

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.

4 participants