Skip to content

[graph_trainer] Update bitwise deterministic hashes after fused QKV - #3031

Merged
SherlockNoMad merged 1 commit into
mainfrom
fix-bitwise-deterministic-hashes
Apr 20, 2026
Merged

SherlockNoMad merged 1 commit into
mainfrom
fix-bitwise-deterministic-hashes

Conversation

@SherlockNoMad

@SherlockNoMad SherlockNoMad commented Apr 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Updates hardcoded expected hashes in test_bitwise_deterministic.py for TestLlama3BitwiseDeterministic and TestLlama3FlexAttnBitwiseDeterministic

Root Cause

git bisect identified #2878 (ad7a8653 — "Fused QKV GQAttention implementation") as the commit that broke these tests. That PR replaced separate wq/wk/wv projections with a single fused wqkv linear in GQAttention, which changed the parameter layout and therefore the deterministic model/gradient hashes.

Verified:

Loss values are unchanged — only the model and gradient hashes differ, confirming the fused QKV change altered parameter layout but not numerics.

Test plan

  • pytest torchtitan/experiments/graph_trainer/tests/test_bitwise_deterministic.py::TestLlama3BitwiseDeterministic::test_eager_self_deterministic passes
  • pytest torchtitan/experiments/graph_trainer/tests/test_bitwise_deterministic.py::TestLlama3FlexAttnBitwiseDeterministic::test_eager_self_deterministic passes

…hange

The fused QKV GQAttention implementation (#2878) changed the parameter
layout from separate wq/wk/wv to a single wqkv linear, which changed
model and gradient hashes. Loss values are unchanged.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 20, 2026
@SherlockNoMad SherlockNoMad added the ciflow/h100.8 Trigger H100.8 CI label Apr 20, 2026
@SherlockNoMad
SherlockNoMad merged commit 50cd61d into main Apr 20, 2026
13 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/h100.8 Trigger H100.8 CI ciflow/8gpu CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants