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

self.attn_probs in ResidualAttentionBlock() causes problems - how to make explainability work with mlfoundations / open_clip model #32

Open
tahirmiri opened this issue May 31, 2023 · 0 comments

Comments

@tahirmiri
Copy link

tahirmiri commented May 31, 2023

Hi,

I am running experiments using OpenCLIP model from mlfoundations. . It turns out that openCLIP's architecture is different from CLIP's architecture you defined. I encountered the same error as mentioned here, then tried to add missing parts but somehow still get attn_probs = None at the end, instead of being a tensor calculated along the way.

Could you please guide me on how to make your code work with openCLIP? In particular, what should be enough to modify in respective modules of openCLIP ( transformer.py is the equivalent module to yours model.py).

P.S. if you are interested in working on this for an hourly-based compensation, I would gladly discuss it. Please let me know.

@tahirmiri tahirmiri changed the title adding self.attn_probs in ResidualAttentionBlock() of mlfoundations / open_clip model adding self.attn_probs in ResidualAttentionBlock() of mlfoundations / open_clip model doesn't work May 31, 2023
@tahirmiri tahirmiri reopened this Jun 6, 2023
@tahirmiri tahirmiri changed the title adding self.attn_probs in ResidualAttentionBlock() of mlfoundations / open_clip model doesn't work self.attn_probs in ResidualAttentionBlock() causes problems - how to make explainability work with mlfoundations / open_clip model Jun 9, 2023
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

1 participant