sit4onnx
Tools for simple inference testing using TensorRT, CUDA and OpenVINO CPU/GPU and CPU providers. Simple Inference Test for ONNX.
What it is and what it does
sit4onnx is a command-line and Python API tool for testing ONNX model inference across different hardware accelerators and execution providers. It accepts an ONNX model file and runs it repeatedly to measure average inference latency, with options to specify batch sizes, fixed input shapes, and custom test data via numpy arrays or .npy files. The tool supports TensorRT, CUDA, OpenVINO (CPU and GPU), and CPU-only execution, and can output performance profiling results and inference outputs to files.
The package is designed for model validation and benchmarking workflows where you need to verify that a model runs correctly on a target platform and measure its throughput or latency. It handles models with dynamic input shapes by allowing you to specify fixed dimensions, and it returns the final inference result as a numpy array when called from Python code.
Use it for:
- Benchmark an ONNX model's inference speed on TensorRT or CUDA before deploying to production.
- Validate that a model with dynamic input shapes runs correctly by specifying fixed dimensions and test data.
- Compare inference latency across different execution providers (CPU vs. GPU vs. TensorRT) on the same model.
- Profile a model's performance and export timing results to JSON for analysis and reporting.
- Test a model end-to-end with custom numpy array inputs to verify output correctness before integration.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Runs inference tests on ONNX models using TensorRT, CUDA, OpenVINO, or CPU execution providers, measuring performance and validating model outputs.
Yes, if you need to test and benchmark ONNX models across different execution providers. The low install friction and permissive license make it a practical choice. However, note that the package is aging (last commit 341 days ago) and you will need to separately install the execution provider libraries (TensorRT, OpenVINO, etc.) that you intend to use.
Install
sit4onnx on PyPI
pip
pip install sit4onnxuv
uv add sit4onnxpoetry
poetry add sit4onnxInstalling sit4onnx
Before you install
Low install friction with no runtime dependencies. Maintenance shows aging status—last commit was 341 days ago—but the repository remains active and unarchived.
License in practice
MIT License permits commercial and private use with minimal restrictions, making it suitable for most projects.
Quickstart
pip install sit4onnx
from sit4onnx import inference
results = inference(
input_onnx_file_path="model.onnx",
batch_size=10,
test_loop_count=10,
onnx_execution_provider="tensorrt"
)
Requires the target execution provider library (TensorRT, CUDA, OpenVINO, or onnxruntime CPU) to be installed separately; sit4onnx does not bundle these dependencies.
Verify before relying
- Whether onnxruntime or execution provider libraries (TensorRT, OpenVINO) are automatically installed or must be provided separately.
- Supported versions of TensorRT, CUDA, and OpenVINO beyond the requirement that Python be >=3.6.
- Whether profiling output format and structure are documented beyond the mention of .json files.
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 341 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 82,850/month — #14,125 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: sit4onnx-1.0.10-py3-none-any.whl
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
polygraphyPolygraphy is a toolkit for running inference…
permissive · top 15,000 on PyPI
ssi4onnxInfers and fills missing tensor shape…
permissive · top 15,000 on PyPI
ssc4onnxAnalyzes and displays the structure of ONNX…
permissive · top 15,000 on PyPI
tensorrt-cu12-libsProvides NVIDIA TensorRT libraries for CUDA 12…
unclear · top 15,000 on PyPI
onnxruntime-openvinoEnables ONNX Runtime to accelerate machine…
permissive · top 15,000 on PyPI
tensorrt-cu13Provides Python bindings for NVIDIA TensorRT, a…
unclear · top 15,000 on PyPI
tensorrt-cu12-bindingsProvides Python bindings for NVIDIA TensorRT…
unclear · top 15,000 on PyPI
inference-modelsLoads and runs computer vision models from…
unclear · top 15,000 on PyPI
onnxruntime-gpuExecutes ONNX machine learning models on GPU…
permissive · top 5,000 on PyPI
ncnnncnn is a neural network inference framework…
permissive · top 15,000 on PyPI