Skip to main content

Triton Inference Server Model

Simple package to run inference with Triton Inference Server easily.

pip install trism
# Or
pip install https://github.com/hieupth/trism

How to use

# Create triton model.
model = TritonModel(
  model="my_model",     # Model name.
  version=0,            # Model version.
  url="localhost:8001", # Triton Server URL.
  grpc=True             # Use gRPC or Http.
)
# View metadata.
for inp in model.inputs:
  print(f"name: {inp.name}, shape: {inp.shape}, datatype: {inp.dtype}\n")
for out in model.outputs:
  print(f"name: {out.name}, shape: {out.shape}, datatype: {out.dtype}\n")
# Inference.
outputs = model.run(data = [np.array(...)])

License

GNU AGPL v3.0.
Copyright © 2024 Hieu Pham. All rights reserved.

Download files

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

Source Distribution

trism-0.0.1.post1.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

trism-0.0.1.post1-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file trism-0.0.1.post1.tar.gz.

File metadata

  • Download URL: trism-0.0.1.post1.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for trism-0.0.1.post1.tar.gz
Algorithm Hash digest
SHA256 dd158b2e9ce7f88d3ea2e7255bcfdba1f5e28eda6c2fcb1b9c2474f6278489ca
MD5 e664e8ff5dfb3f3402ff7705c2f41e22
BLAKE2b-256 0980670405e89e3030280e4006a9c4e13733dc778ffd96059e6af11297b72a93

See more details on using hashes here.

File details

Details for the file trism-0.0.1.post1-py3-none-any.whl.

File metadata

  • Download URL: trism-0.0.1.post1-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for trism-0.0.1.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d41753f238ea75e268f63d0570af8d4084fd00ffccf02b13f06b48a7456b185
MD5 a3948483c6c100dcd678b2812e4df23c
BLAKE2b-256 b99bf31f5c5b3eec051bf0bd5d85c8c72aa1aee489cde33d62138866dc3fdee0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1.post1 This release

2 files

0.0.1

2 files

Supported by

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