-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Local deployment is not working on Windows 10 #1297
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
Comments
Hi, thank you for reaction. I tried version Code of the method for retrieving model artifacts ( |
Windows Support for Local Mode has been Experimental and unfortunately has never been fully supported or tested. Marking with a feature request label. |
Could you please provide more details about your use case for using local mode? Thank you! |
Hi, I thought I'd bring some more notice to this. The use case for me is for local testing. Currently, the only way to test is by using instances, storage, etc. It's noted in the blog here which are also perfectly valid use cases for windows machines. It can take some time just to debug as well as an extra expense. |
Describe the bug
Trained model artifacts are not downloaded from S3 during deploy on Windows 10.
To reproduce
Demonstrated on example from
https://github.com/awslabs/amazon-sagemaker-examples/blob/master/sagemaker-python-sdk/tensorflow_script_mode_training_and_serving/tensorflow_script_mode_training_and_serving.ipynb
Expected behavior
Model artifacts should be downloaded from S3 and accessible to serving container.
Screenshots or logs

System information
A description of your system. Please provide:
sagemaker==1.50.10.post0
3.7.6
Additional context
Problems comes from obtaining S3ModelArtifacts path in
\sagemaker\local\image.py
in method
def retrieve_artifacts(self, compose_data, output_data_config, job_name)
is artifact path returned using simple
return os.path.join(output_data, "model.tar.gz")
if this is called on Windows it produces something like:
../tensorflow-training-2020-02-19-15-57-14-207\model.tar.gz
when Sagemaker tries to download artifacts from S3 afterwards in
\sagemaker\utils.py
using method
def download_folder(bucket_name, prefix, target, sagemaker_session):
it fails to retrieve files calling
bucket.objects.filter(Prefix=prefix)
because of the
\
in front ofmodel.tar.gz
The text was updated successfully, but these errors were encountered: