Skip to content

Add validation for attention type in the Attention module.#556

Closed
copybara-service[bot] wants to merge 0 commit intomainfrom
test_869698879
Closed

Add validation for attention type in the Attention module.#556
copybara-service[bot] wants to merge 0 commit intomainfrom
test_869698879

Conversation

@copybara-service
Copy link

Add validation for attention type in the Attention module.

Use enum.auto() for AttentionType members. Add a ValueError check to ensure attn_type is either GLOBAL or LOCAL_SLIDING when processing attention masks.

@google-cla
Copy link

google-cla bot commented Feb 13, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@copybara-service copybara-service bot force-pushed the test_869698879 branch 6 times, most recently from b313434 to b9f331c Compare February 17, 2026 10:45
@copybara-service copybara-service bot closed this Feb 17, 2026
@copybara-service copybara-service bot deleted the test_869698879 branch February 17, 2026 15:41
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

Successfully merging this pull request may close these issues.

0 participants