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

Ensure that parameters are leaf nodes when loading a model #362

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

danieldk
Copy link
Contributor

@danieldk danieldk commented Feb 8, 2024

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 feat/layers Feature: Layers labels Feb 8, 2024
@danieldk danieldk merged commit af59d3f into explosion:main Feb 8, 2024
9 checks passed
@danieldk danieldk deleted the bugfix/gradient-tracking branch February 8, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat/layers Feature: Layers type/bug Type: Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants