Skip to content

LinearLearner local mode - ShardedByS3Key is not currently supported in Local Mode #420

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

Closed
russau opened this issue Oct 4, 2018 · 2 comments

Comments

@russau
Copy link

russau commented Oct 4, 2018

Please fill out the form below.

System Information

  • Framework (e.g. TensorFlow) / Algorithm (e.g. KMeans): LinearLearner
  • Framework Version: sagemaker==1.11.0
  • Python Version: 3.6.5
  • CPU or GPU: CPU
  • Python SDK Version: sagemaker==1.11.0
  • Are you using a custom image: no

Describe the problem

Attempting to use the LinearLearner estimator in local mode throws the exception:

RuntimeError: DataDistribution: ShardedByS3Key is not currently supported in Local Mode

Minimal repro / logs

To repro I'm just taking the multiclass classifiers example and switching it use to local mode.

multiclass_estimator = sagemaker.LinearLearner(role=sagemaker.get_execution_role(),
                                               train_instance_count=1,
                                               train_instance_type='local',
                                               predictor_type='multiclass_classifier',
                                               num_classes=7)

Digging thru the code I see that amazon_estimator.py sets the s3_input to distribution='ShardedByS3Key'.

Is there a way to create a FullyReplicated recordset and get local mode working?

@iquintero
Copy link
Contributor

Hi @russau

Linear Learner is not supported in Local Mode (none of the Amazon 1P Algorithms are). These containers are not public and can't be pulled into your local environment.

apacker pushed a commit to apacker/sagemaker-python-sdk that referenced this issue Nov 15, 2018
Update KMS encryption notebook to include volume encryption
laurenyu added a commit to laurenyu/sagemaker-python-sdk that referenced this issue Dec 20, 2018
@laurenyu
Copy link
Contributor

Added documentation in #575 - going to close this issue now. Feel free to reopen if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants