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

Update ax_multiobjective_nas_tutorial.py to use TensorboardMetric #2985

Merged
merged 3 commits into from
Jul 31, 2024

Conversation

mpolson64
Copy link
Contributor

Ax's TensorboardCurveMetric is going away soon and is replaced by TensorboardMetric

Description

My team (Adaptive Experimentation) wrote this tutorial a number of years ago. We have since updated the way our library Ax interfaces with Tensorboard and are interested in reaping our old class TensorboardCurveMetric. In order to ensure this doesnt break our tutorial on the pytorch website we want to proactively update this tutorial to use our new class TensorboardMetric.

I tested this locally, but let me know if I can produce a more formal test plan.

cc @Balandat @dme65

Checklist

  • The issue that is being fixed is referred in the description (see above "Fixes #ISSUE_NUMBER")
  • Only one issue is addressed in this pull request
  • Labels from the issue that this PR is fixing are added to this pull request
  • No unnecessary issues are included into this pull request.

Ax's TensorboardCurveMetric is going away soon and is replaced by TensorboardMetric
Copy link

pytorch-bot bot commented Jul 30, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/2985

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit e428e6c with merge base a66464b (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@svekars svekars added the ax AX tutorials label Jul 30, 2024
Copy link
Contributor

@Balandat Balandat left a comment

Choose a reason for hiding this comment

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

What is the minimum Ax version with which this will work? May want to add this to the requirements so that this doesn't install an old version due to possible dependency version conflicts: https://github.com/pytorch/tutorials/blob/main/.ci/docker/requirements.txt#L33

Ensure Ax is a version with TensorboardMetric
Copy link
Contributor

@Balandat Balandat left a comment

Choose a reason for hiding this comment

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

Minor newline nit but otherwise lgtm, assuming build passes.

@mpolson64 were you able to run the tutorial locally to validate that this works as intended?

.ci/docker/requirements.txt Show resolved Hide resolved
@mpolson64
Copy link
Contributor Author

Minor newline nit but otherwise lgtm, assuming build passes.

@mpolson64 were you able to run the tutorial locally to validate that this works as intended?

Yup, ran totally fine on my conda env with minimal dependencies

@Balandat Balandat merged commit e4a47bf into pytorch:main Jul 31, 2024
20 checks passed
@mpolson64 mpolson64 deleted the patch-1 branch July 31, 2024 20:01
mpolson64 added a commit to mpolson64/Ax that referenced this pull request Aug 5, 2024
…nsorboardCurveMetric

Summary: D57922964 reaped the old TB integration, updating the tutorial to use the new TB integration. This is more or less identical to what we did for pytorch/tutorials here pytorch/tutorials#2985

Differential Revision: D60767153
mpolson64 added a commit to mpolson64/Ax that referenced this pull request Aug 5, 2024
…nsorboardCurveMetric (facebook#2635)

Summary:
Pull Request resolved: facebook#2635

D57922964 reaped the old TB integration, updating the tutorial to use the new TB integration. This is more or less identical to what we did for pytorch/tutorials here pytorch/tutorials#2985

Reviewed By: Balandat

Differential Revision: D60767153
mpolson64 added a commit to mpolson64/Ax that referenced this pull request Aug 5, 2024
…nsorboardCurveMetric (facebook#2635)

Summary:
Pull Request resolved: facebook#2635

D57922964 reaped the old TB integration, updating the tutorial to use the new TB integration. This is more or less identical to what we did for pytorch/tutorials here pytorch/tutorials#2985

Reviewed By: Balandat

Differential Revision: D60767153
mpolson64 added a commit to mpolson64/Ax that referenced this pull request Aug 5, 2024
…nsorboardCurveMetric (facebook#2635)

Summary:
Pull Request resolved: facebook#2635

D57922964 reaped the old TB integration, updating the tutorial to use the new TB integration. This is more or less identical to what we did for pytorch/tutorials here pytorch/tutorials#2985

Reviewed By: Balandat

Differential Revision: D60767153
facebook-github-bot pushed a commit to facebook/Ax that referenced this pull request Aug 5, 2024
…nsorboardCurveMetric (#2635)

Summary:
Pull Request resolved: #2635

D57922964 reaped the old TB integration, updating the tutorial to use the new TB integration. This is more or less identical to what we did for pytorch/tutorials here pytorch/tutorials#2985

Reviewed By: Balandat

Differential Revision: D60767153

fbshipit-source-id: fe2ca5db693ee51cad35ca79b076c283dc76da2f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ax AX tutorials cla signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants