Skip to main content

Open source toolkit for helping create serving containers to run on Amazon SageMaker.

Project description

SageMaker Inference Toolkit is a library used for enabling serving within the SageMaker prebuilt deep learning framework containers.

This library is the serving subset of the SageMaker Containers library.

Currently, this library is used by the following containers:

Table of Contents

Getting Started

The main purpose of this library is to start up a model server within a container to enable serving on SageMaker.

This library assumes the following SageMaker inference requirements are met.

The following code block shows how to start the model server.

from sagemaker_inference import model_server

model_server.start_model_server(handler_service=HANDLER_SERVICE)

The HANDLER_SERVICE is a string literal that points to the Python path of a Python file that will be executed by the model server for incoming invocation requests. This Python script is responsible for handling incoming data and passing it on to the engine for inference. The Python file should define a handle method that acts as an entry point for execution, this function will be invoked by the model server on a inference request.

For more information on how to define your HANDLER_SERVICE file, see Custom Service.

Running tests

To run all tests:

tox

License

This library is licensed under the Apache 2.0 License. It is copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. The license is available at: http://aws.amazon.com/apache2.0/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sagemaker_inference-1.0.1.tar.gz (13.5 kB view details)

Uploaded Source

File details

Details for the file sagemaker_inference-1.0.1.tar.gz.

File metadata

  • Download URL: sagemaker_inference-1.0.1.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.4.1 requests/2.18.4 setuptools/36.2.7 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/2.7.13

File hashes

Hashes for sagemaker_inference-1.0.1.tar.gz
Algorithm Hash digest
SHA256 47e65ba542cef323ab0a9bea5b3db06e99f36963949ce7eff33f0ee45a83ea34
MD5 35d895c1a6b726dda537cd0e6231dbac
BLAKE2b-256 ce2a7bc884e97a5a0e2d66a5e7dabed4664621065b1a9d1fba30781fff13df93

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page