Skip to content

Remove noop spmd_mode check, correct type annotations in attention flax#170

Closed
coolkp wants to merge 2 commits intomainfrom
code-health
Closed

Remove noop spmd_mode check, correct type annotations in attention flax#170
coolkp wants to merge 2 commits intomainfrom
code-health

Conversation

@coolkp
Copy link
Copy Markdown
Collaborator

@coolkp coolkp commented May 1, 2025

Changes:

  1. attention_flax.py
    • fix type annotations
    • change AttentionOp's scale param type to float, since it is passed as float to subsequent DotProductAttention calls
  2. train_utils.py

Signed-off-by: Kunjan patel <kunjanp@google.com>
@coolkp coolkp requested a review from entrpn May 1, 2025 18:02
Signed-off-by: Kunjan patel <kunjanp@google.com>
@coolkp coolkp marked this pull request as draft May 1, 2025 18:42
@coolkp
Copy link
Copy Markdown
Collaborator Author

coolkp commented Feb 2, 2026

Not needed anymore

@coolkp coolkp closed this Feb 2, 2026
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.

2 participants