Skip to main content

ReDimNet2 ONNX

CI status Publish status PyPI Python License Documentation ONNX Model Ruff Pylint Checked with mypy

Run the official PalabraAI ReDimNet2 speaker-verification models with ONNX Runtime. All 20 published checkpoints are available and produce L2-normalized 192-dimensional embeddings.

Installation

For raw 16 kHz audio on CPU:

pip install "redimnet2-onnx[cpu,waveform]"

Other supported setups:

Use case Installation
Mel features on CPU pip install "redimnet2-onnx[cpu]"
Mel features on NVIDIA CUDA pip install "redimnet2-onnx[cuda]"
Raw waveform on CPU pip install "redimnet2-onnx[cpu,waveform]"
Raw waveform on CUDA/TensorRT pip install "redimnet2-onnx[cuda,waveform]"
Intel OpenVINO pip install "redimnet2-onnx[openvino]"
Windows DirectML pip install "redimnet2-onnx[directml]"
Qualcomm QNN pip install "redimnet2-onnx[qnn]"

Quick Start

Pass a mono 16 kHz waveform as a NumPy array or PyTorch tensor. Audio must be between 1 and 30 seconds.

from redimnet2_onnx import load_model

model = load_model("b6-vb2+vox2_v0-lm")
embedding = model.embed(waveform)

print(embedding.shape)  # (1, 192)

Models are downloaded once from the versioned GitHub Release, cached locally, and verified with SHA-256.

To compare two voices, use cosine similarity. The embeddings are already normalized:

similarity = (embedding_a @ embedding_b.T).item()

Models

List the available checkpoints:

from redimnet2_onnx import available_models, load_model

print(available_models())
model = load_model("b6-vb2+vox2_v0-lm")

Mel Features

PyTorch is optional when mel features are produced elsewhere. The ONNX input is FP32 [1, 1, 72, T], where T must be divisible by four and represent approximately 1-30 seconds of audio.

from redimnet2_onnx import load_model

model = load_model("b6-vb2+vox2_v0-lm", providers=["CUDAExecutionProvider"])
embedding = model.embed_features(features)

TensorRT

For ONNX Runtime TensorRT EP with FP16, CUDA I/O binding, and persistent engine caches:

from redimnet2_onnx.tensorrt import load_tensorrt_model

model = load_tensorrt_model("b6-vb2+vox2_v0-lm")
embedding = model.embed(waveform_tensor)

This requires compatible CUDA and TensorRT libraries on the host. The TensorRT Python package is not required.

See the documentation for the complete API reference.

Metadata

Release files for redimnet2-onnx 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for redimnet2-onnx 0.2.0
File Size Uploaded Provenance
redimnet2_onnx-0.2.0.tar.gz 154.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for redimnet2-onnx 0.2.0
File Interpreter ABI Platform
redimnet2_onnx-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 168.1 kB

Release files / redimnet2_onnx-0.2.0.tar.gz

Download URL redimnet2_onnx-0.2.0.tar.gz
Size 154.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d70d6291e246f9fd82379e8687df493cd50449d4527a69fecfc9bfc38e469415
BLAKE2b-256 checksum
How to use checksums
1d2b4e3ad8ee47f0b4d7c82ea9f257f3db003291faec004cfaa432c6986c99cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

Release files / redimnet2_onnx-0.2.0-py3-none-any.whl

Download URL redimnet2_onnx-0.2.0-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e95b01b044daa178de68a13e0becdc101250cc087eacf13e6c26143b8653d5e1
BLAKE2b-256 checksum
How to use checksums
f9ce632b7cb102575b9c88e37e612c3748a89a6279ab15f14b20c9825d698470
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

Security for redimnet2-onnx 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for redimnet2_onnx-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page