snac-sweep-0.1.2 is not a library.
snac-sweep
Benchmark sweep for ONNX decoder inference: varies sessions (parallel sessions), chunk size (sequence length without context), and batch size to find the largest throughput (sessions × batch) under real-time factor (RTF) < 1.
Install
Usage
- context-size (default
3): number of context windows added to sequence length. - max-chunk-size (default
5): max chunk size to sweep (seq_len from 1..=M). - model (default
decoder_model_fp16.onnx): model file under https://huggingface.co/onnx-community/snac_24khz-ONNX/tree/main/onnx.
RTF calculation is based on 24kHz sample rate.
Example