Runtime, Backend Test, and Kernel Examples#
Examples showing how to retrieve, inspect or run ONNX backend test cases
exposed by onnx_light.onnx.backend.
Benchmark a subset of backend test cases against onnxruntime
Benchmark the initialization steps: onnxruntime vs onnx-light
Builds, saves, and runs a small generation pipeline
Profile the runtime memory of a model with the event log
Quantizes and dequantizes selected pages of a KV cache
Replace a built-in kernel with a Python one and prove it ran
Retrieve a backend test case and display its model and data
Run a model with the runtime and inspect intermediate results
Run an ONNX model casting a float tensor into an int2 tensor
Run the reference evaluator with tensor, sequence and dictionary inputs/outputs
Statistics of float, integer, and quantized tensors