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

How to manually check if one position or row has correct masking? #66

Open
Leo-T-Zang opened this issue Oct 28, 2024 · 2 comments
Open

Comments

@Leo-T-Zang
Copy link

Hi,

I wonder if we can manually verify attention mask patterns during testing. While I can visualize masks by printing them as strings, I'm looking to add proper test assertions.

  • How to assert if a specific position (i,j) has the correct True/False value
  • How to verify an entire row matches expected masking pattern

Current approach:

  • Can print mask as string for visual inspection

Would appreciate examples of how to properly test these mask values.

@drisspg
Copy link
Contributor

drisspg commented Oct 28, 2024

def create_score_mod(

This function makes use of some private functions, and we dont provide BC guarantees on this but this should allow you to extract out the (potentially large) attn-scores matrix

@Leo-T-Zang
Copy link
Author

Thanks @drisspg!

Will try!

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