This collection contains large size versions of cache-aware FastConformer-Hybrid (around 114M parameters) with multiple look-ahead support, trained on a large scale english speech. These models are trained for streaming ASR which be used for streaming applications with a variety of latencies. All models are hybrid with both Transducer and CTC decoders.
FastConformer [4] is an optimized version of the Conformer model [1]. The model is trained in a multitask setup with joint Transducer and CTC decoder loss. You may find more information on the details of FastConformer here: Fast-Conformer Model and about Hybrid Transducer-CTC training here: Hybrid Transducer-CTC. You may find more on how to switch between the Transducer and CTC decoders in the documentations.
These models are cache-aware versions of Hybrid FastConfomer which are trianed for streaming ASR. You may find more info on cache-aware models here: Cache-aware Streaming Conformer. The models are trained with multiple look-aheads which makes the model to be able to support different latencies. To learn on how to switch between different look-aheads, you may read the documentations on the cache-aware models.
The NeMo toolkit [3] was used for training the models for over several hundred epochs. These model are trained with this example script and this base config. The SentencePiece tokenizers [2] for these models were built using the text transcripts of the train set with this script.
All the models in this collection are trained on a composite dataset (NeMo ASRSET) comprising of several thousand hours of English speech:
Note: older versions of the model may have trained on smaller set of datasets.
The list of the available models in this collection is shown in the following tables for both CTC and Transducer decoders. Performances of the ASR models are reported in terms of Word Error Rate (WER%) with greedy decoding.
Version | Tokenizer | Vocabulary Size | att_context_sizes | LS test-other ([70,13]-1040ms) | LS test-other ([70,6]-480ms) | LS test-other ([70,1]-80ms) | LS test-other ([70,0]-0s) | Train Dataset |
---|---|---|---|---|---|---|---|---|
1.20.0 | SPE Unigram | 1024 | [[70,13],[70,6],[70,1],[70,0]] | 5.4 | 5.7 | 6.4 | 7.0 | NeMo ASRSET 3.0 |
Version | Tokenizer | Vocabulary Size | att_context_sizes | LS test-other ([70,13]-1040ms) | LS test-other ([70,6]-480ms) | LS test-other ([70,1]-80ms) | LS test-other ([70,0]-0s) | Train Dataset |
---|---|---|---|---|---|---|---|---|
1.20.0 | SPE Unigram | 1024 | [[70,13],[70,6],[70,1],[70,0]] | 6.2 | 6.7 | 7.8 | 8.4 | NeMo ASRSET 3.0 |
The model is available for use in the NeMo toolkit [3], and can be used as a pre-trained checkpoint for streaming or for fine-tuning on another dataset. You may use this script to simulate streaming ASR with these models: cache-aware streaming simulation. You may use --att_context_size to set the context size otherwise the default which is the first context size in the list is going to be used.
import nemo.collections.asr as nemo_asr
asr_model = nemo_asr.models.EncDecHybridRNNTCTCBPEModel.from_pretrained(model_name="stt_en_fastconformer_hybrid_large_streaming_multi")
Using Transducer mode inference:
python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py \
pretrained_name="stt_en_fastconformer_hybrid_large_streaming_multi" \
audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
Using CTC mode inference:
python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py \
pretrained_name="stt_en_fastconformer_hybrid_large_streaming_multi" \
audio_dir="<DIRECTORY CONTAINING AUDIO FILES>" \
decoder_type="ctc"
To change between different look-aheads you may set att_context_size of the script transcribe_speech.py as the following:
python [NEMO_GIT_FOLDER]/examples/asr/transcribe_speech.py \
pretrained_name="stt_en_fastconformer_hybrid_large_streaming_multi" \
audio_dir="<DIRECTORY CONTAINING AUDIO FILES>" \
att_context_size=[70,0]
This model accepts 16000 KHz Mono-channel Audio (wav files) as input.
This model provides transcribed speech as a string for a given audio sample.
Since this model was trained on publically available speech datasets, the performance of this model might degrade for speech which includes technical terms, or vernacular that the model has not been trained on. The model might also perform worse for accented speech.
[1] Conformer: Convolution-augmented Transformer for Speech Recognition
[2] Google Sentencepiece Tokenizer
[4] Fast Conformer with Linearly Scalable Attention for Efficient Speech Recognition
License to use this model is covered by the NGC TERMS OF USE unless another License/Terms Of Use/EULA is clearly specified. By downloading the public and release version of the model, you accept the terms and conditions of the NGC TERMS OF USE.