Skip to content

Add an example for local mode deployment of models #304

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 2 commits into from
Jul 20, 2018

Conversation

iquintero
Copy link
Contributor

If there is an existing model it can be deployed locally
using local mode. This feature is already present but there
is no example in the README.

Issue #, if available:

Description of changes:

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have updated the changelog with a description of my changes (if appropriate)
  • I have updated any necessary documentation (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@iquintero iquintero requested a review from laurenyu July 18, 2018 18:11
@iquintero iquintero force-pushed the local_model_model_doc_update branch from aebcfb4 to 1778849 Compare July 18, 2018 18:12
@codecov-io
Copy link

codecov-io commented Jul 18, 2018

Codecov Report

Merging #304 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #304   +/-   ##
=======================================
  Coverage   92.75%   92.75%           
=======================================
  Files          50       50           
  Lines        3466     3466           
=======================================
  Hits         3215     3215           
  Misses        251      251

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2fa160c...f263abc. Read the comment docs.

README.rst Outdated
@@ -192,6 +192,24 @@ instance type.
mxnet_estimator.delete_endpoint()


If you have an existing model and would like to deploy it locally you can do that as well. Make sure
you don't pass a real sagemaker_session to the Model constructor.
Copy link
Contributor

Choose a reason for hiding this comment

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

my natural question to "don't pass a real one" is "what should I pass instead?" Maybe instead something like "make sure you don't pass anything for the sagemaker_session arg in the Model constructor"?

If there is an existing model it can be deployed locally
using local mode. This feature is already present but there
is no example in the README.
@iquintero iquintero force-pushed the local_model_model_doc_update branch from 1778849 to 2540a55 Compare July 18, 2018 23:16
@@ -192,6 +192,30 @@ instance type.
mxnet_estimator.delete_endpoint()


If you have an existing model and would like to deploy it locally you can do that as well. If you don't
specify a sagemaker_session argument to the MXNetModel constructor, the right session will be generated
when calling model.deploy()
Copy link
Contributor

Choose a reason for hiding this comment

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

This still sounds like a choice to me - shouldn't we just instruct the user to not supply a session object? (or would there be a reason for a user to want to construct a local session separately?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is similar to how the rest of the SDK works. they can provide their own Local Session if they want, with custom config settings.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what is a better wording ?

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe something like "This requires a Local Session (maybe include a link to documentation?) to run. If you don't specify..." or "If you want to specify a sagemaker session, make sure it's a local session"

@iquintero iquintero merged commit b943baa into aws:master Jul 20, 2018
@iquintero iquintero deleted the local_model_model_doc_update branch July 20, 2018 20:36
apacker pushed a commit to apacker/sagemaker-python-sdk that referenced this pull request Nov 15, 2018
Add missing comma in tf cifar notebook.
knakad added a commit to knakad/sagemaker-python-sdk that referenced this pull request Dec 4, 2019
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.

3 participants