Qwen3-ASR-1.7B-Cantonese-HK
Live Demo: demo.koelony.com · Project Page: koelony.com/asr/ · GitHub: koelony/qwen3-asr-cantonese-hk · Author: @joe2643
Full-parameter fine-tune of Qwen/Qwen3-ASR-1.7B (revision 7278e1e) for Hong Kong Colloquial Cantonese (yue-HK) + English code-switching, with context / hotword vocabulary biasing support.
It natively outputs Hong Kong Traditional Chinese with colloquial characters (係, 喺, 嘅, 咗, 㗎, 閂) and keeps English words in English.
This repo holds the original BF16 weights in Hugging Face Transformers format (config.json + model.safetensors).
It is a full fine-tune, so there is no separate LoRA / PEFT adapter.
Current version: v2.1 (2026-11-14) — adds context / domain-vocabulary biasing alignment (reducing short-utterance + long-glossary CER from 21.88% to 7.19% with 0.0% prompt parroting) and improves 5 of 6 standard Cantonese benchmarks over v2 (v2 is revision 5c1df898, v1 is revision 399c5ef).
GitHub: koelony/qwen3-asr-cantonese-hk (quick start, client and evaluation scripts).
Other formats
| Repo | Format | For |
|---|---|---|
| this repo | BF16, Transformers (v2.1) | transformers, qwen-asr, vLLM, further fine-tuning, conversion |
this repo, comfyui/ | BF16, ComfyUI-Drama3 layout (v2.1) | ComfyUI-Drama3 native Qwen3-ASR loader |
-GGUF | GGUF Q4_K_M / Q6_K / Q6_K_H (recommended) / Q8_0 + mmproj (v2.1); plus transcribe-cpp/ single-file GGUF (Q8_0 / Q6_K / Q4_K_M, no mmproj) | llama.cpp (llama-server), Munia; also compatible with transcribe.cpp / Hex (macOS) |
-FP8 | FP8 W8A8 (compressed-tensors, v2) | vLLM, more KV-cache room |
-NVFP4 | NVFP4A16 (compressed-tensors, v2) | vLLM, smallest and fastest |
Benchmark (Character Error Rate, greedy, BF16 transformers)
| Test Set | Stock Qwen3-ASR-1.7B | v1 | v2 | v2.1 (this) | whisper-large-v3 |
|---|---|---|---|---|---|
FLEURS (yue_hant_hk) | 4.20% | 4.00% | 3.95% | 3.89% | 20.97% |
Common Voice yue | 5.46% | 3.80% | 3.86% | 3.94% | 36.44% |
Common Voice 23 zh-HK | 7.65% | 5.18% | 5.09% | 5.02% | 41.76% |
| MDCC | 4.25% | 2.53% | 2.49% | 2.47% | 34.52% |
| LegCo (HK Legislative Council) | 7.22% | 7.17% | 7.16% | 7.16% | 32.15% |
| MCE (Cantonese-English Code-Switching) | 11.74% | 5.61% | 5.62% | 5.52% | 24.00% |
Held-Out YouTube Test Suite (T1, 1,292 Segments, Script-Neutral L1_PURE_NEUTRAL MER)
To avoid penalisations caused by OpenCC s2hk character-conversion artifacts on simplified outputs from the stock model, cross-model comparisons use script-neutral Mixed Error Rate (L1_PURE_NEUTRAL: Hong Kong pure variant normalisation + uniform t2s folding, while strictly keeping written/spoken lexical errors such as 的/嘅 and 是/係 distinct):
Arm (BF16, language="Cantonese") | T1 Pooled (1,292) ↓ | legacy (279) | jimpae (431) | unseen (582) | code_switch | EN Word Recall ↑ | Simplified % ↓ |
|---|---|---|---|---|---|---|---|
Stock Qwen3-ASR-1.7B | 14.28% | 12.26% | 19.80% | 12.25% | 14.95% | 63.53% | (simplified) |
v2.1 (this) | 12.33% | 10.05% | 18.47% | 10.09% | 12.66% | 76.22% | 0.20% |
Context / Hotword Vocabulary Biasing Benchmark
- 210-clip biasing suite:
| Condition (70 clips each) | v2 CER | v2.1 CER | v2.1 Prompt Parroting |
|---|---|---|---|
Short command + long glossary (short_long_prompt) | 21.88% | 7.19% | 0.0% |
Homophone / domain target hit (hit_homo) | 7.50% | 6.54% | 0.0% |
Pure distractor glossary (pure_distractor) | 10.14% | 10.02% | 0.0% |
- Held-out HK entity probe (
entity_probe_v1:220utterances,271mentions,20distractors/utt):v2.1BF16: entity recall89.67% → 94.83%,fix-rate 53.57%(15/28),break-rate 0.41%, distractor false-copy0.00%(0/4,400).
Before scoring standard benchmarks, text is converted to Simplified (OpenCC t2s), numbers are normalised and spaces removed. Language is forced to Cantonese.
Only Cantonese and Cantonese–English speech were evaluated; other languages may be worse than the stock model.
Usage (qwen-asr, Transformers backend)
import torch
from qwen_asr import Qwen3ASRModel # pip install qwen-asr
asr = Qwen3ASRModel.from_pretrained("koelony/Qwen3-ASR-1.7B-Cantonese-HK",
dtype=torch.bfloat16, device_map="cuda:0", max_new_tokens=256)
# Recommended: keep language="Cantonese" forced for Hong Kong Cantonese + English code-switching
print(asr.transcribe(audio="sample.wav", language="Cantonese")[0].text)
# Optional hotword / domain vocabulary biasing (comma-separated)
print(asr.transcribe(
audio="command.wav",
language="Cantonese",
context="閂燈, 開燈, 閂冷氣, OraType, GitHub, PR",
)[0].text)
Deployment Best Practices (Voice Activity & Non-Speech Guard)
- Language parameter: Keep
language="Cantonese"forced. Leavinglanguage=Noneshowed no significant code-switching improvement (-0.06 pt) while risking language misdetection on short/noisy clips. - Non-speech & silence filtering: Like stock Qwen3-ASR (
100%raw triggers on synthetic silence/ambientT3), the fine-tuned model can emit conversational HK priors such as"我哋嘅生活,就係咁樣嘅。"(53.5%raw on syntheticT3BF16,1.0%after guard) when fed pure silence or steady noise. Always pair inference with an energy/VAD gate (RMS/FireRedVAD) and a rate-aware hallucination filter for known"我哋嘅生活…"prefixes + extreme token-rate loops.
ComfyUI (ComfyUI-Drama3)
comfyui/qwen3_asr_1.7b_cantonese_hk_bf16.safetensors was made with ComfyUI-Drama3's own converter (commit 8cb3c64):
hf download koelony/Qwen3-ASR-1.7B-Cantonese-HK comfyui/qwen3_asr_1.7b_cantonese_hk_bf16.safetensors --local-dir ComfyUI/models/asr
Put it in ComfyUI/models/asr/ and pick it in Load Qwen3-ASR; set language to Cantonese in Qwen3-ASR Transcribe.
Used by
- Munia: a free, open-source voice keyboard for macOS and Windows. For Cantonese dictation, Munia can download a pinned
Q6_Kbuild andmmproj-Q8_0audio projector from the corresponding GGUF repository.
Support
If this model is useful to you, consider buying me a lemon tea (請飲杯檸檬茶) to support future open-source Cantonese speech training runs: buymeacoffee.com/joe2643 🍋
Credits
- Fine-tuning, quantization, and GGUF export: @joe2643 (HF)
- Fine-tuning strategy, data collection direction: @sennett-lau
- ComfyUI conversion tool: ComfyUI-Drama3 by PedroMarinhoDev