Run this model with HF Jobs

Run lomasub/lomasub-open on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/lomasub/lomasub-open. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/lomasub/lomasub-open on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
lomasub-open / README.md
mekpro's picture
Model card: full CER chart and table, 18 systems
59c72db verified
|
Raw History Blame Contribute Delete
7.57 kB
---
license: apache-2.0
language:
- th
library_name: transformers
pipeline_tag: automatic-speech-recognition
base_model: openai/whisper-small
tags:
- whisper
- thai
- speech-recognition
- knowledge-distillation
datasets:
- lomasub/thai_asr_corrected
model-index:
- name: lomasub-open
results:
- task:
type: automatic-speech-recognition
name: Speech Recognition
dataset:
name: TVSpeech (corrected labels)
type: lomasub/thai_asr_corrected
config: tvspeech
split: test
metrics:
- type: cer
value: 3.60
name: CER (dual-reference)
- task:
type: automatic-speech-recognition
name: Speech Recognition
dataset:
name: GigaSpeech2 Thai (corrected labels)
type: lomasub/thai_asr_corrected
config: gigaspeech2
split: test
metrics:
- type: cer
value: 6.00
name: CER (dual-reference)
- task:
type: automatic-speech-recognition
name: Speech Recognition
dataset:
name: FLEURS Thai (corrected labels)
type: lomasub/thai_asr_corrected
config: fleurs
split: test
metrics:
- type: cer
value: 2.51
name: CER (dual-reference)
---
# 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](#usage-with-whispercpp-4-bit) (103 MB) runs on CPU without Python.
| File | Format | Size |
|---|---|--:|
| `model.safetensors` | transformers / vLLM, bfloat16 | 332 MB |
| [`ggml-lomasub-open-q4_0.bin`](https://huggingface.co/lomasub/lomasub-open/resolve/main/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](https://huggingface.co/datasets/lomasub/thai_asr_corrected); lower is better.
![CER of open models and commercial services on TVSpeech, GigaSpeech2 and FLEURS](assets/cer_all_models.png)
| 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
![TVSpeech CER against CPU speed on four cores for the open models](assets/cpu_speed_vs_cer.png)
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.
```python
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`](https://huggingface.co/lomasub/lomasub-open/resolve/main/ggml-lomasub-open-q4_0.bin) is the model quantized to 4 bits for [whisper.cpp](https://github.com/ggml-org/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.
```bash
# 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](https://huggingface.co/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
```bibtex
@misc{kessaraphong2026lomasubopen,
title = {Lomasub-open: Fast and Accurate Thai Speech Recognition for Lightweight Deployment},
author = {Nawawit Kessaraphong},
year = {2026}
}
```