Skip to content

community: add Nemotron 3.5 Transcribe 30B-A4B - #1137

Merged
0xShug0 merged 12 commits into
0xShug0:mainfrom
JarodMica:nemotron-transcribe-30b-a4b
Oct 31, 2026
Merged

0xShug0 merged 12 commits into
0xShug0:mainfrom
JarodMica:nemotron-transcribe-30b-a4b

Conversation

@JarodMica

@JarodMica JarodMica commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Adds nemotron_transcribe, an experimental community port of NVIDIA Nemotron 3.5 Transcribe 30B-A4B. The offline ASR route supports transcription, translation, audio Q&A, language identification, source-word timestamps and speaker labels. This architecture is separate from the existing 0.6B nemotron_asr family.

Implementation

  • Model-local parallel speech/speaker encoder, Nemotron-H Mamba/attention/MoE decoder and CTC alignment using stock GGML. The PR has no GGML or backend changes relative to upstream.
  • Checkpoint/HF frontend constants, including the trained BF16 Hann window, plus an opt-in BPE callback for the model-local Unicode Tekken splitter. Existing tokenizer defaults, shared variable names and parameters are preserved.
  • Model-spec v1, embedded decoder assets, paired encoder loading, model-local validation and storage-aware memory estimates. The only additional catalog precision value is plain q3_k.
  • Full-source BF16 export and strict quantization/packaging tools. K profiles pad only routed-bank input columns to 256-element blocks, with matching zero activations. The converter verifies actual tensor types, pairing and unchanged floating-point payloads. IQ4_NL stays unpadded. NVIDIA's patched kernels, MTP and DFlash are outside this port.

Download packages

Community GGUF downloads and model-manager entries provide four routed expert profiles:

Profile Decoder bytes
IQ4_NL 20,370,389,728
Q4_K 21,672,721,184
Q3_K 17,294,261,024
Q2_K 13,946,026,784

The Q3_K and Q4_K expert files use _K_S filenames for Hub selector compatibility. Their custom mixed tensor profiles and payloads are unchanged.

All use Q8_0 dense decoder linears and preserved BF16/F32 tensors. Download one decoder and its required 1,670,410,080-byte FP16 speech encoder/FP32 CTC companion. The encoder uses an auxiliary mmproj- filename; the loader also accepts the original native name. Specs, configs, tokenizer, trained window and notices are embedded. Padded K files require this community adapter. Conversion starts from the full BF16 release, not the NVFP4 package.

The model guide contains build, conversion and task examples. Validation details provide pinned source versions, synthetic input texts, commands and observed outputs.

Validation

  • Fixed the reported Vulkan encoder NORM rejection by materializing strided Q/K inputs. The original error was reproduced on actual Vulkan with the llvmpipe software driver; the corrected small encoder completed repeated requests and input-shape changes. A CPU regression enforces the same layout requirement with both attention paths. Released-encoder CPU fixture outputs remain byte-identical, and Windows CLI/server builds plus seven focused CTests pass. Full-model hardware Vulkan execution remains untested.

Native Windows validation used MSVC 14.44, CUDA 12.8.61, RTX PRO 6000 Blackwell 96 GB and an i9-13900K.

Preliminary testing included a Japanese anime episode, compared with an unquantized BF16 decoder in the same audio.cpp setup.

  • All four release files passed CUDA task checks on synthetic fixtures covering English/Japanese transcription, translation, Q&A, language ID, speaker-tagged dialogue, silence, token-limit reporting and repeated requests. These full-model release checks used source revision f4834b80522c028237bc9d96783bc630f0ce8e7a.
  • Nine initial paired text outputs matched the pinned unpatched NVIDIA C++ reference after speaker-marker removal and whitespace normalization. CPU transcription with timestamps and 24 HTTP checks also passed, including malformed input, multipart upload, 48 kHz stereo and unload/reload.
  • Component checks cover the actual HF feature extractor, real encoder/CTC weights, decoder math/reset, 3,522 tokenizer cases and 14 prompt ID pairs. Six self-generated K-converter tests passed with the pristine pinned quantizer. The exported encoder reproduced the existing encoder byte for byte.
  • Upstream f64cfb5f2e0c9132f8d85281a4ec55d080313698 is merged. CLI/server CUDA builds and all seven focused C++ tests pass. The updated four-package schema and asset contract also pass native metadata checks. The validation record identifies the earlier GCC CPU coverage.

Recorded English checks for the initial IQ4_NL package, with word timestamps. Processing excludes model loading.

Input and backend Audio Processing Real-time factor Matched reference words
Short English, CUDA 7.330 s 0.556 s 0.076 15/15
Short English, CPU, four threads 7.330 s 6.250 s 0.853 15/15
Distinct two-speaker English, CUDA 49.055 s 1.232 s 0.025 129/129

Real-time factor is processing time divided by audio duration. Matching ignores case, punctuation and speaker markers. All four released expert profiles also matched these same 15-word and 129-word fixtures. These are small synthetic checks, not held-out English accuracy estimates; other workloads were active. The repeated-sentence and timestamp limitations below still apply.

Limitations

Word times and speaker boundaries remain experimental. CTC can place a later turn's leading word in earlier activity despite a complete transcript. Native/port timing differences also reflect the reference C++ frontend's legacy window policy; this port follows checkpoint/HF preprocessing.

Both implementations omit one sentence pair in a four-repeat synthetic fixture. The distinct 49-second dialogue includes all eight turns. Caller-managed 30-second clips are documented for longer inputs; separate requests reset speaker identities and may split words.

Actual hour-long accuracy, broad multilingual accuracy and full-model Metal/Vulkan execution remain untested. Streaming and native batching are not exposed. Recordings and private benchmark results are excluded from GitHub and the HF release.

Prepared with Codex assistance. Assisted commits include an AI-Assisted-By trailer.

Add an offline community model for transcription, translation, audio questions,
language identification, CTC word timestamps and speaker-tagged transcription.
Use stock GGML with model-local Nemotron-H and parallel speech encoder graphs,
the exact checkpoint frontend constants and self-contained GGUF packaging.

Add an opt-in BPE pretokenizer hook for the checkpoint's Unicode-aware Tekken
splitter, preserving existing tokenizer defaults. Include conversion recipes,
license notices, validation records and synthetic regression tests.

AI-Assisted-By: Codex (OpenAI)
Reject malformed requests before the silence gate, preserve original audio
timestamp clocks during model-local PCM normalization, and price storage
overrides before weight uploads. Keep successful text when CTC fallback fails.

Guard decoder/encoder graph sizes and allocation recovery, and reject malformed
alignment evidence. Add tiny-network regression coverage and minimize the opt-in
BPE hook while preserving existing names, parameters and tokenizer defaults.

AI-Assisted-By: Codex (OpenAI)
Support package-controlled input-row padding for routed experts while keeping
logical widths and the unpadded path unchanged. Export the floating-point
decoder and paired speech/CTC encoder from the pinned full checkpoint.

Provide streamed shared-cache quantization with actual tensor-type, pairing,
payload and package audits, plus self-generated CPU regression tests and
conversion instructions. Keep the adaptation inside this community model.

AI-Assisted-By: Codex (OpenAI)
AI-Assisted-By: Codex (OpenAI)
@fractal-fumbler

Copy link
Copy Markdown

On vulkan i've encountered error

audiocpp_cli failed: Nemotron Transcribe encoder contains unsupported backend op 'NORM' at node 9 tensor 'node_9'

build commit is 3a0dd44
Model is nemotron-transcribe-30b-a4b-experts-Q4_K_S.gguf

@0xShug0

0xShug0 commented Oct 31, 2026

Copy link
Copy Markdown
Owner

@JarodMica Ping me when the PR is ready.

Make encoder Q/K normalization compatible with the contiguous input required by Vulkan. Keep the adaptation model-local, preserve weights and normalization settings, and add a CPU regression that enforces the Vulkan contract for both attention paths.

AI-Assisted-By: Codex (OpenAI)
@JarodMica
JarodMica marked this pull request as ready for review October 31, 2026 18:20
@JarodMica

Copy link
Copy Markdown
Contributor Author

@fractal-fumbler I believe this should be fixed now, I did a quick validation with codex and pushed a fix.

@0xShug0 should be ready for review now!

@0xShug0

0xShug0 commented Oct 31, 2026

Copy link
Copy Markdown
Owner

Thanks for all the work on this @JarodMica! The PR lays a solid foundation. Merged!

I'll add CPU offloading tonight.

@0xShug0
0xShug0 merged commit ad14f0c into 0xShug0:main Oct 31, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants