New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tritonv2

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tritonv2

project descriptions here

  • 1.3.5.1
  • PyPI
  • Socket score

Maintainers
1

tritonv2

A client library for promote triton official client

Installation

pip install tritonv2==1.3.5.1

Usage

First, you need to create a client object.

from tritonv2.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()

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc