Repository navigation
Nemotron 3.5 Transcribe: audio input, the 65,536-token window, an hour of audio, MTP drafts - #1632
Conversation
06b023c to
ba10f75
Compare
ba10f75 to
3ae00f5
Compare
3ae00f5 to
a18905c
Compare
|
Rebased onto d377fcc (with #1630 and #1631 under it). Two changes for lean, both pure moves:
Checked on the pushed head: fmt, lean (0 new) and On a GB10 (first rebase, d887be514 against the pre-rebase head 3ae00f5):
On an RTX 5090 (dd7cc1a06, with #1769's brace fix on top, which main needs to build CUDA at all): |
a18905c to
540e914
Compare
|
Rebased onto fbbc20d. Main's YaRN work added Checked on the pushed head: fmt, lean (0 new) and |
|
Thanks @BobClawblaw. The hour-long WER table and the drafted-equals-plain receipts are what we'd want, and keeping the 160 MiB body limit to the audio engine is right. This lands with #1631 once #1630 is rebased. Thanks also for spotting main's |
540e914 to
6cf8925
Compare
|
Restacked onto #1631's 282c782; the head is now 6cf8925. One change beyond the restack: main's commits since took |
|
Thanks @BobClawblaw. The restack and the |
6cf8925 to
ef3cb87
Compare
|
Thanks @BobClawblaw: nothing is owed here. Every server audio branch is gated on |
ef3cb87 to
4780f22
Compare
|
Thanks @BobClawblaw: the push restacks only (the diff is byte-identical to what we reviewed), and nothing is owed from you. The stack lands in order (#1630, #1631, #1632) after our GB10 run, which needs Transcribe's BF16 release on a box first. |
|
Regression check on our GB10s, main against this stack's head: GREEN on Nemotron 3.5 Lightning and on Nemotron 3.5 Bolt (0 prompt rows differ, prompt and decode level), so the Transcribe stack leaves the Nemotron models we already serve unchanged. The Transcribe run itself still needs its BF16 release on a box. |
|
@BobClawblaw, the third regression check is in: Nemotron 3.5 Super-VL 120B-A12B NVFP4 on a GB10, main against Tokens are exact (0 of 20 prompt rows differ), prompt speed is level, and every cell is level or better, except one:
Lightning and Bolt showed nothing like this. Since only the sampled code cell moves, something on the Super-VL path may run per sampled token (the sampler, a vision or audio check, an MTP draft gate). Could you look for anything the stack adds to that path when no audio is attached? Separately, the PR now conflicts with main. Please rebase it, and I'll rerun the Super-VL cell on the new head. |
708163c to
5cb70df
Compare
|
An update from our side, @BobClawblaw: we rebased this onto current main (two one-line registry additions, nothing else changed) and compared main against it on a GB10 with Nemotron 3.5 Super-VL and Nemotron 3.5 Lightning. Every generated token matched and no cell was slower, so the shared Nemotron paths are unchanged. What remains is the audio side: the generated token IDs with and without drafts, for both audio input forms, on this head. We do not hold the Transcribe checkpoint, so that receipt has to come from you.
|
|
Thanks, and thanks for the rebase and the Super-VL and Lightning comparison. Here are the generated token IDs on this head (5cb70df), on a GB10, with and without drafts and in both audio input forms. How it was run. This head's
Each server got the recipe's ten reference clips, each sent four times:
Every request used the model-card ASR prompt, greedy decoding, thinking off and Result. On every clip, all 12 runs (3 servers × 2 forms × drafted and serial) returned the same generated token IDs, compared ID for ID. They also returned the same
That is 1,410 generated tokens a run, the same count as the earlier receipt. Summed over the 20 requests of each kind (both forms), drafted requests took 48.71 s with the default drafts, 54.09 s with |
|
Thanks @BobClawblaw. The new receipt compares generated IDs with serial decoding for both audio forms, across the default and both MTP settings. It answers the remaining audio request; the shared Super-VL and Lightning regression result is credited too. No further change or repeated device run is requested from you. The current registration and comment conflicts are mechanical and can be handled during integration, followed by the normal final CI checks.
|
5cb70df to
eb98442
Compare
… main Engine.record and its body move to cuda_seq_graphs.zig, Forward's lesson adapter call to cuda_lesson_trace.zig, and tf-cuda-test imports chunk_costs and nemotron_draw_tests where they run, as window-profile and tree-accept do. No behaviour changes.
…#1631); re-pin kernels.zig for the nemo_audio image
…o_url WAV parts), encoded at each request's prompt pass, rows keyed by clip in the prompt cache
… a request (160 MiB chat bodies when the engine takes audio), MTP drafts with the clip's rows in the head
… audio input), its index row and the API's audio parts
The video decoder check and the audio locator's binding run from input_types.start, beside the media they decide, so server.zig stays at 600 lines; stream.zig's two loop-guard tests join long_loop_test.zig. No behaviour changes.
Main's input_types (ashhart#3004) publishes text, image and video; a Transcribe server now adds "audio" after them, and the request media reads the same answer. Other models' lists are unchanged.
…cuda_seq_graphs and fmt the resolved files
…, as the other Nemotron checkpoints do
eb98442 to
aefee74
Compare
|
Thank you @BobClawblaw. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
What this changes
Closes #1549. The server takes audio for Nemotron 3.5 Transcribe:
input_audioand vLLMaudio_urldata-URL parts, with 16 kHz mono WAV in user messages.Recipe:
docs/recipes/nemotron-3.5-transcribe.md. Stacked on #1631, whose encoder was rewritten clean-room (seethere).
How the audio input was written
The clip placement (
server/audio.zig:part,forTemplate,expandand their tests) was rewritten clean-room,as the encoder was. The writer had a copy of the tree with no git history and the old code removed, and was barred
from NeMo, vLLM and any other speech library's source. It had the checkpoint's
README.md,config.json(
audio_locator_tag),tokenizer_config.json(the chat template),tokenizer.json, and NeMo's dumped prompts(
prompt_<clip>.json: the rendered template, its ids, the placeholder's index and the expanded ids). It opened no webpage. The old placement code is gone from every commit in the stack.
forTemplate: the chat template moves a user message's leading"<|audio|>\n"prefixes behind its text and writesits own
<|audio|>. TensorFold's renderer tracks which bytes came from the request, so only the template's ownlocator becomes the audio token. A message with audio becomes one prefix per clip, then its text parts. Rendered
through TensorFold's template engine, the card's request gives the dumps' 52 ids exactly, and a Python render of the
template matches
template_idson all ten dumps.expand: each<|audio|>id becomes the clip's rows, as the dumps'expanded_idsshow. It followsimages.zigfor positions,
history_lenand the request's limits. Each clip's budget is the request's remaining rows, so arequest holds an hour of audio in all however it is split. A clip's prompt-cache words carry a hash of its samples.
A locator count that does not match the clips is refused.
server/audio.zigbindLocatorfrom the card (an hour of audio) andconfig.json'saudio_locator_tagserver/messages.zig,prompt.zig,tokens.zig,warm.zig,chat.zig,http_body.zig,openai.zig,server.zigcore/engine_vision.zig,engine_api.zig,lanes/stream.zig,lane_host_*.zig,lane_stream.zigVisionoffer and image fields beside them: anAudioOfferand a request's clips carried as its images arenative/cuda_vision_offer.zig,nemotron/cuda_audio.zigcuda_vision.zig's begin/end/splice: a clip's WAV to samples and rows (the encoder'sprepare), its rows spliced into the prompt passnemotron/cuda_native_transcribe.zig,cuda_native.zig,cuda_families.zig,native/cuda.zigconfig.json'smodel_typenemo_speechlm; the family table's other entriesnemotron/cuda_engine.zig,cuda_lanes.zig,cuda_prompt.zig,cuda_segments.zignemotron/cuda_mtp.zigAudio.splice), applied to the head's embeddings. The choice to give the head the rows was first made after reading NeMo's MTP training code; you asked to keep itThe sessions that first wrote the files after
server/audio.zigkept no reading log. The table says what each fileuses, and apart from the MTP splice above, none needs anything beyond TensorFold's own image path, the card and
config.json.Receipt
--context 65536, greedy, thinking off, the card'sverbatim prompt with an empty system prompt. Measured on
897de303d(the stack on mainf0d8c8d50). The head6f2f64e59is the same stack rebased on main6c5cef894, plus Nemotron 3.5 Transcribe on CUDA: the language model and the audio encoder #1631's speaker-cache keys and a one-decimal budgetrefusal. On it the ten clips (drafted and
--no-drafts, both forms), the refusals and the encoder stages were runagain: bit-identical encoder stages, the same replies and prompt lengths, and the same refusals.
SUMMARY 658 kernels: 658 pass gates 1-4, 0 fail, 8 known findings; 424 controls: 424 red as planted, 0 missed; 488 limit problems; the limit problems are all in other families' launches.--no-drafts. The server admits 8 streams at the fullwindow.
replies are identical to
--no-draftson all ten. Sent asaudio_urlthey give the same replies asinput_audio,and the replies and prompt lengths equal those of the previous head (before the clean-room placement).
--no-draftson all three; the drafts kept 78%, 74% and74% of their proposals (1,680 of 2,162, 4,555 of 6,185, 9,904 of 13,376). The hour's reply equals the previous
head's.
--no-drafts--prompt-cache-gib 0gives the same replies as the default server on every check: seededsampling (twice, identical each time), speaker tags on two speakers, translation to German and French, language
identification, two audio questions, thinking on, a two-turn chat, and the Anthropic route with text. The two-turn
chat's second turn resumed 96 of 153 prompt tokens, past the clip. A repeated 11-minute request resumed 8,812 of
8,818 tokens and answered its first token in 0.30 s instead of 4.16 s.
32.1, 40.0 and 6.0 s alone, and each reply was identical to its solo run.
bytes that are not a WAV each get HTTP 400 with
invalid_request_errorand a message naming the problem ("must be sampled at 16 kHz", "must be mono", "is shorterthan 20 ms", "could not be decoded; send a WAV file (16, 24 or 32-bit PCM or 32-bit float, 16 kHz, mono)").
tools/bench_concurrent.py --tokens 256 --reps 3 --temperatures 0 --levels 1,4 --alone --serial(default server, drafts on): code and chat prompts at 1 and 4 streams, alone 3/3, 12/12, 3/3 and 12/12 equal,
serial against
"draft": falseequal in every cell.tools/bench_concurrent.py --tokens 256 --reps 3 --temperatures 0 --levels 1,4,8, the stack on mainf6d311cfcagainst the stack onf0d8c8d50, alternated, two rounds each; aggregatetok/s): code 48.8 / 48.7 against 48.8 / 48.8 at one stream, 149.8 / 149.5 against 151.8 / 152.0 at four, 263.0 /
262.9 against 266.6 / 263.0 at eight; chat 52.1 / 52.0 against 51.8 / 51.6, 144.2 / 144.1 against 139.1 / 139.1,
288.2 / 290.6 against 288.3 / 288.0. Only chat at four streams moves (3.5% lower, the same in both rounds); the
stack's own changes between the two do not touch decode.
tools/bench_openai.py --tokens 256 --reps 3 --temperatures 0: 48.6 tok/s (fibonacci-raw) and51.6 tok/s (gpu-chat-no-think), medians of three.
tools/bench_cache.py --require-coldwith--prompt-cache-gib 0(text token prompts, threerequests each, all with 0 cached): first token in 0.78 s at 2,048 tokens, 2.86 s at 8,192, 12.17 s at 32,768 and
23.96 s at 60,000.
Nemotron checkpoints was run on this head.
the recipe).
Overlap
atc overlap --jsonafter this rebase (2026-11-12, the stack on main6c5cef894) found conflicts with four PRs. A mergecheck against each of them, and against the three it found last time, gives these files; all are shared registration
lists, the backend table or the contract doc, and whichever lands second rebases.
native/cuda_families.zig,tests/cuda/contract_limits.zig.kernels/cuda/contract_controls_set.cu,core/contract/registry_joins.zig,tests/cuda/contract_limits.zig.kernels/cuda/contract_controls_set.cu,core/contract/registry_joins.zig,tests/cuda/contract_family_sets.zig.core/contract/registry_joins.zig,tests/cuda/contract_limits.zig.native/cuda.zig.docs/kernel-contract.md.Its scan hit its PR, file and time limits (326 of 336 overlaps unchecked), so it is incomplete.