Instructions to use nectec/Pathumma-asr-rnnt-0.6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NeMo
How to use nectec/Pathumma-asr-rnnt-0.6b with NeMo:
import nemo.collections.asr as nemo_asr asr_model = nemo_asr.models.ASRModel.from_pretrained("nectec/Pathumma-asr-rnnt-0.6b") transcriptions = asr_model.transcribe(["file.wav"]) - Notebooks
- Google Colab
- Kaggle
🪷 Pathumma ASR RNNT 0.6B (TH)
Pathumma ASR RNNT 0.6B (TH) is a Thai–English automatic speech recognition (ASR) model built for real-world audio. It handles:
- Thai–English code-switching: English words and phrases mixed into Thai speech
- Background noise and other difficult recording conditions
- Telephony and VoIP audio: narrowband (8 kHz) phone calls, call-center recordings and online meetings
- Many domains, including technology, news, finance, science, healthcare and law
The model is fine-tuned from nvidia/parakeet-rnnt-0.6b, the XL (~600M parameters) FastConformer-Transducer [1]. The original English tokenizer was replaced with a new tokenizer that covers Thai and Thai–English mixed text.
NVIDIA NeMo
To train, fine-tune, or run Python inference with this model, install NVIDIA NeMo after installing a recent PyTorch version.
pip install -U nemo_toolkit['asr']
Quickstart
Load the model:
import torch
import nemo.collections.asr as nemo_asr
device = "cuda" if torch.cuda.is_available() else "cpu"
torch_dtype = torch.bfloat16 if torch.cuda.is_available() else torch.float32
model_name = "nectec/pathumma-asr-rnnt-0.6b"
asr_model = nemo_asr.models.EncDecRNNTBPEModel.from_pretrained(model_name=model_name)
asr_model.to(device)
asr_model.to(torch_dtype)
Run inference:
output = asr_model.transcribe(["audio_path.wav"])
print(output[0].text)
Run inference with timestamps:
output = asr_model.transcribe(["audio_path.wav"], timestamps=True)
word_timestamps = output[0].timestamp['word']
segment_timestamps = output[0].timestamp['segment']
char_timestamps = output[0].timestamp['char']
for word in word_timestamps:
print(f"{word['start']}s - {word['end']}s : {word['word']}")
# for word in segment_timestamps:
# print(f"{word['start']}s - {word['end']}s : {word['segment']}")
# for word in char_timestamps:
# print(f"{word['start']}s - {word['end']}s : {word['char']}")
Model Architecture
FastConformer [1] is an optimized version of the Conformer model with 8x depthwise-separable convolutional downsampling. This model uses the XL FastConformer encoder (~600M parameters) with a Transducer (RNNT) decoder, inherited from nvidia/parakeet-rnnt-0.6b.
Changes from the base model:
- Tokenizer: the English tokenizer was replaced with a new Thai–English SentencePiece Unigram tokenizer with a 2,048-token vocabulary.
- Decoder: the RNNT decoder and joint network were adapted to the new vocabulary (TODO: confirm whether they were re-initialized).
- Fine-tuning: the whole model was fine-tuned on Thai and Thai–English speech (see Training).
Training
The model was fine-tuned with the NeMo toolkit [2], using this example script and this base config.
The tokenizer was built from the text transcripts of the training set with this script.
- Training data: TODO: total hours, and the datasets/domains used
- Training setup: AdamW optimizer (betas 0.9 and 0.98, weight decay 0.001) with a learning rate of 3e-4, 5,000 warmup steps and cosine annealing to 1e-6. Training used 0.1–40 s clips with Lhotse dynamic bucketing (30 buckets,
batch_duration1,000 s) and SpecAugment (2 frequency masks and 10 time masks).
Performance
Performance is measured with Word Error Rate (WER) and Character Error Rate (CER). References and predictions are normalised the same way before scoring: common Thai character-encoding variants are unified, ASCII punctuation is removed, and Latin letters are lower-cased. Thai is written without spaces between words, so WER uses words segmented with the PyThaiNLP version 5.4.0 newmm tokenizer, and CER ignores spaces. Numbers are not converted between digits and words, and the Thai repetition mark (ๆ) is not expanded.
WER and CER are computed at corpus level for each test set (total errors ÷ total reference words or characters), and averages across test sets are plain means. For the Parakeet results, each file is decoded in one pass with transcribe(), using greedy decoding without an external language model or word boosting.
Comparison with other Pathumma models
The chart shows the average CER over the 12 Thai test sets below. All models were scored with the same CER method. Pathumma ASR Streaming uses the 1.12 s attention setting.
Results by Test Set
| Test Set | WER (%) | CER (%) |
|---|---|---|
| Common Voice TH | 5.14 | 1.67 |
| GigaSpeech 2 | 17.47 | 11.12 |
| LOTUS Far-field (30 s, 6 microphones) | 30.35 | 25.16 |
| LOTUS TRD (Regional) | 10.11 | 4.39 |
| TVSpeech (Typhoon) | 11.31 | 6.69 |
License
This model is released under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
It is a derivative of Parakeet RNNT 0.6B (en) by the NVIDIA NeMo and Suno.ai teams, licensed under CC BY 4.0. The changes made are listed under Model Architecture.
This is not an official NVIDIA release and is not endorsed by NVIDIA or Suno.ai.
Citation
@misc{tipaksorn2026pathummaasrrnnt,
title = {{Pathumma ASR RNNT 0.6B (TH)}},
author = {Siwakorn Kaewwichai and Pattara Tipaksorn},
url = {https://huggingface.co/nectec/Pathumma-asr-rnnt-th-0.6b},
publisher = {Hugging Face},
year = {2026}
}
References
[1] D. Rekesh et al., "Fast Conformer with Linearly Scalable Attention for Efficient Speech Recognition," 2023.
- Downloads last month
- 50
Model tree for nectec/Pathumma-asr-rnnt-0.6b
Base model
nvidia/parakeet-rnnt-0.6b