Skip to content

update pytorch_local_mode_cifar10.ipynb to 1.7.1 #2078

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

Merged
merged 1 commit into from
Mar 15, 2021
Merged

update pytorch_local_mode_cifar10.ipynb to 1.7.1 #2078

merged 1 commit into from
Mar 15, 2021

Conversation

ChoiByungWook
Copy link
Contributor

@ChoiByungWook ChoiByungWook commented Mar 13, 2021

Issue #, if available:
The following pull requests in the SageMaker Python SDK repository are failing due to notebook tests in regards to this notebook:

These notebooks are failing, as some of the older PyTorch images starting from 1.4.0 and above have been updated and the sagemaker_containers library was removed unintentionally:

Description of changes:
Update pytorch_local_mode_cifar10.ipynb to use the PyTorch 1.7.1 images for training and inference.

Update references for sagemaker_containers to sagemaker_training and sagemaker_inference.

Testing
I have attached an html of a successfully run notebook with the changes defined below.

test.zip

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@ChoiByungWook ChoiByungWook marked this pull request as ready for review March 13, 2021 21:38
@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: amazon-sagemaker-examples-pr
  • Commit ID: 895f8b9
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@ChoiByungWook
Copy link
Contributor Author

ChoiByungWook commented Mar 13, 2021

AWS CodeBuild CI Report

  • CodeBuild project: amazon-sagemaker-examples-pr
  • Commit ID: 895f8b9
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

The CI tests are failing due to torch not being in the PyTorch conda environment ¯_(ツ)_/¯

*      kernel: Environment (conda_pytorch_p27)
*
*      status: Failed     
*

---------------------------------------------------------------------------
Exception encountered at "In [4]":
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-4-ed75feccdc2b> in <module>
----> 1 from utils_cifar import get_train_data_loader, get_test_data_loader, imshow, classes
      2 
      3 trainloader = get_train_data_loader()
      4 testloader = get_test_data_loader()

/opt/ml/processing/input/utils_cifar.py in <module>
----> 1 import torch
      2 import torchvision
      3 import torchvision.transforms as transforms
      4 import matplotlib.pyplot as plt
      5 import numpy as np

ModuleNotFoundError: No module named 'torch'

ahsan-z-khan
ahsan-z-khan previously approved these changes Mar 13, 2021
@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: amazon-sagemaker-examples-pr
  • Commit ID: 895f8b9
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@ahsan-z-khan ahsan-z-khan dismissed their stale review March 15, 2021 16:27

failing test

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: amazon-sagemaker-examples-pr
  • Commit ID: 895f8b9
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: amazon-sagemaker-examples-pr
  • Commit ID: 895f8b9
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: amazon-sagemaker-examples-pr
  • Commit ID: 895f8b9
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: amazon-sagemaker-examples-pr
  • Commit ID: 895f8b9
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@icywang86rui icywang86rui merged commit 26b5182 into aws:master Mar 15, 2021
@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: amazon-sagemaker-examples-pr
  • Commit ID: 895f8b9
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: amazon-sagemaker-examples-pr
  • Commit ID: 895f8b9
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

sujitahirrao added a commit to sujitahirrao/amazon-sagemaker-examples that referenced this pull request Mar 16, 2021
update pytorch_local_mode_cifar10.ipynb to 1.7.1 (aws#2078)
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.

4 participants