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

Local Mode does not work on Sagemaker Studio #1419

Closed
bloodywolf3 opened this issue Aug 18, 2020 · 3 comments
Closed

Local Mode does not work on Sagemaker Studio #1419

bloodywolf3 opened this issue Aug 18, 2020 · 3 comments

Comments

@bloodywolf3
Copy link

bloodywolf3 commented Aug 18, 2020

Describe the bug
I am trying to do training in a local container by running the example python notebook: mxnet_gluon_mnist/mxnet_mnist_with_gluon_local_mode.ipynb

To reproduce
A clear, step-by-step set of instructions to reproduce the bug.
In the sagemaker studio window

Select a) MXNET GPU optimized kernel and b) ml.g4dn.xlarge instance

  1. Running the script: !/bin/bash ./setup.sh
    The output is ./setup.sh: line 3: sudo: command not found
    The user does not have root access. Everything required to run the notebook is already installed and setup. We are good to go!
  2. Run m.fit(inputs)
    The output is ImportError: 'docker-compose' is not installed. Local Mode features will not work without docker-compose. For more information on how to install 'docker-compose', please, see https://docs.docker.com/compose/install/

System information
SageMaker Python SDK version:
Framework name (eg. PyTorch) or algorithm (eg. KMeans): MXNET GPU optimized kernel
Framework version:
Python version: 3
CPU or GPU: ml.g4dn.xlarge
Custom Docker image (Y/N): N

@chuyang-deng
Copy link
Contributor

Hi @bloodywolf3, docker itself will not work on Studio notebooks as Studio Notebooks run inside docker containers. You could try to run this example on SageMaker Notebook instance instead.

@seanpmorgan
Copy link
Contributor

Closing. As mentioned Studio runs inside of docker so in order to build images you can either use this utility:
https://github.com/aws-samples/sagemaker-studio-image-build-cli

Or build them outside of studio (in SM notebooks, locally with aws cli) and continue with the example after it's been pushed to ECR.

@samadwar
Copy link
Contributor

samadwar commented Mar 7, 2022

I have written an article describing a solution that makes it possible to use 'Local Mode' in SageMaker Studio. Apologies for opening a closed issue, but adding this for completeness.

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

No branches or pull requests

4 participants