Skip to content

Conversation

@staticpayload
Copy link

Fixes #32
Fixes #33

What changed:

  • Use assert_allclose with rtol/atol for RMSNorm and RoPE tests to avoid GPU float jitter.

Test:

  • pytest gemma/gm/nn/_layers_test.py gemma/gm/nn/gemma3n/_layers_test.py gemma/gm/math/_positional_embeddings_test.py (AWS eu-central-2, Amazon Linux 2023)

GPU backends can introduce tiny floating point differences in RMSNorm and RoPE outputs.\nSwitch exact comparisons to assert_allclose with tight tolerances to prevent false negatives on V100/A100 while keeping coverage.
@google-cla
Copy link

google-cla bot commented Jan 12, 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.

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.

Issue with unit tests on NVIdia A100 (GPU) Issue with unit tests on NVIdia V100 (GPU)

1 participant