Model reference · open weights
stt_en_fastconformer_hybrid_large_streaming_multi is an open-weight audio or speech model from nvidia. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.
Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.
What it is
| Released by | NVIDIA |
|---|---|
| Type | Audio & music |
| Task | Speech→text |
| Runs with | nemo |
| Released | 2023-10-05 |
| Popularity | 3k downloads / month |
| Licence | Open weights |
About
img { display: inline; }
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 (0ms, 80ms, 480s, 1040ms). These are the worst latency and average latency of the model for each case would be half of these numbers. You may find more detail and evalution results here [5].
These models are cache-aware versions of Hybrid FastConfomer which are trained for streaming ASR. You may find more info on cache-aware models here: Cache-aware Streaming Conformer [5]. 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-ahead, you may read the documentation on the cache-aware models.
FastConformer [4] is an optimized version of the Conformer model [1], and you may find more information on the details of FastConformer here: Fast-Conformer Model.
The model is trained in a multitask setup with joint Transducer and CTC decoder loss [5]. You can find more about Hybrid Transducer-CTC training here: Hybrid Transducer-CTC. You may also find more on how to switch between the Transducer and CTC decoders in the documentation.
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.
| 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 |
|---|---|---|---|---|---|
| [[70,13],[70,6],[70,1],[70,0]] | 5.4 | 5.7 | 6.4 | 7.0 | NeMo ASRSET 3.0 |
| 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 |
|---|---|---|---|---|---|
| [[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 will need to install NVIDIA NeMo. We recommend you install it after you've installed latest Pytorch version.
pip install nemo_toolkit['all']
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 (1040ms), is going to be used.
Cache-aware models are designed in a way that the model's predictions are the same in both offline and streaming mode.
So you may use the regular transcribe function to get the transcriptions. First, let's get a sample:
wget https://dldata-public.s3.us-east-2.amazonaws.com/2086-149220-0033.wav
Then simply do:
import nemo.collections.asr as nemo_asr
asr_model = nemo_asr.models.EncDecHybridRNNTCTCBPEModel.from_pretrained(model_name="nvidia/stt_en_fastconformer_hybrid_large_streaming_multi")
# Optional: change the default latency. Default latency is 1040ms. Supported latencies: {0: 0ms, 1: 80ms, 16: 480ms, 33: 1040ms}.
# Note: These are the worst latency and average latency would be half of these numbers.
asr_model.encoder.set_default_att_context_size([70,13])
#Optional: change the default decoder. Default decoder is Transducer (RNNT). Supported decoders: {ctc, rnnt}.
asr_model.change_decoding_strategy(decoder_type='rnnt')
output = asr_model.transcribe(['2086-149220-0033.wav'])
print(output[0].text)
Using Tra
From the published model card. Full card on the HuggingFace links in the sidebar.
How it works
Benchmarks
As published on the model card — the maker's own numbers, not measured by AxForge.
| Task | Dataset | Metric | Score |
|---|---|---|---|
| automatic-speech-recognition | LibriSpeech (other) | Test WER | 5.400 |
Using it via the API
Once AxForge deploys stt-en-fastconformer-hybrid-large-streaming-multi for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (stt-en-fastconformer-hybrid-large-streaming-multi below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/audio/transcriptions \ -H "Authorization: Bearer $AXFORGE_API_KEY" \ -F model="stt-en-fastconformer-hybrid-large-streaming-multi" -F file=@audio.mp3
Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.