/ Модель

Характеристики

Размер весов
737 МБ
Лицензия
CC BY 4.0
Библиотека
nemo
Опубликована
11 мар 2025

canary-180m-flash

Распознавание речиАудио → текст7 профессий

Многоязычная модель NVIDIA для быстрого распознавания речи на четырёх языках и перевода речи между английским и немецким, французским или испанским.

2 417скачиваний за 30 дней119лайковвеса обновлены18 мар 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки6

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

  • covost2

    bleu · выше — лучше

    Результат

    39,33

    Automatic Speech Translation 41,86Automatic Speech Translation 41,43
    Hugging Face Eval Results

    Отчёт автораревизия не подтверждена

  • hf-audio/open-asr-leaderboard

    score · ниже — лучше

    Результат

    7,12

    librispeech_clean_wer 1,73spgispeech_wer 2,26tedlium_wer 3,13
    Hugging Face Leaderboards

    Публичная таблицаревизия не подтверждена

  • google/fleurs

    bleu · выше — лучше

    Результат

    32,27

    Automatic Speech Translation 41,22Automatic Speech Translation 35,5Automatic Speech Translation 33,42
    Hugging Face Eval Results

    Отчёт автораревизия не подтверждена

  • mozilla-foundation/common_voice_16_1

    wer · ниже — лучше

    Результат

    4,03

    Automatic Speech Recognition 3,31Automatic Speech Recognition 5,88Automatic Speech Recognition 6,99
    Hugging Face Eval Results

    Отчёт автораревизия не подтверждена

  • librispeech_asr

    wer · ниже — лучше

    Результат

    2,87

    Hugging Face Eval Results

    Отчёт автораревизия не подтверждена

  • kensho/spgispeech

    wer · ниже — лучше

    Результат

    1,95

    Hugging Face Eval Results

    Отчёт автораревизия не подтверждена

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

NVIDIA NeMo Canary Flash — многоязычная модель распознавания речи и перевода речи, построенная на архитектуре Canary. Модель содержит 182 млн параметров: кодировщик FastConformer с 17 слоями и декодер Transformer с 4 слоями. Для работы используется библиотека NVIDIA NeMo.

Модель распознаёт речь на английском, немецком, французском и испанском языках. Она также переводит речь с английского на немецкий, французский и испанский, а с этих языков — на английский; доступно оформление текста с пунктуацией и заглавными буквами. Экспериментальная функция добавляет временные метки слов и сегментов. Заявленная скорость превышает 1200 RTFx на наборах OpenASR Leaderboard.

Модель принимает монофонические аудиофайлы WAV или FLAC с частотой 16 кГц и выдаёт текст, при выбранном режиме — с временными метками. Для длинных записей, превышающих примерно 40 секунд, NeMo предоставляет обработку по частям. В карточке также отмечено, что выходной текст может требовать обратной нормализации и что специальные символы не обрабатываются. Лицензия CC-BY-4.0 допускает коммерческое использование.

Сценарии применения

  • транскрибация английских аудиозаписей
  • распознавание немецкой, французской и испанской речи
  • перевод английской речи на немецкий, французский или испанский
  • перевод немецкой, французской или испанской речи на английский
  • получение временных меток слов и сегментов в расшифровке

Ограничения

Предназначена для монофонического аудио WAV или FLAC с частотой 16 кГц; для записей длиннее примерно 40 секунд требуется обработка по частям. Предсказание временных меток обозначено как экспериментальное; текст может требовать обратной нормализации, а специальные символы не обрабатываются.

Для каких профессий подходит7

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Canary 180M Flash

Description:

NVIDIA NeMo Canary Flash [1] is a family of multilingual multi-tasking models based on Canary architecture [2] that achieves state-of-the art performance on multiple speech benchmarks. With 182 million parameters and an inference speed of more than 1200 RTFx (on open-asr-leaderboard sets), canary-180m-flash supports automatic speech-to-text recognition (ASR) in 4 languages (English, German, French, Spanish) and translation from English to German/French/Spanish and from German/French/Spanish to English with or without punctuation and capitalization (PnC). Additionally, canary-180m-flash offers an experimental feature for word-level and segment-level timestamps in English, German, French, and Spanish. This model is released under the permissive CC-BY-4.0 license and is available for commercial use.

Model Architecture:

Canary is an encoder-decoder model with FastConformer [3] Encoder and Transformer Decoder [4]. With audio features extracted from the encoder, task tokens such as <target language>, <task>, <toggle timestamps> and <toggle PnC> are fed into the Transformer Decoder to trigger the text generation process. Canary uses a concatenated tokenizer [5] from individual SentencePiece [6] tokenizers of each language, which makes it easy to scale up to more languages. The canary-180m-flash model has 17 encoder layers and 4 decoder layers, leading to a total of 182M parameters. For more details about the architecture, please refer to [1].

NVIDIA NeMo

To train, fine-tune or transcribe with canary-180m-flash, you will need to install NVIDIA NeMo.

How to Use this Model

The model is available for use in the NeMo framework [7], and can be used as a pre-trained checkpoint for inference or for fine-tuning on another dataset.

Please refer to our tutorial for more details.

A few inference examples listed below:

Loading the Model

from nemo.collections.asr.models import EncDecMultiTaskModel
# load model
canary_model = EncDecMultiTaskModel.from_pretrained('nvidia/canary-180m-flash')
# update decode params
decode_cfg = canary_model.cfg.decoding
decode_cfg.beam.beam_size = 1
canary_model.change_decoding_strategy(decode_cfg)

Input:

Input Type(s): Audio Input Format(s): .wav or .flac files Input Parameters(s): 1D Other Properties Related to Input: 16000 Hz Mono-channel Audio, Pre-Processing Not Needed

Input to canary-180m-flash can be either a list of paths to audio files or a jsonl manifest file.

Inference with canary-180m-flash:

If the input is a list of paths, canary-180m-flash assumes that the audio is English and transcribes it. I.e., canary-180m-flash default behavior is English ASR.

output = canary_model.transcribe(
    ['path1.wav', 'path2.wav'],
    batch_size=16,  # batch size to run the inference with
    pnc='True',        # generate output with Punctuation and Capitalization
)

predicted_text = output[0].text

canary-180m-flash can also predict word-level and segment-level timestamps

output = canary_model.transcribe(
  ['filepath.wav'],
  timestamps=True,  # generate output with timestamps
)

predicted_text = output[0].text
word_level_timestamps = output[0].timestamp['word']
segment_level_timestamps = output[0].timestamp['segment']

To predict timestamps for audio files longer than 10 seconds, we recommend using the longform inference script (explained in the next section) with chunk_len_in_secs=10.0.

To use canary-180m-flash for transcribing other supported languages or perform Speech-to-Text translation or provide word-level timestamps, specify the input as jsonl manifest file, where each line in the file is a dictionary containing the following fields:

# Example of a line in input_manifest.json
{
    "audio_filepath": "/path/to/audio.wav",  # path to the audio file
    "source_lang": "en",  # language of the audio input, set `source_lang`==`target_lang` for ASR, choices=['en','de','es','fr']
    "target_lang": "en",  # language of the text output, choices=['en','de','es','fr']
    "pnc": "yes",  # whether to have PnC output, choices=['yes', 'no']
    "timestamp": "yes", # whether to output word-level timestamps, choices=['yes', 'no']
}

and then use:

output = canary_model.transcribe(
    "<path to input manifest file>",
    batch_size=16,  # batch size to run the inference with
)

Longform inference with canary-180m-flash:

Canary models are designed to handle input audio smaller than 40 seconds. In order to handle longer audios, NeMo includes speech_to_text_aed_chunked_infer.py script that handles chunking, performs inference on the chunked files, and stitches the transcripts.

The script will perform inference on all .wav files in audio_dir. Alternatively you can also pass a path to a manifest file as shown above. The decoded output will be saved at output_json_path.

python scripts/speech_to_text_aed_chunked_infer.py \
    pretrained_name="nvidia/canary-180m-flash" \
    audio_dir=$audio_dir \
    output_filename=$output_json_path \
    chunk_len_in_secs=40.0 \
    batch_size=1 \
    decoding.beam.beam_size=1 \
    timestamps=False

Note that for longform inference with timestamps, it is recommended to use chunk_len_in_secs of 10 seconds.

Output:

Output Type(s): Text Output Format: Text output as a string (w/ timestamps) depending on the task chosen for decoding Output Parameters: 1-Dimensional text string Other Properties Related to Output: May Need Inverse Text Normalization; Does Not Handle Special Characters

Software Integration:

Runtime Engine(s):

  • NeMo - main

Supported Hardware Microarchitecture Compatibility:

  • [NVIDIA Ampere]
  • [NVIDIA Blackwell]
  • [NVIDIA Jetson]
  • [NVIDIA Hopper]
  • [NVIDIA Lovelace]
  • [NVIDIA Pascal]
  • [NVIDIA Turing]
  • [NVIDIA Volta]

[Preferred/Supported] Operating System(s):

  • [Linux]
  • [Linux 4 Tegra]
  • [Windows]

Model Version(s):

canary-180m-flash

Training and Evaluation Datasets:

Training Dataset:

The canary-180m-flash model is trained on a total of 85K hrs of speech data. It consists of 31K hrs of public data, 20K hrs collected by Suno, and 34K hrs of in-house data. The datasets below include conversations, videos from the web, and audiobook recordings.

Data Collection Method:

  • Human

Labeling Method:

  • Hybrid: Human, Automated

The constituents of public data are as follows.

English (25.5k hours)

  • Librispeech 960 hours
  • Fisher Corpus
  • Switchboard-1 Dataset
  • WSJ-0 and WSJ-1
  • National Speech Corpus (Part 1, Part 6)
  • VCTK
  • VoxPopuli (EN)
  • Europarl-ASR (EN)
  • Multilingual Librispeech (MLS EN) - 2,000 hour subset
  • Mozilla Common Voice (v7.0)
  • People's Speech - 12,000 hour subset
  • Mozilla Common Voice (v11.0) - 1,474 hour subset

German (2.5k hours)

  • Mozilla Common Voice (v12.0) - 800 hour subset
  • Multilingual Librispeech (MLS DE) - 1,500 hour subset
  • VoxPopuli (DE) - 200 hr subset

Spanish (1.4k hours)

  • Mozilla Common Voice (v12.0) - 395 hour subset
  • Multilingual Librispeech (MLS ES) - 780 hour subset
  • VoxPopuli (ES) - 108 hour subset
  • Fisher - 141 hour subset

French (1.8k hours)

  • Mozilla Common Voice (v12.0) - 708 hour subset
  • Multilingual Librispeech (MLS FR) - 926 hour subset
  • VoxPopuli (FR) - 165 hour subset

Evaluation Dataset:

Data Collection Method:

  • Human

Labeling Method:

  • Human

Automatic Speech Recognition:

Automatic Speech Translation:

Timestamp Prediction:

Hallucination Robustness:

Noise Robustness:

Model Fairness:

Training

canary-180m-flash is trained using the NVIDIA NeMo framework [7] for a total of 219K steps with 2D bucketing [1] and optimal batch sizes set using OOMptimizer [8]. The model is trained on 32 NVIDIA A100 80GB GPUs. The model can be trained using this example script and base config.

The tokenizers for these models were built using the text transcripts of the train set with this script.

Inference:

Engine: NVIDIA NeMo Test Hardware :

  • A6000
  • A100
  • V100

Performance

For ASR and AST experiments, predictions were generated using greedy decoding. Note that utterances shorter than 1 second are symmetrically zero-padded upto 1 second during evaluation.

English ASR Performance (w/o PnC)

The ASR performance is measured with word error rate (WER), and we process the groundtruth and predicted text with whisper-normalizer.

WER on HuggingFace OpenASR leaderboard evaluated with a batch size of 128:

VersionModelRTFxAMIGigaSpeechLS CleanLS OtherEarnings22SPGISpechTedliumVoxpopuli
maincanary-180m-flash123314.8610.511.873.8313.332.263.986.35

Inference speed on different systems

We profiled inference speed on the OpenASR benchmark using the real-time factor (RTFx) to quantify throughput.

VersionModelSystemRTFx
maincanary-180m-flashNVIDIA A1001233
maincanary-180m-flashNVIDIA H1002041

Multilingual ASR Performance

WER on MLS test set:

VersionModelDeEsFr
maincanary-180m-flash4.813.174.75

WER on MCV-16.1 test set:

VersionModelEnDeEsFr
maincanary-180m-flash9.535.944.908.19

More details on evaluation can be found at HuggingFace ASR Leaderboard

AST Performance

We evaluate AST performance with BLEU score, and use native annotations with punctuation and capitalization in the datasets.

FLEURS test set:

BLEU score:

VersionModelEn->DeEn->EsEn->FrDe->EnEs->EnFr->En
maincanary-180m-flash28.1820.4736.6632.0820.0929.75

COMET score:

VersionModelEn->DeEn->EsEn->FrDe->EnEs->EnFr->En
maincanary-180m-flash77.5678.1078.5383.0381.4882.28

COVOST-v2 test set:

BLEU score:

VersionModelDe->EnEs->EnFr->En
maincanary-180m-flash35.6139.8438.57

COMET score:

VersionModelDe->EnEs->EnFr->En
maincanary-180m-flash80.9484.5482.50

mExpresso test set:

BLEU score:

VersionModelEn->DeEn->EsEn->Fr
maincanary-180m-flash21.6033.4525.96

COMET score:

VersionModelEn->DeEn->EsEn->Fr
maincanary-180m-flash77.7180.8777.82

Timestamp Prediction

F1-score on Librispeech Test sets at collar value of 200ms

VersionModeltest-cleantest-other
maincanary-180m-flash93.4891.38

Hallucination Robustness

Number of characters per minute on MUSAN 48 hrs eval set

VersionModel# of character per minute
maincanary-180m-flash91.52

Noise Robustness

WER on Librispeech Test Clean at different SNR (signal to noise ratio) levels of additive white noise

VersionModelSNR 10SNR 5SNR 0SNR -5
maincanary-180m-flash3.235.3412.2134.03

Model Fairness Evaluation

As outlined in the paper "Towards Measuring Fairness in AI: the Casual Conversations Dataset" [9], we assessed the canary-180m-flash model for fairness. The model was evaluated on the CausalConversations-v1 dataset, and the results are reported as follows:

Gender Bias:

GenderMaleFemaleN/AOther
Num utterances193252453292633
% WER16.9214.0120.0125.04

Age Bias:

Age Group(18-30)(31-45)(46-85)(1-100)
Num utterances15956145851334943890
% WER14.9515.3615.6515.29

(Error rates for fairness evaluation are determined by normalizing both the reference and predicted text, similar to the methods used in the evaluations found at https://github.com/huggingface/open_asr_leaderboard.)

License/Terms of Use:

canary-180m-flash is released under the CC-BY-4.0 license. By using this model, you are agreeing to the terms and conditions of the license.

References:

[1] Training and Inference Efficiency of Encoder-Decoder Speech Models

[2] Less is More: Accurate Speech Recognition & Translation without Web-Scale Data

[3] Fast Conformer with Linearly Scalable Attention for Efficient Speech Recognition

[4] Attention is All You Need

[5] Unified Model for Code-Switching Speech Recognition and Language Identification Based on Concatenated Tokenizer

[6] Google Sentencepiece Tokenizer

[7] NVIDIA NeMo Framework

[8] EMMeTT: Efficient Multimodal Machine Translation Training

[9] Towards Measuring Fairness in AI: the Casual Conversations Dataset

Ethical Considerations:

NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.
Please report security vulnerabilities or NVIDIA AI Concerns here.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · nemo

Нельзя запустить

Модели NVIDIA NeMo требуют отдельного рантайма.

Ревизия весов
b12ab41

0 моделей