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

Selection of BLOCK_SIZE in create_block_mask #65

Open
tsrikris opened this issue Oct 23, 2024 · 1 comment
Open

Selection of BLOCK_SIZE in create_block_mask #65

tsrikris opened this issue Oct 23, 2024 · 1 comment

Comments

@tsrikris
Copy link

In the create_block_mask function, the BLOCK_SIZE parameter seems to be control the size of the sub-blocks that leverage block sparsity. Do you have any recommendations on tuning this parameter? I can imagine this is a function of the document size in Document Masking.

@Chillee
Copy link
Contributor

Chillee commented Oct 24, 2024

Generally, I would recommend sticking with BLOCK_SIZE=128 or above, unless you're constrained by memory. We're limited in that the tile sizes chosen within the kernel itself must divide into BLOCK_SIZE of BlockMask.

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