project descriptions here
Project description
windmilltritonv2
A client library for promote triton official client
Installation
pip install windmilltritonv2=0.5.0
Usage
First, you need to create a client object.
from windmilltritonv2.client_factory import TritonClientFactory
server_url = "localhost:8000"
http_client = TritonClientFactory.create_grpc_client(server_url)
or
async with TritonClientFactory.create_http_aio_client(server_url) as http_aio_client
or
grpc_client = TritonClientFactory.create_grpc_client(server_url)
or
async with TritonClientFactory.create_grpc_aio_client(server_url) as grpc_aio_client
In addition, you can set retry for grpc client:
client = TritonClientFactory.create_grpc_client(server_url, num_retries=3,max_interval_secs=20,base_interval_secs=0.3)
for http client we have default setting:
NUMBER_RETRIES = 3
MAX_INTERVAL_SECS = 20
BASE_INTERVAL_SECS = 0.3
Now you can easy use the client to send requests to the server.
for server:
client.server_live()
client.server_ready()
client.server_metadata()
for model:
client.model_metadata(model_name)
client.model_config(model_name)
client.model_ready(model_name)
client.model_statistics(model_name)
for infer:
client.model_infer(model_name, inputs, model_version, outputs)
client.stream_infer(inputs_iterator)
for repository:
client.repository_index()
client.repository_model_load(model_name)
client.repository_model_unload(model_name)
for system shared memory:
client.system_shared_memory_status()
client.system_shared_memory_register()
client.system_shared_memory_unregister()
for cuda shared memory:
client.cuda_shared_memory_status()
client.cuda_shared_memory_register()
client.cuda_shared_memory_unregister()
for trace setting:
client.trace_setting()
client.get_trace_settings()
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
Built Distribution
File details
Details for the file windmilltritonv2-0.5.0.tar.gz
.
File metadata
- Download URL: windmilltritonv2-0.5.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 245c1d85674865db1f93da2edd2bd3e8da3b222938c28c627383dad7bd012b5c |
|
MD5 | cbc46a9528507f25f471d12c2db0aa65 |
|
BLAKE2b-256 | 22e96ae38d754b584187f5eef1d0188bc32e08cd46f22467dcb86877d95ca207 |
File details
Details for the file windmilltritonv2-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: windmilltritonv2-0.5.0-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 019d481c46e78d9f4b0c64b7001fcd104422b67635222d2f0d551182d71be9a1 |
|
MD5 | 5f8c393f661af4016852819678c023c1 |
|
BLAKE2b-256 | 9dfb7fd5ee7632fe489a6c6ed62e1c3b7906d1448c7fd21a40f41d3b12d47022 |