vllm.model_executor.models.canary
¶
Inference-only NVIDIA Canary (FastConformer encoder + Transformer decoder).
Targets the native Transformers checkpoint layout (e.g. nvidia/canary-1b-v2)
whose config.json has model_type == "canary".
Classes:
-
CanaryForConditionalGeneration– -
CanaryPositionalEmbedding–Fixed sinusoidal table laid out as
[sin | cos]and scaled by
CanaryForConditionalGeneration
¶
Bases: Module, SupportsTranscription, SupportsMultiModal
Methods:
-
get_decoder_prompt_tokens–Same token sequence as the checkpoint's
chat_template.jinja.
get_decoder_prompt_tokens(source_language, target_language, punctuation=True)
classmethod
¶
Same token sequence as the checkpoint's chat_template.jinja.
CanaryPositionalEmbedding
¶
Bases: Module
Fixed sinusoidal table laid out as [sin | cos] and scaled by
1 / sqrt(hidden_size); matches CanaryPositionalEmbedding in
Transformers.
_subsampled_length(num_frames, encoder_config)
¶
Mirror of ParakeetEncoder._get_subsampling_output_length.