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

Add device_vjp validation #6755

Merged
merged 11 commits into from
Jan 6, 2025

Conversation

albi3ro
Copy link
Contributor

@albi3ro albi3ro commented Jan 3, 2025

Context:

We weren't actually validating that the device_vjp=True was supported. This allowed strange circumstances where you would have device_vjp=True, but not support device derivatives at all, and this could lead to incorrect answers.

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:

[sc-81479]

doc/releases/changelog-dev.md Outdated Show resolved Hide resolved
@PietropaoloFrisoni PietropaoloFrisoni added this to the v0.40 milestone Jan 3, 2025
@albi3ro albi3ro requested a review from astralcai January 3, 2025 22:42
Copy link

codecov bot commented Jan 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (v0.40.0-rc0@2d4baca). Learn more about missing BASE report.

Additional details and impacted files
@@              Coverage Diff               @@
##             v0.40.0-rc0    #6755   +/-   ##
==============================================
  Coverage               ?   99.60%           
==============================================
  Files                  ?      476           
  Lines                  ?    45232           
  Branches               ?        0           
==============================================
  Hits                   ?    45055           
  Misses                 ?      177           
  Partials               ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@albi3ro albi3ro changed the base branch from master to v0.40.0-rc0 January 6, 2025 15:03
Copy link
Contributor

@PietropaoloFrisoni PietropaoloFrisoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@albi3ro albi3ro merged commit 0c2494c into v0.40.0-rc0 Jan 6, 2025
41 checks passed
@albi3ro albi3ro deleted the validate-no-device-vjp-if-no-device-gradient branch January 6, 2025 16:31
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.

3 participants