vllm.model_executor.models.nemotron3_5_transcribe
¶
Inference-only NVIDIA Nemotron-3.5-Transcribe.
A NeMo speech-language model. The audio tower (log-mel, Parallel Expert
Encoder, projection; see nemotron3_5_transcribe_audio.py) turns each
80 ms of audio into one embedding, and those embeddings replace the
<|audio|> placeholders in the prompt of a NemotronH decoder (hybrid
Mamba, MoE and attention layers).
The checkpoint uses NeMo names: the audio tower under perception.*, the
decoder under llm.*, the multi-token-prediction head under llm.mtp.*
and an optional CTC timestamp head, which is not loaded, under
ctc_timestamp.*.
Classes:
-
Nemotron3_5TranscribeAudioInputs–Dimensions:
-
Nemotron3_5TranscribeForConditionalGeneration– -
Nemotron3_5TranscribeMTP–Multi-token-prediction draft head of Nemotron-3.5-Transcribe.
-
Nemotron3_5TranscribeProcessingInfo–
Nemotron3_5TranscribeAudioInputs
¶
Nemotron3_5TranscribeForConditionalGeneration
¶
Bases: Module, SupportsMultiModal, SupportsPP, IsHybrid, SupportsMambaPrefixCaching, SupportsEagle3, SupportsTranscription
Methods:
-
get_generation_prompt–The model card's transcription prompt, whatever the request's language.
get_generation_prompt(stt_params)
classmethod
¶
The model card's transcription prompt, whatever the request's language.
The prompt says "Language: as spoken" and the model detects the language. No published prompt names it, so the request's language is only validated.
Nemotron3_5TranscribeMTP
¶
Bases: NemotronHMTP, SupportsMultiModalEmbeddings
Multi-token-prediction draft head of Nemotron-3.5-Transcribe.
One attention-plus-MoE block, trained to be reused for every draft token.
It was trained on the decoder's input stream, so it receives the audio
embeddings at the <|audio|> positions, not the placeholder embedding.
Nemotron3_5TranscribeProcessingInfo
¶
Bases: BaseProcessingInfo
Methods:
-
get_audio_length_override–The audio length set with
--limit-mm-per-prompt, in samples. -
get_max_audio_samples–Longest audio whose embeddings fit in
seq_lenbeside a short prompt. -
get_min_num_samples–Shorter clips are zero-padded so that they yield one embedding.
get_audio_length_override()
¶
The audio length set with --limit-mm-per-prompt, in samples.
get_max_audio_samples(seq_len, override_samples=None)
¶
Longest audio whose embeddings fit in seq_len beside a short prompt.
get_min_num_samples()
¶
Shorter clips are zero-padded so that they yield one embedding.
_decoder_weights(weights, vocab_size)
¶
Shape the mapped decoder tensors for NemotronHForCausalLM.
NeMo packs the routed experts of each MoE layer into two tensors; the FP8 and NVFP4 checkpoints have one tensor per expert, with its quantization scales. The embedding and LM head are zero-padded to the decoder's padded vocabulary.
_max_audio_samples(audio_config, seq_len, override_samples)
¶
Longest audio whose embeddings fit in seq_len beside a short prompt.
_mtp_weights(weights)
¶
Select the MTP head's NeMo tensors and rename them for NemotronHMTP.
The head is llm.mtp.*; the drafter shares the target's embedding and LM
head.
_num_audio_embeddings(audio_config, num_samples)
¶
Embeddings the audio tower produces for num_samples samples.
_transcription_clip_s(audio_config, max_model_len)
¶
Longest piece /v1/audio/transcriptions sends: at most an hour, and short
enough that its embeddings and transcript fit in the context.
_unpack_experts(name, tensor)
¶
NeMo packs the routed experts of a MoE layer into one rank-3 tensor per projection; vLLM loads one transposed matrix per expert.