Skip to content

Fix multi-device NaN check in KFAC training step - #104

Merged
copybara-service[bot] merged 1 commit into
google-deepmind:mainfrom
Qianruipku:hotfix
Sep 19, 2025
Merged

Fix multi-device NaN check in KFAC training step#104
copybara-service[bot] merged 1 commit into
google-deepmind:mainfrom
Qianruipku:hotfix

Conversation

@Qianruipku

@Qianruipku Qianruipku commented Aug 8, 2025

Copy link
Copy Markdown
Contributor

Replace direct boolean check with jnp.any() to handle loss arrays from multiple devices when detecting NaN values.

Replace direct boolean check with jnp.any() to handle loss arrays
from multiple devices when detecting NaN values.
@google-cla

google-cla Bot commented Aug 8, 2025

Copy link
Copy Markdown

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.

Comment thread ferminet/train.py Outdated
@copybara-service
copybara-service Bot merged commit 6848678 into google-deepmind:main Sep 19, 2025
2 checks passed
@Qianruipku
Qianruipku deleted the hotfix branch April 11, 2026 11:13
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