-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Let Framework models reuse code uploaded by Framework estimators #230
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #230 +/- ##
==========================================
- Coverage 92.53% 92.29% -0.25%
==========================================
Files 49 49
Lines 3257 3259 +2
==========================================
- Hits 3014 3008 -6
- Misses 243 251 +8
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! thanks for submitting this!
@laurenyu great that you approved this. I was trying to be helpful and updating the branch for merge but github seems to think I ignored your previous approval - also the teamcity didn't seem to be super happy - not sure whether it was because of the merge failure or something else. |
@humanzz GitHub dismisses approval whenever there's a new commit. The TeamCity tests failed for the local mode tests - when running local mode, there's no uploaded code, so it wasn't finding
That was an oversight on my part as well. Can you add some logic to handle the local mode case? |
- This addresses problem 1 in #226 - This relies on the tar_and_upload_dir's behaviour when given S3 paths for directory - This updates MXNet, TensorFlow and Chainer frameworks
@laurenyu I've pushed a change that uses the correct value for This brings me to the question: is there any way for me to run the integ tests? or to at least view the teamcity results without having to force you to paste the details here to just let me know it's not working? |
src/sagemaker/estimator.py
Outdated
@@ -579,6 +579,14 @@ def _stage_user_code_in_s3(self): | |||
script=self.entry_point, | |||
directory=self.source_dir) | |||
|
|||
def _model_source_dir(self): | |||
""" Gets the appropriate value to pass as source_dir to model constructor on deploying |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the space after the """
Remove unnecessary comment space
you can run the integ tests locally as long as you have AWS credentials set up for your own account - there's some more detail here: https://github.com/aws/sagemaker-python-sdk#getting-sagemaker-python-sdk |
@laurenyu travis-ci seem to be stuck and blocking teamcity. It'd be great if you can force it as I cannot. |
maybe something was just hanging for a bit? I didn't touch Travis/TC but it seems to have worked |
CHANGELOG.rst
Outdated
@@ -10,6 +10,7 @@ CHANGELOG | |||
* feature: Allow Local Serving of Models in S3 | |||
* enhancement: Allow option for ``HyperparameterTuner`` to not include estimator metadata in job | |||
* bug-fix: Estimators: Join tensorboard thread after fitting | |||
* enhancement: Let Framework models reuse code uploaded by Framework estimators |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, sorry to nitpick - this was just sort of unfortunate timing - but we just released v1.5.0. could you make a new version entry in the changelog for this?
@laurenyu unfortunate but fine. I've updated the CHANGELOG and added support to the newly released PyTorch as well. Let's hope we can merge this in before any other major updates happen :) I hope you also get a chance to have a look at the releated PR at #228 as it hasn't got anyone's attention yet. With it, we can close #226 |
- Update CHANGELOG entry to be under 1.5.1dev - Handle the newly added PyTorch framework
I've also sent a PR at #246 to slightly improve the README for running tests. I feel it's not specific enough as in what should the permissions for the credentials and the role be to ensure tests can run but I felt it's at least better than the lack of any mentions about these prerequisites. |
This change adds import statements in the __init__ files of the `sagemaker` package and the `sklearn` package to make it easier for users to import Processor classes.
This change adds import statements in the __init__ files of the `sagemaker` package and the `sklearn` package to make it easier for users to import Processor classes.
This change adds import statements in the __init__ files of the `sagemaker` package and the `sklearn` package to make it easier for users to import Processor classes.
Issue #, if available: #226
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.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.