Repository navigation
Conversation
…m) from its bf16 weights, audio rows spliced after the embeds The checkpoint's llm.* tensors load as published: NeMo's layer names, fp32 A_log/D/dt_bias, the stacked [E, in, out] experts on the bf16 grouped format with the shared expert as experts E and E + 1, TE's empty _extra_state skipped. The audio encoder and CTC aligner tensors are left for the audio path. A prompt pass's audio rows replace the <|audio|> positions' embeddings, as image rows do.
The Bolt load-recovery tests build an Engine by hand and null each optional kernel set; bf16x was left undefined, so deinit unloaded a garbage module (seven tests crashed on Linux and Windows CI).
…nscribe (salm) checkpoint, with a test
The perception encoder as a family of its own (zig/src/families/nemo_audio): WAV decoding, log-mel features and their per-feature normalisation, the ASR and streaming speaker transformers window by window (speaker cache and queue with AOSC compression, arXiv 2507.18446), the sinusoidal speaker fusion and the projection to the language model's width. Weights read as stored (bf16), perception.* only. nemotron/cuda_audio.zig holds the encoder, prepares clips (samples, rows, hash) and encodes each span at a prompt pass, up to an hour of audio. tf-cuda-test audio-check writes every stage under the reference dumps' names; audio-contract runs nemo_audio.cu's kernels through gates 1-4, each with a control built from nemo_audio.cuh.
…ore_threshold as the release does, with brief-speaker tests A speaker's frame score is log max(p, pred_score_threshold) plus the other speakers' log(1 - p); frames under 0.5 never score. A score above log 0.5 is positive, and a speaker with floor(share x min_pos_scores_rate) positive scores keeps only those (share = (188 - 8 x silence rows) / 8, rounded down: 22 shipped, so 11). The latest boost and the strong and weak boost counts follow, from the same share. When fewer than 188 frames can score, the rest of the cache is silence rows, after the scored rows. Fitted to black-box NeMo dumps at several values of both keys and of spkcache_sil_frames_per_spk; the tests use window 0 of a brief-speaker clip and of a clip with 37 s of silence, against the release's own caches.
… engines The two hand-built engines in cuda_subset_batch_test.zig start from undefined; they now null the Transcribe fields as cuda_load_gpu.zig's do, so no test reads or unloads a garbage pointer.
… 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.
… re-pin kernels.zig for the nemo_audio image
…rerank route Each shape builds the existing rerank request and reads its results back: the same prompts, the same sigmoid(yes - no) scores and the same order, with TEI's raw_scores the label logit difference the score is the sigmoid of. A server whose model has no reranker labels, or whose engine has neither a score nor a decision hook, refuses them with HTTP 400 before any work. The routes join the inference key scope and only the two old aliases take PUT; a documents body at /rerank and /v1/rerank is unchanged. Host tests compare every shape with the existing response. Fixes #3174
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI for a landing train: #1631 #3755 #3203 #3761 #3773 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.