Hello, I wonder if anyone knows how to extract attentions from the last layer of UNI? I want to plot attention maps for each head. Thanks in advance!
In general, pytorch's hook is your friend.
Did you resolved your issue?
Β· Sign up or log in to comment