[New Model] support nemotron Audex (#4976)

Signed-off-by: Yuekai Zhang <zhangyuekai@foxmail.com>
Signed-off-by: Yueqian Lin <linyueqian@outlook.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Yueqian Lin <linyueqian@outlook.com>
Co-authored-by: Yueqian Lin <70319226+linyueqian@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-07-28 03:58:22 +00:00
1 parent f2c5152df0
commit 5014fea4a0
64 files changed
+7760 -39

No files matched your search

+65
View File
@@ -0,0 +1,65 @@
# Audex (Nemotron-Labs-Audex-2B) full deploy: cascaded speech-to-speech.
#
# One audio-capable thinker (checkpoint_folder_full) serves the official
# three-pass cascade — (1) ASR: audio -> transcript, (2) chat: transcript ->
# answer, (3) TTS: answer -> speech — plus the streaming causal speech
# decoder as stage 1. Per-request output modalities route the passes: text
# passes finish at stage 0; only audio-modality requests stream codec frames
# into code2wav. CFG applies to the TTS pass via extra_params.cfg_scale
# (recommended 1.5; 1.0 = off).
pipeline: audex_s2s
async_chunk: true
connectors:
connector_of_shared_memory:
name: SharedMemoryConnector
extra:
shm_threshold_bytes: 65536
codec_streaming: true
connector_get_sleep_s: 0.01
connector_get_max_wait_first_chunk: 3000
connector_get_max_wait: 300
codec_chunk_frames: 25
initial_codec_chunk_frames: 1
codec_token_offset: 131077
codec_vocab_size: 65536
decoder_emit_chunk_frames: 5
stages:
- stage_id: 0
max_num_seqs: 8
gpu_memory_utilization: 0.5
trust_remote_code: true
enable_prefix_caching: true
async_scheduling: true
max_num_batched_tokens: 8192
# Sound embeddings (up to 30 clips x 750) + speech-token generation.
max_model_len: 32768
dtype: bfloat16
devices: "0"
logits_processors:
- "vllm_omni.model_executor.models.audex.cfg:AudexCFGLogitsProcessor"
output_connectors:
to_stage_1: connector_of_shared_memory
default_sampling_params:
temperature: 0.1
top_k: 80
max_tokens: 2048
seed: 0
- stage_id: 1
max_num_seqs: 8
gpu_memory_utilization: 0.25
enforce_eager: true
trust_remote_code: true
enable_prefix_caching: false
async_scheduling: false
max_num_batched_tokens: 8192
max_model_len: 8192
devices: "0"
input_connectors:
from_stage_0: connector_of_shared_memory
default_sampling_params:
temperature: 0.0
max_tokens: 8192
seed: 0
+60
View File
@@ -0,0 +1,60 @@
# Audex 30B-A3B full deploy: cascaded speech-to-speech.
# See audex_s2s.yaml for the cascade/routing notes and audex_tts_30b.yaml
# for the 30B sizing notes (hybrid Mamba: no prefix caching; single-H100
# layout, TP2 fallback; pass this yaml explicitly).
pipeline: audex_s2s
async_chunk: true
connectors:
connector_of_shared_memory:
name: SharedMemoryConnector
extra:
shm_threshold_bytes: 65536
codec_streaming: true
connector_get_sleep_s: 0.01
connector_get_max_wait_first_chunk: 3000
connector_get_max_wait: 300
codec_chunk_frames: 25
initial_codec_chunk_frames: 1
codec_token_offset: 131077
codec_vocab_size: 65536
decoder_emit_chunk_frames: 5
stages:
- stage_id: 0
max_num_seqs: 8
gpu_memory_utilization: 0.85
trust_remote_code: true
enable_prefix_caching: false
async_scheduling: true
max_num_batched_tokens: 8192
# Sound embeddings (up to 30 clips x 750) + speech-token generation.
max_model_len: 32768
dtype: bfloat16
devices: "0"
logits_processors:
- "vllm_omni.model_executor.models.audex.cfg:AudexCFGLogitsProcessor"
output_connectors:
to_stage_1: connector_of_shared_memory
default_sampling_params:
temperature: 0.1
top_k: 80
max_tokens: 2048
seed: 0
- stage_id: 1
max_num_seqs: 8
gpu_memory_utilization: 0.08
enforce_eager: true
trust_remote_code: true
enable_prefix_caching: false
async_scheduling: false
max_num_batched_tokens: 8192
max_model_len: 8192
devices: "0"
input_connectors:
from_stage_0: connector_of_shared_memory
default_sampling_params:
temperature: 0.0
max_tokens: 8192
seed: 0
+25
View File
@@ -0,0 +1,25 @@
# Audex (Nemotron-Labs-Audex-2B) thinker-only deploy: audio understanding
# (ASR / audio QA) -> text. Single-stage configuration of the audio-capable
# full checkpoint (checkpoint_folder_full): NV-Whisper encoder + relu2
# projector + 2B dense LM.
#
# The official audioqa script decodes ASR at temperature 0; max_tokens 256
# covers transcription and short QA answers (raise for long-form answers).
pipeline: audex_thinker_only
async_chunk: false
stages:
- stage_id: 0
max_num_seqs: 8
gpu_memory_utilization: 0.7
trust_remote_code: true
enable_prefix_caching: true
max_num_batched_tokens: 8192
# 30 clips x 750 sound embeddings (900 s cap) + text headroom.
max_model_len: 32768
dtype: bfloat16
devices: "0"
default_sampling_params:
temperature: 0.0
max_tokens: 256
seed: 0
@@ -0,0 +1,22 @@
# Audex 30B-A3B thinker-only deploy: audio understanding (ASR / audio QA).
# Single-stage NemotronHAudexForConditionalGeneration on
# checkpoint_folder_full. Hybrid Mamba: no prefix caching. Pass this yaml
# explicitly (see audex_tts_30b.yaml).
pipeline: audex_thinker_only
async_chunk: false
stages:
- stage_id: 0
max_num_seqs: 8
gpu_memory_utilization: 0.9
trust_remote_code: true
enable_prefix_caching: false
max_num_batched_tokens: 8192
# 30 clips x 750 sound embeddings (900 s cap) + text headroom.
max_model_len: 32768
dtype: bfloat16
devices: "0"
default_sampling_params:
temperature: 0.0
max_tokens: 256
seed: 0
+69
View File
@@ -0,0 +1,69 @@
# Audex (Nemotron-Labs-Audex-2B) text-to-audio deploy: TTA thinker → XCodec1.
#
# Notable choices:
# * Sync full-payload (async_chunk: false): XCodec1 is a CNN codec the
# official flow decodes over the full sequence; there is no streaming
# reference and chunked decode risks boundary artifacts.
# * Stage 0 sampling defaults follow the official TTA script (temperature
# 1.0, top_k 80; stop on <audiogen_end>; codec cap 4000 tokens = 1000
# frames generated, decode truncates at 500 frames ≈ 10 s).
# * Classifier-free guidance is effectively mandatory for TTA quality; the
# official default is cfg_scale 3.0. The RVQ phase mask is required for
# validity — both logits processors are registered here and driven per
# request via extra_args (cfg_* and tta_rvq).
# * Stage 1's model is the EXTERNAL hf-audio XCodec1 checkpoint (override
# with a local path here or via XCODEC1_PATH); its tokenizer is borrowed
# from the thinker checkpoint automatically.
pipeline: audex_tta
async_chunk: false
connectors:
connector_of_shared_memory:
name: SharedMemoryConnector
extra:
shm_threshold_bytes: 65536
connector_get_sleep_s: 0.01
connector_get_max_wait_first_chunk: 3000
connector_get_max_wait: 300
audiocodec_token_offset: 196613
audiocodec_vocab_size: 8192
stages:
- stage_id: 0
max_num_seqs: 8
gpu_memory_utilization: 0.4
trust_remote_code: true
enable_prefix_caching: true
async_scheduling: true
max_num_batched_tokens: 512
max_model_len: 8192
dtype: bfloat16
devices: "0"
logits_processors:
- "vllm_omni.model_executor.models.audex.cfg:AudexCFGLogitsProcessor"
- "vllm_omni.model_executor.models.audex.tta:TTARVQPhaseMaskLogitsProcessor"
output_connectors:
to_stage_1: connector_of_shared_memory
default_sampling_params:
temperature: 1.0
top_k: 80
max_tokens: 4200
seed: 0
- stage_id: 1
model: hf-audio/xcodec-hubert-general-balanced
max_num_seqs: 8
gpu_memory_utilization: 0.25
enforce_eager: true
trust_remote_code: true
enable_prefix_caching: false
async_scheduling: false
max_num_batched_tokens: 8192
max_model_len: 8192
devices: "0"
input_connectors:
from_stage_0: connector_of_shared_memory
default_sampling_params:
temperature: 0.0
max_tokens: 8192
seed: 0
+57
View File
@@ -0,0 +1,57 @@
# Audex 30B-A3B text-to-audio deploy: TTA thinker → XCodec1.
# See audex_tta.yaml for the task notes and audex_tts_30b.yaml for the
# 30B sizing notes (hybrid Mamba: no prefix caching; single-H100 layout,
# TP2 fallback; pass this yaml explicitly).
pipeline: audex_tta
async_chunk: false
connectors:
connector_of_shared_memory:
name: SharedMemoryConnector
extra:
shm_threshold_bytes: 65536
connector_get_sleep_s: 0.01
connector_get_max_wait_first_chunk: 3000
connector_get_max_wait: 300
audiocodec_token_offset: 196613
audiocodec_vocab_size: 8192
stages:
- stage_id: 0
max_num_seqs: 8
gpu_memory_utilization: 0.85
trust_remote_code: true
enable_prefix_caching: false
async_scheduling: true
max_num_batched_tokens: 512
max_model_len: 8192
dtype: bfloat16
devices: "0"
logits_processors:
- "vllm_omni.model_executor.models.audex.cfg:AudexCFGLogitsProcessor"
- "vllm_omni.model_executor.models.audex.tta:TTARVQPhaseMaskLogitsProcessor"
output_connectors:
to_stage_1: connector_of_shared_memory
default_sampling_params:
temperature: 1.0
top_k: 80
max_tokens: 4200
seed: 0
- stage_id: 1
model: hf-audio/xcodec-hubert-general-balanced
max_num_seqs: 8
gpu_memory_utilization: 0.08
enforce_eager: true
trust_remote_code: true
enable_prefix_caching: false
async_scheduling: false
max_num_batched_tokens: 8192
max_model_len: 8192
devices: "0"
input_connectors:
from_stage_0: connector_of_shared_memory
default_sampling_params:
temperature: 0.0
max_tokens: 8192
seed: 0
+83
View File
@@ -0,0 +1,83 @@
# Audex (Nemotron-Labs-Audex-2B) TTS deploy: thinker → code2wav via
# shared-memory chunk streaming. Verified on 1x H100.
#
# Notable choices:
# * The code2wav decoder is a stateful streaming session per request — no
# left-context replay; chunks carry only new frames, so
# codec_left_context_frames stays 0.
# * codec_token_offset / codec_vocab_size mirror the checkpoint tokenizer's
# <speechcodec_N> block (pinned by a unit test).
# * Stage 0 sampling defaults follow the official TTS script
# (temperature 0.1, top_k 80, max_tokens 2048).
# * Classifier-free guidance: the stage-0 logits processor + scheduler
# pair patches are always installed but idle until a request carries
# extra_args.cfg_scale > 1.0 (serving: extra_params.cfg_scale; offline:
# --cfg-scale). Guided requests decode at temperature 0.05 (CFG
# sharpens the distribution; measured en-24 cfg1.5 CER: 6.87% at
# temp 0.05 vs 7.31% at the unguided 0.1 — baseline 7.24%).
# Every guided request adds an unconditional companion sequence in
# stage 0 — at max_num_seqs 8 that means at most 4 guided requests
# decode concurrently; raise max_num_seqs if CFG-heavy traffic needs
# more parallelism.
pipeline: audex_tts
async_chunk: true
connectors:
connector_of_shared_memory:
name: SharedMemoryConnector
extra:
shm_threshold_bytes: 65536
codec_streaming: true
connector_get_sleep_s: 0.01
connector_get_max_wait_first_chunk: 3000
connector_get_max_wait: 300
codec_chunk_frames: 25
# Emit the first chunk early for a fast first audible sample.
initial_codec_chunk_frames: 1
codec_token_offset: 131077
codec_vocab_size: 65536
# Decoder-internal emit granularity (frames per decode call).
decoder_emit_chunk_frames: 5
stages:
- stage_id: 0
max_num_seqs: 8
gpu_memory_utilization: 0.4
trust_remote_code: true
enable_prefix_caching: true
async_scheduling: true
max_num_batched_tokens: 512
max_model_len: 4096
dtype: bfloat16
devices: "0"
logits_processors:
- "vllm_omni.model_executor.models.audex.cfg:AudexCFGLogitsProcessor"
output_connectors:
to_stage_1: connector_of_shared_memory
default_sampling_params:
temperature: 0.1
top_k: 80
max_tokens: 2048
seed: 0
- stage_id: 1
max_num_seqs: 8
gpu_memory_utilization: 0.25
enforce_eager: true
trust_remote_code: true
enable_prefix_caching: false
# Sync scheduling: with async scheduling the runner builds per-request
# payloads against the NEXT step's input batch, tripping the one-entry-
# per-request check when chunk arrival staggers requests.
async_scheduling: false
# async_chunk appends codec frames per step; max_model_len must cover the
# accumulated stream (max_tokens 2048 codes plus prompt headroom).
max_num_batched_tokens: 8192
max_model_len: 8192
devices: "0"
input_connectors:
from_stage_0: connector_of_shared_memory
default_sampling_params:
temperature: 0.0
max_tokens: 8192
seed: 0
+76
View File
@@ -0,0 +1,76 @@
# Audex 30B-A3B (nvidia/Nemotron-Labs-Audex-30B-A3B) TTS deploy.
#
# Same pipeline/topology/token space as the 2B (audex_tts.yaml); the thinker
# is the hybrid Mamba+MoE NemotronHForCausalLM (~60 GB bf16), so:
# * enable_prefix_caching: false — hybrid Mamba stage.
# * Single H100 80GB layout: thinker 0.85 + decoder 0.08 share GPU 0.
# If weights + state do not fit (long sequences OOM), set
# tensor_parallel_size: 2 on stage 0 and move stage 1 to devices "2".
# * CUDA graphs stay ON for stage 0: the hybrid Mamba+MoE thinker
# captures cleanly and review benchmarks measured ~7x lower TTS RTF
# vs enforce_eager (0.30 vs 2.08 single-stream), on par with the 2B
# and NVIDIA's reference demo.
# * Classifier-free guidance quality (en-24, self-transcribed ASR CER):
# baseline cfg=1.0 -> 0.72%; guided cfg=1.5 at temperature 0.1 -> 0.72%
# (gate: guided <= baseline, PASS). Note the 30B's best guided
# temperature is 0.1 (the yaml default) — unlike the 2B's 0.05, which
# measured 0.79% here. The serving layer currently injects 0.05 for
# guided requests on all sizes; acceptable (still within the anchor
# +2pp standing gate) but a size-aware refinement is a known follow-up.
# ALWAYS pass this yaml explicitly (--stage-configs-path): bare serve of the
# 30B repo auto-detects the shared model_type and lands on the 2B-tuned yaml.
pipeline: audex_tts
async_chunk: true
connectors:
connector_of_shared_memory:
name: SharedMemoryConnector
extra:
shm_threshold_bytes: 65536
codec_streaming: true
connector_get_sleep_s: 0.01
connector_get_max_wait_first_chunk: 3000
connector_get_max_wait: 300
codec_chunk_frames: 25
initial_codec_chunk_frames: 1
codec_token_offset: 131077
codec_vocab_size: 65536
decoder_emit_chunk_frames: 5
stages:
- stage_id: 0
max_num_seqs: 8
gpu_memory_utilization: 0.85
trust_remote_code: true
enable_prefix_caching: false
async_scheduling: true
max_num_batched_tokens: 512
max_model_len: 4096
dtype: bfloat16
devices: "0"
logits_processors:
- "vllm_omni.model_executor.models.audex.cfg:AudexCFGLogitsProcessor"
output_connectors:
to_stage_1: connector_of_shared_memory
default_sampling_params:
temperature: 0.1
top_k: 80
max_tokens: 2048
seed: 0
- stage_id: 1
max_num_seqs: 8
gpu_memory_utilization: 0.08
enforce_eager: true
trust_remote_code: true
enable_prefix_caching: false
async_scheduling: false
max_num_batched_tokens: 8192
max_model_len: 8192
devices: "0"
input_connectors:
from_stage_0: connector_of_shared_memory
default_sampling_params:
temperature: 0.0
max_tokens: 8192
seed: 0