Skip to content

Fix and document the --attention_impl flag - #967

Merged
copybara-service[bot] merged 4 commits into
google:devfrom
RaviTriv:fix-attention-flag
Jul 28, 2026
Merged

Fix and document the --attention_impl flag#967
copybara-service[bot] merged 4 commits into
google:devfrom
RaviTriv:fix-attention-flag

Conversation

@RaviTriv

Copy link
Copy Markdown

Ran into some issues when messing around with using --attention_impl flag, proposed changes to document and fix :)

  • Allocate k_tile_vec, v_tile_vec and init them in AttentionActivationsPtrs to fix segfault.

./build/gemma --weights ~/development/gemma-weights/1b/1b-it-sfp.sbs --attention_impl flash_transposed_qs_bf16 --prompt "Where is Brampton?"

Current
image

Updated
image

  • Pass flags through to eval harnesses

@RaviTriv
RaviTriv marked this pull request as ready for review July 27, 2026 23:30

@jan-wassenberg jan-wassenberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good changes, thanks!

@jan-wassenberg jan-wassenberg added the copybara-import Trigger Copybara for merging pull requests label Jul 28, 2026
@jan-wassenberg jan-wassenberg added copybara-import Trigger Copybara for merging pull requests and removed copybara-import Trigger Copybara for merging pull requests labels Jul 28, 2026
@copybara-service
copybara-service Bot merged commit a5c3476 into google:dev Jul 28, 2026
2 of 3 checks passed
@RaviTriv
RaviTriv deleted the fix-attention-flag branch July 28, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

copybara-import Trigger Copybara for merging pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants