nemo_curator.models.asr.qwen_omni
nemo_curator.models.asr.qwen_omni
Qwen3-Omni ASR adapter using in-process vLLM.
Module Contents
Classes
Functions
Data
API
Qwen3-Omni in-process vLLM adapter (thinker-only path).
ASRStage supplies model_id plus this adapter’s explicitly configured
adapter_kwargs. Hugging Face revision pinning therefore remains a
Qwen adapter capability rather than part of the shared ASR stage contract.
Notable Args:
prompt_text / *_file: User prompt; {language} is interpolated
per-item when the stage supplies a language. *_file variants
load text from a UTF-8 file at __post_init__ time.
en_prompt_text / en_prompt_file: override used when language is
"English".
system_prompt / *_file: optional system message.
prompt_content_order: order of text and audio blocks in each user
message. audio_text matches Qwen’s official ASR cookbook.
max_output_tokens: maximum transcription tokens. Kept separate so the
adapter remains the only source of SamplingParams.max_tokens.
vllm_kwargs: engine settings forwarded to Curator’s shared
create_vllm_llm helper. model and revision have
dedicated adapter fields, while tensor_parallel_size comes
from the stage’s GPU allocation; none can be overridden here.
sampling_kwargs: settings forwarded to vLLM SamplingParams.
max_tokens is adapter-owned and cannot be overridden.
Return vLLM arguments controlled by adapter fields and the allocated GPU count.
Run one vLLM batch and scatter its texts back to input order.
indices[k] is the position in the length-n batch that
inputs[k] came from.
Render chat messages into a vLLM request dict.
Run batched inference on in-memory waveforms.
Cache the model snapshot on local disk without touching the GPU.
Run batched inference over per-task dicts.
Skipped items (empty / unprocessable waveforms) round-trip as
ASRResult(text="", skipped=True) to preserve ordering.
Return Qwen-Omni defaults forwarded to vLLM SamplingParams.
Return Qwen-Omni defaults forwarded to Curator’s shared vLLM helper.
Raise a single ImportError listing missing Qwen-Omni dependencies.