Instructions to use nectec/Pathumma-asr-streaming-th-0.6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NeMo
How to use nectec/Pathumma-asr-streaming-th-0.6b with NeMo:
import nemo.collections.asr as nemo_asr asr_model = nemo_asr.models.ASRModel.from_pretrained("nectec/Pathumma-asr-streaming-th-0.6b") transcriptions = asr_model.transcribe(["file.wav"]) - Notebooks
- Google Colab
- Kaggle
🪷 Pathumma ASR Streaming 0.6B (TH)
Pathumma ASR Streaming 0.6B (TH) is a Thai–English streaming automatic speech recognition (ASR) model built for real-time, real-world audio. It handles:
- Low-latency streaming: configurable chunk sizes from 80 ms to 1.12 s, chosen at inference time with no retraining
- Thai–English code-switching: English words and phrases mixed into Thai speech
- Background noise and other difficult recording conditions
- Many domains, including technology, news, finance, science and law
The model is fine-tuned from nvidia/nemotron-speech-streaming-en-0.6b, a Cache-Aware FastConformer RNNT model (~600M parameters). The original English tokenizer was replaced with a new tokenizer that covers Thai and Thai–English mixed text.
It is suited to voice assistants, live captioning, call centers and other applications where low latency matters.
NVIDIA NeMo
To train, fine-tune, or run Python inference with this model, install NVIDIA NeMo after installing a recent PyTorch version.
apt-get update && apt-get install -y libsndfile1 ffmpeg
pip install Cython packaging
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"
model_name = "nectec/Pathumma-asr-streaming-th-0.6b"
asr_model = nemo_asr.models.ASRModel.from_pretrained(model_name=model_name)
asr_model.to(device)
asr_model.eval()
# Choose the latency / accuracy trade-off (see "Streaming Configuration" below)
asr_model.encoder.set_default_att_context_size([70, 13]) # 1.12 s chunks
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)
# Output indices correspond to the order of items in `data`
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']}")
Streaming Inference
Use NeMo's cache-aware streaming script, speech_to_text_cache_aware_streaming_infer.py:
cd NeMo
python examples/asr/asr_cache_aware_streaming/speech_to_text_cache_aware_streaming_infer.py \
pretrained_name="nectec/Pathumma-asr-streaming-th-0.6b" \
dataset_manifest=<dataset_manifest> \
batch_size=<batch_size> \
att_context_size="[70,13]" \
output_path=<output_folder>
Streaming Configuration
Latency is set by att_context_size = [left_context, right_context], measured in 80 ms frames:
| att_context_size | Chunk size | Latency |
|---|---|---|
| [70, 0] | 1 frame | 0.08 s |
| [70, 1] | 2 frames | 0.16 s |
| [70, 6] | 7 frames | 0.56 s |
| [70, 13] | 14 frames | 1.12 s |
Chunk size = current frame + right context. Each chunk is processed without overlap. Smaller chunks give lower latency but slightly higher error rates.
Model Architecture
The model uses a Cache-Aware FastConformer encoder with 24 layers and an RNNT (Recurrent Neural Network Transducer) decoder, inherited from nvidia/nemotron-speech-streaming-en-0.6b. The encoder keeps caches for all self-attention and convolution layers, so each new audio chunk reuses earlier context instead of recomputing overlapping audio.
- Encoder: Cache-Aware FastConformer, 24 layers
- Decoder: RNNT
- Parameters: ~600M
🖼️ Streaming inference pipeline diagram: coming soon
Changes from the base model:
- Tokenizer: the English tokenizer was replaced with a new Thai–English tokenizer (TODO: type, e.g. SentencePiece Unigram/BPE, and vocabulary size).
- 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).
- Output: the model transcribes Thai and English text (TODO: say whether punctuation is output).
Training
The model was fine-tuned with the NeMo toolkit, using this example script and this cache-aware streaming 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: TODO: number of epochs or steps, GPUs, key hyperparameters, and which
att_context_sizevalues were used in training
Performance
Performance is measured with Character Error Rate (CER), the standard metric for Thai, which is written without spaces between words. Whitespace is removed from both the reference and the prediction before scoring, and CER is computed over the whole test set (total character errors ÷ total reference characters). WER is computed after Thai word segmentation (segmenter details coming soon).
All results use greedy decoding without an external language model, unless stated otherwise.
📊 CER vs. latency chart: coming soon
Streaming settings
| Setting | att_context_size | Left context | Right context | Chunk size | Latency |
|---|---|---|---|---|---|
| Ultra-low latency | [70, 0] | 70 frames (5.6 s) | 0 frames | 1 frame | 0.08 s |
| Low latency | [70, 1] | 70 frames (5.6 s) | 1 frame | 2 frames | 0.16 s |
| Balanced | [70, 6] | 70 frames (5.6 s) | 6 frames | 7 frames | 0.56 s |
| Best accuracy | [70, 13] | 70 frames (5.6 s) | 13 frames | 14 frames | 1.12 s |
CER (%) by chunk size
| Test set | 0.08 s | 0.16 s | 0.56 s | 1.12 s |
|---|---|---|---|---|
| GigaSpeech2 (th) | Coming soon | Coming soon | Coming soon | Coming soon |
| Common Voice (th) | Coming soon | Coming soon | Coming soon | Coming soon |
| FLEURS (th) | Coming soon | Coming soon | Coming soon | Coming soon |
| Thai–English code-switching (in-house) | Coming soon | Coming soon | Coming soon | Coming soon |
| Average | Coming soon | Coming soon | Coming soon | Coming soon |
WER (%) by chunk size
| Test set | 0.08 s | 0.16 s | 0.56 s | 1.12 s |
|---|---|---|---|---|
| GigaSpeech2 (th) | Coming soon | Coming soon | Coming soon | Coming soon |
| Common Voice (th) | Coming soon | Coming soon | Coming soon | Coming soon |
| FLEURS (th) | Coming soon | Coming soon | Coming soon | Coming soon |
| Thai–English code-switching (in-house) | Coming soon | Coming soon | Coming soon | Coming soon |
| Average | Coming soon | Coming soon | Coming soon | Coming soon |
Speed
| Chunk size | RTF (batch 1) | Concurrent streams | Hardware |
|---|---|---|---|
| 0.08 s | Coming soon | Coming soon | Coming soon |
| 0.16 s | Coming soon | Coming soon | Coming soon |
| 0.56 s | Coming soon | Coming soon | Coming soon |
| 1.12 s | Coming soon | Coming soon | Coming soon |
RTF (real-time factor) = processing time ÷ audio duration. Lower is faster.
License
Use of this model is governed by the NVIDIA Open Model License Agreement. A copy of the agreement is included in this repository as LICENSE, and the required attribution is in the NOTICE file:
Licensed by NVIDIA Corporation under the NVIDIA Open Model License
This model is a Derivative Model of nvidia/nemotron-speech-streaming-en-0.6b. The changes made are listed under Model Architecture. Use of this model must also follow NVIDIA's Trustworthy AI terms.
This is not an official NVIDIA release and is not endorsed by NVIDIA. NVIDIA product names are used only to describe the origin of the model.
Citation
@misc{tipaksorn2026pathummaasrstreaming,
title = {{Pathumma ASR Streaming 0.6B (TH)}},
author = {Pattara Tipaksorn and Siwakorn Kaewwichai},
url = {https://huggingface.co/nectec/Pathumma-asr-streaming-th-0.6b},
publisher = {Hugging Face},
year = {2026}
}
- Downloads last month
- -
Model tree for nectec/Pathumma-asr-streaming-th-0.6b
Base model
nvidia/nemotron-speech-streaming-en-0.6b