Nemotron 3.5 speaker encoder (GGUF)
The speaker-detection branch of NVIDIA Nemotron 3.5 Transcribe 30B-A4B, cut down to 201 MB from a 1.67 GB encoder file.
It detects who speaks when. It cannot transcribe. The speech branch's weights are zeros, so it has no use for anything else.
This is an unofficial derivative. It is not made, tested or endorsed by NVIDIA.
| File | Bytes | SHA-256 |
|---|---|---|
NVIDIA-Nemotron-3.5-Transcribe-30B-A4B-Speaker-Encoder-F16.gguf | 200,779,392 | 657afaeac267f6f8f38501927a354eeac1da19b34b87f10c71d320eb5bb757c5 |
Provenance
- Weights:
nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B, revisionc17667641642c4265ff2b7037dd101b7d4567634,model.safetensors. Only theperception.*andctc_timestamp.*byte ranges are read. - Tools:
conversion/of NVIDIA/NeMo-Speech.cpp v0.3.0 (commit20999cc921d2b14aa58708f61756a8b2e787ba20), and llama.cpp'sgguf-pyat the commit it pins (bd4f514db14d87fded667787a7a963bfbaa98e89). - Script:
make-speaker-models.pyin this repository runs the whole process.
What changed
The official conversion runs first and writes the whole encoder file. The script then rewrites it:
| Part | Tensors | Here |
|---|---|---|
| Speaker branch | diar.*, preprocessor.fb, fusion.diar_norm.* | NVIDIA's weights, as the official conversion writes them (F16 and F32). Not quantized. |
| Speech branch | asr.*, the other fusion.* | One layer of 128 dimensions, all zeros (the original has 32 layers of 1280). |
| CTC timestamp head | ctc.* | One layer of 128 dimensions, all zeros. Its tokenizer keeps only its first 3 pieces. |
The program still loads and runs these stand-ins, so they stay in the file. The speaker result does not read them. The head size stays at 64, the size the speaker branch itself uses, because GPU backends accept only some head sizes in flash attention.
Use
With NeMo-Speech.cpp 0.3.0, serve it with a decoder file and ask the diarization route:
nemo-speech serve --asr-model DECODER.gguf --salm-encoder NVIDIA-Nemotron-3.5-Transcribe-30B-A4B-Speaker-Encoder-F16.gguf \
--no-warmup --asr.salm.mtp_draft 0
curl -F file=@audio.wav http://127.0.0.1:PORT/v1/audio/diarizations
The decoder is never used for an answer, but the program requires one of the same checkpoint. make-speaker-models.py writes speaker-decoder-head.gguf: NVIDIA's vocabulary and settings with a table of one layer. Extend it with zeros to 445,521,952 bytes and pass it as DECODER.gguf. --no-warmup is required, because the warm-up decodes. Requests take up to one hour of audio.
Measurements
Compared with NVIDIA's whole encoder converted by the same tools, with the same stand-in decoder, on one recording, on an Apple M5 Pro with 48 GB of memory and nemo-speech 0.3.0.
| Audio, device | Speaker turns | Time, whole encoder | Time, this file | Peak RSS, whole encoder | Peak RSS, this file |
|---|---|---|---|---|---|
| 4 h 13 min in overlapping requests, Metal | identical (12,158) | 79.5 s | 26.6 s | 3.19 GB | 3.16 GB |
| 1 hour, CPU | identical (2,869) | 111.6 s | 32.7 s | 5.00 GB | 2.85 GB |
Identical means the JSON answers match, byte for byte for the CPU runs and turn by turn for the 4-hour runs.
Four 2-minute clips, a 5-minute clip and a 1-hour clip on Metal, and a 2-minute and a 5-minute clip on CPU, also match. The 1-hour clip takes 3.8 s on Metal.
These figures show that this file agrees with the whole model. They say nothing about how accurate the model is: there is no ground truth here and no person checked the results. Results differ slightly between Metal and CPU. Only Metal and the CPU on macOS were run; Vulkan and CUDA were not.
License
OpenMDW-1.1, the license of the original model. THIRD_PARTY_NOTICES.md is the original model's notice file, unchanged.