Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport: Ensure that parameters are leaf nodes when loading a model #364

Merged

Conversation

danieldk
Copy link
Contributor

Description

There was a subtle bug where we populate models with parameters that are not leaf nodes because we called to on them for device placement.

This change fixes this issue and validates that all model parameters are leaf nodes in the model tests.

Checklist

  • I confirm that I have the right to submit this contribution under the project's MIT license.

There was a subtle bug where we populate models with parameters that are
not leaf nodes because we called `to` on them for device placement.

This change fixes this issue and validates that all model parameters are
leaf nodes in the model tests.
@danieldk danieldk added type/bug Type: Bug backport Bugfix backport PR feat/serde Feature: Serialization/Deserialization labels Feb 11, 2024
@danieldk danieldk merged commit 581316d into explosion:v1.3.x Feb 11, 2024
9 checks passed
@danieldk danieldk deleted the bugfix/gradient-tracking-backport branch February 11, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Bugfix backport PR feat/serde Feature: Serialization/Deserialization type/bug Type: Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants