sit4onnx
Tools for simple inference testing using TensorRT, CUDA and OpenVINO CPU/GPU and CPU providers. Simple Inference Test for ONNX.
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires the target execution provider library (TensorRT, CUDA, OpenVINO, or onnxruntime CPU) to be installed separately; sit4onnx does not bundle these dependencies.
- 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 · maintenance · safety
MIT License (permissive) — MIT License permits commercial and private use with minimal restrictions, making it suitable for most projects.
last release 2025-09-07 (341 days) · last repo commit 2025-09-07 · 25 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 82,850 downloads/mo, #14,125 on PyPI
Alternatives
Verify before relying
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"
)- 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.
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 on it.
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
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.
Requires the target execution provider library (TensorRT, CUDA, OpenVINO, or onnxruntime CPU) to be installed separately; sit4onnx does not bundle these dependencies.
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"
)
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
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “onnx model inference testing”
- sit4onnxRuns inference tests on ONNX models using TensorRT, CUDA, OpenVINO,…
- polygraphyPolygraphy is a toolkit for running inference across multiple deep…
- onnx-weeklyonnx-weekly provides a Python package for working with ONNX (Open…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also polygraphy · ssi4onnx · ssc4onnx · tensorrt-cu12-libs · onnxruntime-openvino · tensorrt-cu13 · tensorrt-cu12-bindings · inference-models · onnxruntime-gpu · ncnn