Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for einops #2905

Open
escorciav opened this issue Apr 26, 2024 · 1 comment
Open

Support for einops #2905

escorciav opened this issue Apr 26, 2024 · 1 comment

Comments

@escorciav
Copy link

Is there any plan for supporting einops?
While preparing a model from machine learning research scientis, I noticed that AIMET struggles with it while ONNX does not.

Is it due to fx?

Thanks!

@quic-klhsieh
Copy link
Contributor

Hi @escorciav , we currently do not have plans to support automatically handling models using einops package during model preparation. You are correct that the limitation stems from torch.fx incompatibililty with einops.

In the past, we have gotten around this by using torch.fx.wrap() on einops functions in the model definition file. Otherwise, you will need to hand modify the model to use conventional pytorch operations.

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

No branches or pull requests

2 participants