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
# Serializes data and makes a prediction request to the local endpoint
172
+
response = predictor.predict(data)
173
+
174
+
# Tears down the endpoint container
175
+
mxnet_estimator.delete_endpoint()
176
+
177
+
178
+
For detailed examples of running docker in local mode, see:
179
+
180
+
- `TensorFlow local mode example notebook <https://github.com/awslabs/amazon-sagemaker-examples/blob/master/sagemaker-python-sdk/tensorflow_distributed_mnist/tensorflow_local_mode_mnist.ipynb>`__.
181
+
- `MXNet local mode example notebook <https://github.com/awslabs/amazon-sagemaker-examples/blob/master/sagemaker-python-sdk/mxnet_gluon_mnist/mnist_with_gluon_local_mode.ipynb>`__.
182
+
183
+
A few important notes:
184
+
185
+
- Only one local mode endpoint can be running at a time
186
+
- Since the data are pulled from S3 to your local environment, please ensure you have sufficient space.
187
+
- If you run into problems, this is often due to different docker containers conflicting. Killing these containers and re-running often solves your problems.
188
+
- Local Mode requires docker-compose and `nvidia-docker2 <https://github.com/NVIDIA/nvidia-docker>`__ for ``local_gpu``.
0 commit comments