test-models / README.md
vackva's picture
anira test models from anira-project/models a2e2521
f972938 verified
|
Raw History Blame Contribute Delete
2.02 kB
metadata
license: apache-2.0
library_name: anira
tags:
  - anira
  - test-model

anira test models

Dummy networks for testing anira and anira-project/models, not models anyone runs for their output. Each checks one thing exactly, with integer-valued or power-of-two arithmetic so every runtime agrees bit for bit.

Folder Networks Tests
simple-gain/ audio_out = audio_in * gain plus the peak; mono, stereo, 4 and 16 channels; a multi-method .pte the plain path, channel counts, static inputs
stateful-accumulator/ a running sum as an explicit state pair; mono, stereo, and a negated twin state fed back, switching models with the state kept
typed-gain/ the gain at int8, int16, float16; unplanned .pte; fixtures: the dtype matrix (10 ONNX) and a quantised int8 TFLite tensor dtypes end to end
variant-gain/ one Conv1d, three weights (half, double, invert) switching between models of one form

Layout: <folder>/<format>/<file>, with the formats onnx/ (ONNX Runtime), litert/ (LiteRT and TensorFlow Lite), libtorch/ (TorchScript), executorch/ (ExecuTorch; *_coreml.pte lowered to Core ML, *_vulkan.pte to Vulkan) and coreml/ (Core ML ML programs).

Source

Exported by the scripts in anira-project/models @ a2e2521, test-models/export/ (the network scripts, with torch 2.14 and ExecuTorch 1.5), and tools/export/ for the Core ML and Vulkan formats (ExecuTorch 1.3.1, coremltools 9.0). Every export is checked against the expected values or against ONNX Runtime when it is written. The anira descriptions and the catalogs with each file's SHA256 live with the code in test-models/<folder>/ there. Pin a revision when you download:

https://huggingface.co/anira-project/test-models/resolve/<revision>/simple-gain/onnx/simple_gain_network_mono.onnx

Licence

Apache-2.0: LICENSE.