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

pruning transformer-based model #54

Open
huanghmingyue opened this issue Feb 26, 2024 · 2 comments
Open

pruning transformer-based model #54

huanghmingyue opened this issue Feb 26, 2024 · 2 comments

Comments

@huanghmingyue
Copy link

huanghmingyue commented Feb 26, 2024

Hi. Thank you for your contribution.
Can OTO be used for pruning Transformers? I want to apply it to a DETR-like object detection model(DINO:https://github.com/IDEA-Research/DINO). Is this feasible?
I tried
oto = OTO(model, example_inputs)
and got this error:

image
image
image
image
image

@iamanigeeit
Copy link
Contributor

@huanghmingyue I think you are using a very old version of pytorch. Try upgrading python and pytorch.

@tianyic
Copy link
Owner

tianyic commented Feb 26, 2024

@huanghmingyue I agreed with @iamanigeeit that you need to consider use a newer pytorch for getting tracing graph. Transformer is supported such as bert and LLM. But some new transformers may require implement some unseen operators.

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

3 participants