Instructions to use lomasub/lomasub-open with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lomasub/lomasub-open with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="lomasub/lomasub-open")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("lomasub/lomasub-open") model = AutoModelForSpeechSeq2Seq.from_pretrained("lomasub/lomasub-open", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Lomasub-open
Lomasub-open is a fast and accurate Thai speech recognition model for lightweight deployment. It has 166M parameters, runs on a common CPU, and has the lowest CER of all open models on TVSpeech and GigaSpeech2.
- Accuracy: Lomasub-open has the lowest CER of the twelve open models in our comparison on TVSpeech (3.60%) and GigaSpeech2 (6.00%). It is ahead of Typhoon Whisper Large-v3 (4.21% and 6.29%), a model 9 times its size, and on TVSpeech it makes 14% fewer errors than Typhoon Whisper Large-v3, 23% fewer than Typhoon Whisper Turbo and 35% fewer than Pathumma Whisper Large-v3. On FLEURS it reaches 2.51%, within 0.13 points of the best open model.
- Small and fast: 9 times smaller than Whisper large-v3 and more than 15 times faster on CPU. It runs 8.3 times faster than real time on four CPU cores.
- Thai-word tokenizer: 4,000 frequent Thai words added to the Whisper vocabulary cut the decoded tokens by about 65%.
- Standard Whisper checkpoint: loads unchanged in transformers and vLLM. A 4-bit whisper.cpp file (103 MB) runs on CPU without Python.
| File | Format | Size |
|---|---|---|
model.safetensors |
transformers / vLLM, bfloat16 | 332 MB |
ggml-lomasub-open-q4_0.bin |
whisper.cpp, 4-bit (q4_0) | 103 MB |
Benchmarks
CER (%) under dual-reference scoring on the audio-checked references of lomasub/thai_asr_corrected; lower is better.
| Model | Params | TVSpeech | GigaSpeech2 | FLEURS |
|---|---|---|---|---|
| Open models | ||||
| Lomasub-open (ours) | 166M | 3.60 | 6.00 | 2.51 |
| Typhoon Whisper Large-v3 | 1,543M | 4.21 | 6.29 | 2.38 |
| Typhoon Whisper Turbo | 809M | 4.65 | 7.32 | 2.95 |
| Pathumma Whisper Large-v3 | 1,543M | 5.55 | 8.36 | 2.83 |
| Qwen3-ASR-1.7B | 2,349M | 6.34 | 8.19 | 3.04 |
| Typhoon ASR Real-time | 115M | 6.50 | 9.67 | 4.57 |
| Thonburian Whisper Medium | 764M | 8.35 | 10.74 | 3.14 |
| iApp OpenThai2.0-ASR-Streaming | 640M | 8.49 | 11.05 | 4.37 |
| Qwen3-ASR-0.6B | 938M | 8.82 | 11.67 | 5.08 |
| Whisper large-v3 | 1,543M | 10.48 | 12.89 | 4.69 |
| Whisper large-v3-turbo | 809M | 15.40 | 20.02 | 9.79 |
| Whisper small | 242M | 30.43 | 32.71 | 20.74 |
| Commercial services | ||||
| Lomasub (teacher) | 2.65 | 3.52 | 1.20 | |
| MAI Transcribe 2 | 2.97 | 2.67 | 1.04 | |
| ElevenLabs Scribe v2 | 3.10 | 3.34 | 1.22 | |
| Paxa STT-Lite | 2.96 | 2.94 | 1.25 | |
| Gemini 3.5 Live | 4.65 | 7.90 | 1.38 | |
| OpenAI gpt-transcribe | 6.01 | 8.17 | 2.09 |
Bold marks the best in each group; commercial services publish no size. TVSpeech: 570 clips; GigaSpeech2: 500 Thai test segments; FLEURS: 495 Thai test clips. Scores on the original labels are in the paper.
Speed on CPU
RTFx is seconds of audio transcribed per second on four CPU cores; higher is faster. Lomasub-open runs at 8.3 times real time with transformers in float32, and at 10.0 times with the 4-bit whisper.cpp file.
Usage
Requires transformers 5 (tested with 5.17). Input audio is 16 kHz; clips up to 30 seconds.
from transformers import pipeline
asr = pipeline("automatic-speech-recognition", model="lomasub/lomasub-open")
result = asr("audio.wav", generate_kwargs={"language": "th", "task": "transcribe"})
print(result["text"])
For longer audio, pass chunk_length_s=30 to the pipeline.
Usage with whisper.cpp (4-bit)
ggml-lomasub-open-q4_0.bin is the model quantized to 4 bits for whisper.cpp. It takes 103 MB instead of 332 MB, its FLEURS CER is nearly the same (2.44% against 2.51%), and it runs 10.0 times faster than real time on four CPU cores. It works in stock whisper.cpp, with no patches.
# 1. Build whisper.cpp
git clone https://github.com/ggml-org/whisper.cpp
cd whisper.cpp
cmake -B build
cmake --build build -j --config Release
# 2. Download the model
hf download lomasub/lomasub-open ggml-lomasub-open-q4_0.bin --local-dir .
# 3. whisper.cpp reads 16 kHz mono WAV; convert other formats with ffmpeg
ffmpeg -i input.mp3 -ar 16000 -ac 1 -c:a pcm_s16le audio.wav
# 4. Transcribe in Thai, without timestamps, on 4 threads
./build/bin/whisper-cli -m ggml-lomasub-open-q4_0.bin -f audio.wav -l th -nt -t 4
Always pass -l th. For audio longer than 30 seconds, also pass -mc 0, so each 30-second window is decoded without the previous window's text as a prompt.
Model details
- Architecture: Whisper small encoder (12 layers) and 4 of its 12 decoder layers (0, 3, 7 and 11), initialized from openai/whisper-small. 88.2M encoder and 78.0M decoder parameters.
- Tokenizer: 4,000 Thai tokens take the ids of unused Chinese, Japanese and Korean entries, so the vocabulary size and all special, language and timestamp tokens are unchanged.
- Training: knowledge distillation with a KL-divergence loss on the top-8 next-token probabilities of Lomasub, our larger teacher model, on 4,300 hours of Thai public-service broadcasts (parliament, government and court sessions), with SpecAugment time masks. One GPU, under 6 hours. The training data is not released.
Limitations
- Tested on Thai clips of at most 30 seconds. Timestamps, English and code-switched speech are not evaluated.
- Foreign names are written in Latin script and are sometimes misspelled.
- Weaker on English, which it was not trained on.
- Cannot output Chinese, Japanese or Korean, because the Thai tokens replaced those entries.
Acknowledgement
This work was conducted in collaboration with Innovative Extremist Co., Ltd., which provided financial support and led real-world adoption with Thai publishers and broadcasters.
Citation
@misc{kessaraphong2026lomasubopen,
title = {Lomasub-open: Fast and Accurate Thai Speech Recognition for Lightweight Deployment},
author = {Nawawit Kessaraphong},
year = {2026}
}
- Downloads last month
- 10
Model tree for lomasub/lomasub-open
Base model
openai/whisper-smallDataset used to train lomasub/lomasub-open
Evaluation results
- CER (dual-reference) on TVSpeech (corrected labels)test set self-reported3.600
- CER (dual-reference) on GigaSpeech2 Thai (corrected labels)test set self-reported6.000
- CER (dual-reference) on FLEURS Thai (corrected labels)test set self-reported2.510

