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
¶
Bases: TensorSchema
Dimensions: - b: Number of audio clips - t: Number of samples (16 kHz)
Source code in vllm/model_executor/models/nemotron3_5_transcribe.py
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.
Source code in vllm/model_executor/models/nemotron3_5_transcribe.py
401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 | |
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.
Source code in vllm/model_executor/models/nemotron3_5_transcribe.py
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.
Source code in vllm/model_executor/models/nemotron3_5_transcribe.py
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.
Source code in vllm/model_executor/models/nemotron3_5_transcribe.py
get_audio_length_override()
¶
The audio length set with --limit-mm-per-prompt, in samples.
Source code in vllm/model_executor/models/nemotron3_5_transcribe.py
get_max_audio_samples(seq_len, override_samples=None)
¶
Longest audio whose embeddings fit in seq_len beside a short prompt.
Source code in vllm/model_executor/models/nemotron3_5_transcribe.py
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.
Source code in vllm/model_executor/models/nemotron3_5_transcribe.py
_max_audio_samples(audio_config, seq_len, override_samples)
¶
Longest audio whose embeddings fit in seq_len beside a short prompt.
Source code in vllm/model_executor/models/nemotron3_5_transcribe.py
_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.
Source code in vllm/model_executor/models/nemotron3_5_transcribe.py
_num_audio_embeddings(audio_config, num_samples)
¶
Embeddings the audio tower produces for num_samples samples.
Source code in vllm/model_executor/models/nemotron3_5_transcribe.py
_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.
Source code in vllm/model_executor/models/nemotron3_5_transcribe.py
_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.