implement business logic scripting (bls) in a triton python backend model to call other models

domain: docs.nvidia.com/deeplearning/triton-inference-server · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Write a Python backend model (BLS available since Triton 21.08+) that uses BLS utility functions inside the execute() function to issue inference requests to other models served by the same Triton instance
  2. Construct an InferenceRequest object targeting the downstream model name/version and execute it synchronously or asynchronously depending on latency needs
  3. Chain multiple BLS calls to implement conditional or sequential multi-model logic entirely inside one Python model, rather than requiring the client to orchestrate calls
  4. Since Triton 23.04, set preferred_memory_type (GPU or CPU) via a PreferredMemory object on the InferenceRequest to control where BLS output tensors land
  5. Test both the synchronous and asynchronous BLS example patterns from the python_backend repo to pick the right concurrency model for your pipeline

Known gotchas

Related routes

Implement a custom Triton Python backend model for pre/post-processing
docs.nvidia.com/deeplearning/triton-inference-server · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans