Datasets:

Modalities:
Image
Size:
< 1K
Libraries:
Datasets
License:

Upload Image for Attention Mask Visualizer (Gemma2)

#473

Hi @stevhliu , Based on our discussion (https://github.com/huggingface/transformers/pull/37076#discussion_r2027404636), I want to upload the image of Attention Mask Visualizer for Gemma2.

Hugging Face org

Your image looks a bit unaligned. It should look more like this:

Screenshot 2025-04-03 at 10.24.38 AM.png

Hi. I am still getting unaligned image, when I try. Where am I going wrong?

from transformers.utils.attention_visualizer import AttentionMaskVisualizer
visualizer = AttentionMaskVisualizer("google/gemma-2b")
visualizer("You are an assistant. Make sure you print me") 

image.png

Hugging Face org
stevhliu changed pull request status to closed
Your need to confirm your account before you can post a new comment.

Sign up or log in to comment