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

Updating torch version to latest stable release - 1.6.0 #3452

Merged
merged 7 commits into from
Oct 14, 2020

Conversation

shrinath-suresh
Copy link
Contributor

What changes are proposed in this pull request?

Updating torch version to recent stable release - 1.6.0.

How is this patch tested?

Verified mlflow/tests/pytorch/test_pytorch_model_export.py and mlflow/examples/pytorch/mnist_tensorboard_artifact.py with pytorch 1.6.0.

Release Notes

Is this a user-facing change?

  • No. You can skip the rest of this section.
  • Yes. Give a description of this change to be included in the release notes for MLflow users.

(Details in 1-2 sentences. You can just refer to another PR with a description if this PR is part of a larger change.)

What component(s), interfaces, languages, and integrations does this PR affect?

Components

  • area/artifacts: Artifact stores and artifact logging
  • area/build: Build and test infrastructure for MLflow
  • area/docs: MLflow documentation pages
  • area/examples: Example code
  • area/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registry
  • area/models: MLmodel format, model serialization/deserialization, flavors
  • area/projects: MLproject format, project running backends
  • area/scoring: Local serving, model deployment tools, spark UDFs
  • area/server-infra: MLflow server, JavaScript dev server
  • area/tracking: Tracking Service, tracking client APIs, autologging

Interface

  • area/uiux: Front-end, user experience, JavaScript, plotting
  • area/docker: Docker use across MLflow's components, such as MLflow Projects and MLflow Models
  • area/sqlalchemy: Use of SQLAlchemy in the Tracking Service or Model Registry
  • area/windows: Windows support

Language

  • language/r: R APIs and clients
  • language/java: Java APIs and clients
  • language/new: Proposals for new client languages

Integrations

  • integrations/azure: Azure and Azure ML integrations
  • integrations/sagemaker: SageMaker integrations
  • integrations/databricks: Databricks integrations

How should the PR be classified in the release notes? Choose one:

  • rn/breaking-change - The PR will be mentioned in the "Breaking Changes" section
  • rn/none - No description will be included. The PR will be mentioned only by the PR number in the "Small Bugfixes and Documentation Updates" section
  • rn/feature - A new user-facing feature worth mentioning in the release notes
  • rn/bug-fix - A user-facing bug fix worth mentioning in the release notes
  • rn/documentation - A user-facing documentation change worth mentioning in the release notes

Signed-off-by: Shrinath Suresh <shrinath@ideas2it.com>
@github-actions github-actions bot added area/models MLmodel format, model serialization/deserialization, flavors rn/none List under Small Changes in Changelogs. labels Sep 23, 2020
Copy link
Collaborator

@smurching smurching left a comment

Choose a reason for hiding this comment

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

@shrinath-suresh thanks for the PR! We should definitely make sure we test against the latest pytorch :) (cc @apurva-koti who was also looking at bumping test dependency versions). It looks like one of the unit tests fails with torch 1.6.0 - would you have bandwidth to take a look at why?

Copy link
Collaborator

@smurching smurching left a comment

Choose a reason for hiding this comment

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

LGTM if we can fix the test breakage!

@shrinath-suresh
Copy link
Contributor Author

shrinath-suresh commented Sep 30, 2020

@shrinath-suresh thanks for the PR! We should definitely make sure we test against the latest pytorch :) (cc @apurva-koti who was also looking at bumping test dependency versions). It looks like one of the unit tests fails with torch 1.6.0 - would you have bandwidth to take a look at why?

@smurching Sure. I will debug and let you know.

@shrinath-suresh
Copy link
Contributor Author

@smurching Shall we update the cloud pickle version too ? Eventhough we are going to remove it from main script, cloud pickle is still used for the test script (where user wants to override default pickle argument) . Moreover, I am facing error when using mlflow.pytorch.log_model with the model trained with pytorch lightning (not seeing the error with latest version of cloud pickle). Let me know your thoughts on it.

…ad mechanism where pickle_module.load is called

Signed-off-by: Shrinath Suresh <shrinath@ideas2it.com>
@shrinath-suresh
Copy link
Contributor Author

@shrinath-suresh thanks for the PR! We should definitely make sure we test against the latest pytorch :) (cc @apurva-koti who was also looking at bumping test dependency versions). It looks like one of the unit tests fails with torch 1.6.0 - would you have bandwidth to take a look at why?

@smurching Sure. I will debug and let you know.

@smurching Figured out the reason why test_load_model_allows_user_to_override_pickle_module_via_keyword_argument is getting failed.

torch 1.6 saves the model as zip file and uses _load method and in turn uses pickle_module.Unpickler to load the model.

whereas in torch 1.4 , torch.load loads via _legacy_load and uses pickle_module.load to load the model.

Test case is passing locally by setting mlflow_torch_pickle_load to mlflow_pytorch_pickle_module.Unpickler.

Signed-off-by: Shrinath Suresh <shrinath@ideas2it.com>
@shrinath-suresh
Copy link
Contributor Author

@apurva-koti @smurching Getting some random linting failure - (mlflow/mlflow/pytorch/pickle_module.py). should i need to push any dummy change to restart the linting build or is there any other way to re-run the build ?

@apurva-koti
Copy link
Collaborator

@shrinath-suresh , you can re-run the build by clicking on the details link in the failed check, and pressing the "re-run workflows" button on the checks page.

@shrinath-suresh
Copy link
Contributor Author

@shrinath-suresh , you can re-run the build by clicking on the details link in the failed check, and pressing the "re-run workflows" button on the checks page.

@apurva-koti I dont see the "re-run workflows" button on the checks page (may be due to lack of permission ??). i will try command line option to add one more commit.
github

Signed-off-by: Shrinath Suresh <shrinath@ideas2it.com>
Signed-off-by: Shrinath Suresh <shrinath@ideas2it.com>
@apurva-koti
Copy link
Collaborator

Ah sorry! Probably a permissions issue. Let me take a look at this now you've addressed the lint issue.

Copy link
Collaborator

@apurva-koti apurva-koti left a comment

Choose a reason for hiding this comment

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

LGTM. Current failures are on master and unrelated to this PR.

Thanks @shrinath-suresh !

Signed-off-by: Sid Murching <sid.murching@databricks.com>
Signed-off-by: Sid Murching <sid.murching@databricks.com>
@shrinath-suresh
Copy link
Contributor Author

@smurching Thank you very much. Can we merge the PR if the changes are fine?

Copy link
Collaborator

@smurching smurching left a comment

Choose a reason for hiding this comment

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

LGTM

@smurching smurching merged commit 469ae40 into mlflow:master Oct 14, 2020
@smurching
Copy link
Collaborator

@shrinath-suresh yes! Done :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/models MLmodel format, model serialization/deserialization, flavors rn/none List under Small Changes in Changelogs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants