You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 23, 2024. It is now read-only.
I'm creating and deploying a TensorFlow v1.12 estimator via the SageMaker SDK, which creates code/ folder with inference.py and requirements.txt in the model.tar.gz folder. Simplified setup as below:
estimator=TensorFlow(
entry_point="train.py",
source_dir="src",
framework_version="1.12",
py_version="py3",
input_mode="Pipe", # (PipeModeDataset only supports up to TFv1.12 atm)
)
estimator.fit()
predictor=estimator.deploy(
endpoint_type="tensorflow-serving",
)
My requirements include matplotlib (using their RGB/HSV conversion utilities to pre-process model inputs), and I get the following error when calling deploy():
Collecting matplotlib (from -r /opt/ml/model/code/requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/4a/30/eb8e7dd8e3609f05c6920fa82f189302c832e5a0f6667aa96f952056bc0c/matplotlib-3.2.1.tar.gz (40.3MB)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-u7sdl9if/matplotlib/setup.py", line 139
raise IOError(f"Failed to download jquery-ui. Please download "
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-u7sdl9if/matplotlib/
You are using pip version 8.1.1, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
ERROR:__main__:failed to install required packages, exiting.
I understand from matplotlib/matplotlib#17075 that this was due to bumping the required Python version up to 3.6: But I'm using the same requirements.txt at training time and it's working fine there.
Since users don't get fine-grained control over the Python version (just py3), IMHO the training and serving containers should at least sync to the same version to prevent weird compatibility issues like this?
It looks like the training container takes some specific steps to ensure particular Python version, whereas this inference container just takes what it inherits from tensorflow/serving and nvidia/cuda
The text was updated successfully, but these errors were encountered:
I'm creating and deploying a TensorFlow v1.12 estimator via the SageMaker SDK, which creates
code/
folder withinference.py
andrequirements.txt
in themodel.tar.gz
folder. Simplified setup as below:My requirements include
matplotlib
(using their RGB/HSV conversion utilities to pre-process model inputs), and I get the following error when callingdeploy()
:I understand from matplotlib/matplotlib#17075 that this was due to bumping the required Python version up to 3.6: But I'm using the same requirements.txt at training time and it's working fine there.
Since users don't get fine-grained control over the Python version (just
py3
), IMHO the training and serving containers should at least sync to the same version to prevent weird compatibility issues like this?It looks like the training container takes some specific steps to ensure particular Python version, whereas this inference container just takes what it inherits from
tensorflow/serving
andnvidia/cuda
The text was updated successfully, but these errors were encountered: