[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-117261":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":14,"stars7d":14,"stars30d":14,"stars90d":15,"forks30d":15,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":10,"trendingCount":15,"starSnapshotCount":15,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},117261,"qwen3-asr-cantonese-hk","koelony\u002Fqwen3-asr-cantonese-hk","koelony","Hong Kong Cantonese fine-tune of Qwen3-ASR-1.7B: GGUF for llama.cpp \u002F OraType, quick start and benchmark","https:\u002F\u002Fhkasr.joe2643.work",null,"JavaScript",79,5,1,0,3,44.93,"Apache License 2.0",false,"main",true,[],"2026-11-22 12:59:48","2026-11-23 08:38:49","\u003Ca href=\"https:\u002F\u002Fkoelony.com\">\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"assets\u002Fkoelony-lockup-inverse.svg\">\n    \u003Cimg src=\"assets\u002Fkoelony-lockup.svg\" alt=\"Koelony\" height=\"56\">\n  \u003C\u002Fpicture>\n\u003C\u002Fa>\n\n# Qwen3-ASR Cantonese (Hong Kong)\n\n[![Hugging Face](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%A4%97%20Hugging%20Face-Models-blue)](https:\u002F\u002Fhuggingface.co\u002Fkoelony)\n[![Live demo](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLive%20demo-demo.koelony.com-d0201a)](https:\u002F\u002Fdemo.koelony.com)\n[![License: Apache-2.0](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-Apache--2.0-green.svg)](https:\u002F\u002Fopensource.org\u002Flicenses\u002FApache-2.0)\n[![Buy Me a Lemon Tea](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%8D%8B%20Buy%20Me%20a%20Lemon%20Tea-ffdd00)](https:\u002F\u002Fbuymeacoffee.com\u002Fjoe2643)\n\nFine-tunes of [`Qwen\u002FQwen3-ASR-1.7B`](https:\u002F\u002Fhuggingface.co\u002FQwen\u002FQwen3-ASR-1.7B) and\n[`Qwen\u002FQwen3-ASR-0.6B`](https:\u002F\u002Fhuggingface.co\u002FQwen\u002FQwen3-ASR-0.6B) for **Hong Kong colloquial Cantonese with English\ncode-switching**. It writes Hong Kong Traditional Chinese with the characters people actually use when\nthey speak (`係`, `喺`, `嘅`, `咗`, `㗎`, `撚`, `屌`), keeps English words in English, and avoids the Simplified or\nMainland-style output of the stock model.\n\n- **1.7B (v2.1)**: the most accurate. Use it on a desktop or server; v2.1 also supports short voice commands (`閂燈`, `開燈`, `閂冷氣`) and hotword context biasing without prompt parroting.\n- **0.6B**: about one-third the size. Also trained on short voice commands and hotword context biasing for lightweight \u002F edge deployment.\n\nPart of [Koelony](https:\u002F\u002Fkoelony.com), open-source models for Hong Kong Cantonese. Model page:\n[koelony.com\u002Fasr](https:\u002F\u002Fkoelony.com\u002Fasr\u002F). Code: [github.com\u002Fkoelony](https:\u002F\u002Fgithub.com\u002Fkoelony). Weights:\n[huggingface.co\u002Fkoelony](https:\u002F\u002Fhuggingface.co\u002Fkoelony).\n\n## Try it in your browser\n\n**[demo.koelony.com](https:\u002F\u002Fdemo.koelony.com)** runs the 0.6B model (int8 ONNX, about 1.16 GB, cached after the\nfirst load) entirely in the browser with WebGPU, falling back to WASM. Pick or drop an audio file, or record from the\nmicrophone; no audio leaves the device.\n\n> The demo at demo.koelony.com is built from koelony\u002Fdemo-site (private) since 2026-11-22; web\u002F here is kept for reference and will be removed by the model team.\n\n## Available weights & quantizations\n\n| Hugging Face repo | Format | Size | Runtime \u002F target |\n|---|---|---:|---|\n| [`koelony\u002FQwen3-ASR-1.7B-Cantonese-HK`](https:\u002F\u002Fhuggingface.co\u002Fkoelony\u002FQwen3-ASR-1.7B-Cantonese-HK) | BF16 (`safetensors`) + `comfyui\u002F` single-file | 4.08 GB | `transformers`, `qwen-asr`, vLLM, [ComfyUI-Drama3](https:\u002F\u002Fgithub.com\u002FPedroMarinhoDev\u002FComfyUI-Drama3) |\n| [`koelony\u002FQwen3-ASR-1.7B-Cantonese-HK-GGUF`](https:\u002F\u002Fhuggingface.co\u002Fkoelony\u002FQwen3-ASR-1.7B-Cantonese-HK-GGUF) | GGUF `Q4_K_M` \u002F `Q6_K` \u002F `Q8_0` + `mmproj-Q8_0` | 1.1–1.8 GB + 356 MB | `llama.cpp` (`llama-server`), [OraType](https:\u002F\u002Fgithub.com\u002Fsennett-lau\u002Foratype) |\n| [`koelony\u002FQwen3-ASR-1.7B-Cantonese-HK-FP8`](https:\u002F\u002Fhuggingface.co\u002Fkoelony\u002FQwen3-ASR-1.7B-Cantonese-HK-FP8) | FP8 W8A8 (`compressed-tensors`) | 2.67 GB | vLLM (`FP8_DYNAMIC`, larger KV-cache headroom) |\n| [`koelony\u002FQwen3-ASR-1.7B-Cantonese-HK-NVFP4`](https:\u002F\u002Fhuggingface.co\u002Fkoelony\u002FQwen3-ASR-1.7B-Cantonese-HK-NVFP4) | NVFP4A16 (`compressed-tensors`) | 2.05 GB | vLLM (fastest GPU throughput, smallest VRAM) |\n| [`koelony\u002FQwen3-ASR-0.6B-Cantonese-HK`](https:\u002F\u002Fhuggingface.co\u002Fkoelony\u002FQwen3-ASR-0.6B-Cantonese-HK) | 0.6B BF16 (`safetensors`) | 1.56 GB | `transformers`, `qwen-asr`, vLLM |\n| [`koelony\u002FQwen3-ASR-0.6B-Cantonese-HK-GGUF`](https:\u002F\u002Fhuggingface.co\u002Fkoelony\u002FQwen3-ASR-0.6B-Cantonese-HK-GGUF) | 0.6B GGUF `Q4_K_M` \u002F `Q6_K` \u002F `Q8_0` + `mmproj-Q8_0` | 397–639 MB + 214 MB | `llama.cpp` (`llama-server`), edge devices |\n\n## Benchmark\n\nCharacter error rate, greedy decoding, BF16 `transformers`, language forced to Cantonese. Before scoring, text is\nconverted to Simplified (OpenCC `t2s`), numbers are normalised and spaces removed.\n\n### 1.7B\n\n| Test set | Stock `Qwen3-ASR-1.7B` | v1 | v2 | **v2.1 (current)** | `whisper-large-v3` |\n|---|---:|---:|---:|---:|---:|\n| FLEURS (`yue_hant_hk`) | 4.20% | 4.00% | 3.95% | **3.89%** | 20.97% |\n| Common Voice `yue` | 5.46% | **3.80%** | 3.86% | 3.94% | 36.44% |\n| Common Voice 23 `zh-HK` | 7.65% | 5.18% | 5.09% | **5.02%** | 41.76% |\n| MDCC | 4.25% | 2.53% | 2.49% | **2.47%** | 34.52% |\n| LegCo (HK Legislative Council) | 7.22% | 7.17% | **7.16%** | **7.16%** | 32.15% |\n| MCE (Cantonese–English code-switching) | 11.74% | 5.61% | 5.62% | **5.52%** | 24.00% |\n\nHotword context, 210-clip stress suite (70 clips per condition):\n\n| Condition | 1.7B v2 CER | **1.7B v2.1 CER** | v2.1 Parrot rate |\n|---|---:|---:|---:|\n| Relevant hotwords + homophone distractors | 7.50% | **6.54%** | **0.0%** |\n| Only irrelevant hotwords | 10.14% | **10.02%** | **0.0%** |\n| Very short audio + long hotword list | 21.88% | **7.19%** | **0.0%** |\n\n#### 1.7B quantized variants\n\n- **GGUF v2.1 (`llama-server`, 60-clip check without number normalisation):** `Q4_K_M` **2.59%**, `Q6_K` **2.89%**, `Q8_0` **2.89%**.\n- **vLLM (`qwen-asr[vllm]` 0.0.6 on RTX 4090, FLEURS `yue_hant_hk` 819 clips \u002F 2.65 h audio):**\n\n| Variant | Weights | FLEURS CER | Batch time (2.65 h audio) | Single-clip p50 |\n|---|---:|---:|---:|---:|\n| BF16 | 4.08 GB | 3.96% | 11.6 s | 0.22 s |\n| FP8 (`FP8_DYNAMIC`) | 2.67 GB | 4.05% | 41.8 s | 0.50 s |\n| NVFP4 (`NVFP4A16`) | 2.05 GB | 4.49% | **8.4 s** | **0.13 s** |\n\n### 0.6B\n\n| Test set | Stock `Qwen3-ASR-0.6B` | **0.6B fine-tune** | 1.7B v2, for comparison |\n|---|---:|---:|---:|\n| FLEURS (`yue_hant_hk`) | 6.10% | **5.70%** | 3.95% |\n| Common Voice `yue` | 6.84% | **5.12%** | 3.86% |\n| Common Voice 23 `zh-HK` | 9.55% | **6.44%** | 5.09% |\n| MDCC | 5.45% | **3.29%** | 2.49% |\n| LegCo (HK Legislative Council) | 8.81% | **7.62%** | 7.16% |\n| MCE (Cantonese–English code-switching) | 15.52% | **6.98%** | 5.62% |\n\nHotword context, 210-clip stress suite. Parrot rate is how often the model writes a hotword that was not spoken.\n\n| Condition | Stock `Qwen3-ASR-0.6B` CER | **0.6B fine-tune** CER | Parrot rate |\n|---|---:|---:|---:|\n| Relevant hotwords + homophone distractors | 11.23% | **8.14%** | **0.0%** |\n| Only irrelevant hotwords | 15.69% | **11.92%** | **0.0%** |\n| Very short audio + long hotword list | 14.38% | **12.50%** | **0.0%** |\n\n- **GGUF (`llama-server`, 60-clip check without number normalisation):** `Q4_K_M` 4.76%, `Q6_K` 4.52%, `Q8_0` 4.76%.\n\n## Quick start (`llama.cpp` \u002F GGUF)\n\nYou need a `llama.cpp` build with Qwen3-ASR audio support (tested with commit `78ffbaa`, 2026-11-10).\n\n```sh\nhf download koelony\u002FQwen3-ASR-1.7B-Cantonese-HK-GGUF \\\n  Qwen3-ASR-1.7B-Cantonese-HK.Q4_K_M.gguf Qwen3-ASR-1.7B-Cantonese-HK.mmproj-Q8_0.gguf --local-dir models\n\nllama-server \\\n  -m models\u002FQwen3-ASR-1.7B-Cantonese-HK.Q4_K_M.gguf \\\n  --mmproj models\u002FQwen3-ASR-1.7B-Cantonese-HK.mmproj-Q8_0.gguf \\\n  --host 127.0.0.1 --port 8180 -c 4096 -np 1\n```\n\nThen transcribe any audio file (needs `ffmpeg`, nothing else):\n\n```sh\npython examples\u002Ftranscribe.py clip.m4a another.wav\n```\n\nOr call the OpenAI-compatible endpoint yourself:\n\n```sh\ncurl http:\u002F\u002F127.0.0.1:8180\u002Fv1\u002Fchat\u002Fcompletions -H \"Content-Type: application\u002Fjson\" -d '{\n  \"messages\": [{\"role\": \"user\", \"content\": [{\"type\": \"input_audio\",\n    \"input_audio\": {\"data\": \"'\"$(base64 -w0 clip.wav)\"'\", \"format\": \"wav\"}}]}],\n  \"temperature\": 0}'\n```\n\nThe reply looks like `language Cantonese\u003Casr_text>…`; the transcript is the part after `\u003Casr_text>`.\nOn a Ryzen AI Max+ 395 with a CPU-only build, `Q4_K_M` takes about 0.45 s for a 3 s clip.\n\n| File | Size | Use |\n|---|---:|---|\n| `Qwen3-ASR-1.7B-Cantonese-HK.Q4_K_M.gguf` | 1.1 GB | default, fastest |\n| `Qwen3-ASR-1.7B-Cantonese-HK.Q6_K.gguf` | 1.4 GB | as accurate as `Q8_0` in our check, 400 MB smaller |\n| `Qwen3-ASR-1.7B-Cantonese-HK-Q8_0.gguf` | 1.8 GB | largest |\n| `Qwen3-ASR-1.7B-Cantonese-HK.mmproj-Q8_0.gguf` | 356 MB | audio encoder, required with any GGUF above |\n\nSHA-256 values are in the [GGUF model card](https:\u002F\u002Fhuggingface.co\u002Fkoelony\u002FQwen3-ASR-1.7B-Cantonese-HK-GGUF).\n\nFor the 0.6B model, download from `koelony\u002FQwen3-ASR-0.6B-Cantonese-HK-GGUF` and replace `1.7B` with `0.6B` in the\nfile names. `Q4_K_M` with its `mmproj` is about 611 MB in total.\n\n| File | Size | Use |\n|---|---:|---|\n| `Qwen3-ASR-0.6B-Cantonese-HK.Q4_K_M.gguf` | 397 MB | default, smallest |\n| `Qwen3-ASR-0.6B-Cantonese-HK.Q6_K.gguf` | 495 MB | most accurate in our check |\n| `Qwen3-ASR-0.6B-Cantonese-HK-Q8_0.gguf` | 639 MB | largest |\n| `Qwen3-ASR-0.6B-Cantonese-HK.mmproj-Q8_0.gguf` | 214 MB | audio encoder, required with any 0.6B GGUF above |\n\nSHA-256 values are in the [0.6B GGUF model card](https:\u002F\u002Fhuggingface.co\u002Fkoelony\u002FQwen3-ASR-0.6B-Cantonese-HK-GGUF).\n\n#### Hotwords (1.7B v2.1 & 0.6B)\n\nPut a comma-separated hotword list in a `system` message:\n\n```sh\ncurl http:\u002F\u002F127.0.0.1:8180\u002Fv1\u002Fchat\u002Fcompletions -H \"Content-Type: application\u002Fjson\" -d '{\n  \"messages\": [\n    {\"role\": \"system\", \"content\": \"閂燈, 開燈, 閂冷氣, 較細聲啲\"},\n    {\"role\": \"user\", \"content\": [{\"type\": \"input_audio\",\n      \"input_audio\": {\"data\": \"'\"$(base64 -w0 clip.wav)\"'\", \"format\": \"wav\"}}]}\n  ],\n  \"temperature\": 0}'\n```\n\n## Quick start (Python `transformers` \u002F `vLLM` \u002F ComfyUI)\n\n### `qwen-asr` (`transformers` BF16)\n\n```python\nimport torch\nfrom qwen_asr import Qwen3ASRModel  # pip install qwen-asr\n\nasr = Qwen3ASRModel.from_pretrained(\n    \"koelony\u002FQwen3-ASR-1.7B-Cantonese-HK\",\n    dtype=torch.bfloat16,\n    device_map=\"cuda:0\",\n    max_new_tokens=256,\n)\nprint(asr.transcribe(audio=\"sample.wav\", language=\"Cantonese\")[0].text)\n```\n\nFor the 0.6B model, use `\"koelony\u002FQwen3-ASR-0.6B-Cantonese-HK\"`. Both 1.7B (v2.1) and 0.6B accept hotwords via `context`:\n\n```python\nprint(asr.transcribe(audio=\"command.wav\", language=\"Cantonese\", context=\"閂燈, 開燈, 閂冷氣, 較細聲啲\")[0].text)\n```\n\n### `qwen-asr` (`vLLM` with NVFP4 or FP8)\n\n```python\nfrom qwen_asr import Qwen3ASRModel  # pip install \"qwen-asr[vllm]==0.0.6\"\n\nasr = Qwen3ASRModel.LLM(\n    model=\"koelony\u002FQwen3-ASR-1.7B-Cantonese-HK-NVFP4\",  # or -FP8 \u002F BF16 repo\n    gpu_memory_utilization=0.5,\n    max_model_len=4096,\n    max_new_tokens=256,\n)\nprint(asr.transcribe(audio=\"sample.wav\", language=\"Cantonese\")[0].text)\n```\n\n### ComfyUI ([ComfyUI-Drama3](https:\u002F\u002Fgithub.com\u002FPedroMarinhoDev\u002FComfyUI-Drama3))\n\n```sh\nhf download koelony\u002FQwen3-ASR-1.7B-Cantonese-HK \\\n  comfyui\u002Fqwen3_asr_1.7b_cantonese_hk_bf16.safetensors --local-dir ComfyUI\u002Fmodels\u002Fasr\n```\n\nSelect `qwen3_asr_1.7b_cantonese_hk_bf16.safetensors` in **Load Qwen3-ASR** and set `language` to `Cantonese`.\n\n## Evaluate on your own clips\n\n```sh\npip install opencc-python-reimplemented\npython eval\u002Feval_cer.py my_test.jsonl --out hyp.jsonl\n```\n\n`my_test.jsonl` has one clip per line: `{\"audio\": \"clip.wav\", \"text\": \"reference transcript\"}`. This script does not\nnormalise numbers, so sets whose references contain digits score a little higher than in the table above.\n\n## Versions\n\n| Version | Date | BF16 revision | GGUF revision | FP8 \u002F NVFP4 |\n|---|---|---|---|---|\n| **v2.1 (current)** | 2026-11-14 | `main` | `main` | — |\n| v2 | 2026-11-10 | [`5c1df898`](https:\u002F\u002Fhuggingface.co\u002Fkoelony\u002FQwen3-ASR-1.7B-Cantonese-HK\u002Ftree\u002F5c1df898) | [`b1c3dc91`](https:\u002F\u002Fhuggingface.co\u002Fkoelony\u002FQwen3-ASR-1.7B-Cantonese-HK-GGUF\u002Ftree\u002Fb1c3dc91) | `main` |\n| v1 | 2026-11-07 | [`399c5ef`](https:\u002F\u002Fhuggingface.co\u002Fkoelony\u002FQwen3-ASR-1.7B-Cantonese-HK\u002Ftree\u002F399c5ef) | [`1afe540`](https:\u002F\u002Fhuggingface.co\u002Fkoelony\u002FQwen3-ASR-1.7B-Cantonese-HK-GGUF\u002Ftree\u002F1afe540def044173f7412dc72584f803b92bfa96) | — |\n\nv2.1 adds context \u002F hotword vocabulary alignment on top of v2 (`21.88% -> 7.19%` CER on short commands with long glossaries, `0.0%` parroting) and includes updated BF16, `comfyui\u002F` single-file, and GGUF (`Q4_K_M`, `Q6_K`, `Q8_0`, `mmproj-Q8_0`) weights. Pin the revision above if you need v2 or v1.\n\nThe table above is for 1.7B. The 0.6B model has one version so far, released 2026-11-13 (BF16 and GGUF, `main`).\n\n## Limitations\n\n- Only Cantonese and Cantonese–English speech were evaluated. Mandarin-only or English-only speech may be worse than the\n  stock model.\n- Clips up to about 30 seconds were tested. Split longer recordings first.\n- Output has punctuation but no timestamps.\n\n## Used by\n\n- [OraType](https:\u002F\u002Fgithub.com\u002Fsennett-lau\u002Foratype): free, open-source voice typing for macOS. It ships the GGUF\n  `Q6_K` (v2) with the `mmproj-Q8_0` encoder as its built-in speech model for Cantonese.\n\n## Support\n\nIf these Cantonese models save you time or GPU budget, consider buying me a lemon tea (請飲杯檸檬茶) to help fund future open-source Cantonese speech training runs: **[buymeacoffee.com\u002Fjoe2643](https:\u002F\u002Fbuymeacoffee.com\u002Fjoe2643)** 🍋\n\n## Credits\n\n- Fine-tuning, quantization, and GGUF export: [@joe2643](https:\u002F\u002Fgithub.com\u002Fjoe2643)\n- Fine-tuning strategy, data collection direction: [@sennett-lau](https:\u002F\u002Fgithub.com\u002Fsennett-lau)\n\nBase models: [Qwen3-ASR-1.7B](https:\u002F\u002Fhuggingface.co\u002FQwen\u002FQwen3-ASR-1.7B) and\n[Qwen3-ASR-0.6B](https:\u002F\u002Fhuggingface.co\u002FQwen\u002FQwen3-ASR-0.6B) by the Qwen team (Apache-2.0).\n\n## License\n\nApache-2.0, same as the base models.\n",2,"2026-11-24 04:55:13","CREATED_QUERY"]