Skip to main content

Mock library for triton python backend utils.

Project description

triton_python_backend_mock_utils

This is a mock library for the triton_python_backend_utils python package that is available inside a triton server python backend runtime. This mock library is intended to be used for local development and unit testing of triton python backend models outside the triton server container environment. This library attempts to replicate the interface of the triton_python_backend_utils package, but may not have full functionality or behavior of the original package. PRs are welcome to improve the mock library to better match the real package. Please see the contributing guide for contribution instructions and guidelines.

The need for this mock library was brought up in the following GitHub issue: https://github.com/triton-inference-server/server/issues/5813

Installation

You can install the mock library via pip:

pip install triton_python_backend_mock_utils

Usage

You can now import and use the triton_python_backend_utils module in your local python environment for type hints and unit testing. Please see the python backend documentation for more details on available functionality and usage.

You can reference our example model to see the usage which includes a __main__ block for local testing. You can run this model in your local python environment by running:

python examples/model.py

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

triton_python_backend_mock_utils-1.0.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file triton_python_backend_mock_utils-1.0.0.tar.gz.

File metadata

File hashes

Hashes for triton_python_backend_mock_utils-1.0.0.tar.gz
Algorithm Hash digest
SHA256 63492e74828d57f3ad6c5d4ae77fce41f76a26b95a6e231e42a197dd30850c18
MD5 80acd642d041d16d3aa66fd79cb83477
BLAKE2b-256 4453f00c206798f5794b75f5ea9fb20dbcadeaf8874b94163c5965a2099eb84a

See more details on using hashes here.

Provenance

The following attestation bundles were made for triton_python_backend_mock_utils-1.0.0.tar.gz:

Publisher: semantic_release.yaml on wwgrainger/triton_python_backend_mock_utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file triton_python_backend_mock_utils-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for triton_python_backend_mock_utils-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04d11285800d7969e9ba71d26f74aa0e80a9f7d0b4c98796f74c0c91a637f83b
MD5 efd08cb03316b09d32f75ce677cf09a7
BLAKE2b-256 50921c26c46794872a5a5d2716ad5e3c612f137a243c85d2431ae61d8e83d4f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for triton_python_backend_mock_utils-1.0.0-py3-none-any.whl:

Publisher: semantic_release.yaml on wwgrainger/triton_python_backend_mock_utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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