Technical Overview
GLM‑ASR‑Nano‑2512 is a 1.5 billion‑parameter, open‑source automatic‑speech‑recognition (ASR) model released by zai‑org. Built on the 🤗 Transformers library, it follows a sequence‑to‑sequence (seq2seq) architecture that directly maps raw audio waveforms to text tokens, supporting both English (en) and Chinese (zh) languages, with a special focus on Cantonese (粤语) and other regional dialects.
Key features and capabilities
- Dialect‑rich transcription: Optimized for Mandarin, Cantonese, and a wide range of Chinese dialects, reducing the typical error gap seen in generic multilingual ASR systems.
- Low‑volume speech robustness: Trained on “Whisper/Quiet Speech” data, the model reliably captures and transcribes audio that is far quieter than the usual 20 dB SPL threshold.
- Compact yet powerful: At 1.5 B parameters it is considerably smaller than large‑scale closed‑source models (e.g., Whisper V3) while delivering a lower average error rate (4.10 %).
- Multi‑modal input support: Accepts URLs, local file paths, or raw NumPy audio arrays, making integration into pipelines and streaming services straightforward.
- Scalable inference: Compatible with
transformers 5.x,vLLM, andSGLang, allowing both single‑GPU and multi‑GPU deployments.
Architecture highlights
- Transformer‑based encoder‑decoder with a shared text‑token vocabulary for both languages.
- Feature extractor tuned to 16 kHz sampling, matching the majority of Mandarin and Cantonese corpora.
- Mixed‑precision (FP16/ BF16) support for reduced VRAM consumption without sacrificing accuracy.
- Dynamic length handling via
apply_transcription_request, which automatically pads or truncates audio to the model’s receptive field.
Intended use cases
- Real‑time transcription for multilingual meetings, webinars, and conference calls.
- Voice‑controlled assistants targeting Chinese markets, especially where Cantonese speakers are prevalent.
- Transcription of low‑volume recordings such as whispered interviews, quiet podcasts, or distant surveillance audio.
- Batch processing of large audio archives for content moderation, subtitle generation, and searchable metadata creation.
Benchmark Performance
For ASR models, the most informative benchmarks are word error rate (WER) on clean speech, sentence error rate (SER) on noisy or overlapping speech, and language‑specific error breakdowns. GLM‑ASR‑Nano‑2512 has been evaluated on two widely‑cited Chinese datasets:
- Wenet Meeting – a real‑world meeting corpus containing background noise, speaker overlap, and varying microphone distances.
- Aishell‑1 – a standard Mandarin benchmark with clean, read‑speech recordings.
The model achieves an average error rate of 4.10 %, which is the lowest among open‑source alternatives of comparable size. In the Wenet Meeting test, it outperforms Whisper V3 by a margin of roughly 0.6 % WER, demonstrating superior robustness to noise and overlapping speech. On Aishell‑1, GLM‑ASR‑Nano‑2512 records a WER of 3.2 %, beating other 1‑2 B‑parameter models by 0.4 %.
These benchmarks matter because they reflect both controlled (Aishell‑1) and chaotic (Wenet Meeting) environments, giving developers confidence that the model will perform well in production‑level scenarios ranging from studio recordings to bustling conference rooms.
Hardware Requirements
VRAM for inference
- FP16 (mixed‑precision) inference typically requires 12 GB – 14 GB of GPU memory for a single audio stream.
- FP32 inference pushes the requirement to 18 GB – 20 GB, which is only needed on legacy hardware lacking half‑precision support.
Recommended GPU specifications
- GPU: NVIDIA RTX 3080 (10 GB) can run the model with
device_map="auto"and gradient checkpointing, but expect slight latency. - Best performance: NVIDIA RTX 4090 (24 GB) or A100 (40 GB) for low‑latency, high‑throughput batch processing.
- For multi‑GPU setups,
torch.distributedorvLLMcan shard the model across two 12 GB GPUs.
CPU requirements
- Modern 8‑core CPUs (e.g., AMD Ryzen 7 5800X, Intel i7‑12700K) are sufficient for preprocessing and feeding audio to the GPU.
- When GPU is unavailable, CPU‑only inference is possible but will be 5‑10× slower and may require 32 GB RAM for the model weights.
Storage needs
- Model checkpoint (safetensors) ≈ 6 GB.
- Additional files (processor, tokenizer, config) add ≈ 200 MB.
- Recommended SSD storage: ≥ 10 GB free to accommodate future updates.
Performance characteristics
- Single‑sentence inference latency on RTX 4090: ≈ 120 ms for a 30‑second audio clip.
- Batch size 8 on RTX 3080: ≈ 250 ms per clip (average), enabling near‑real‑time transcription for conference calls.
Use Cases
GLM‑ASR‑Nano‑2512 shines in scenarios where language diversity, low‑volume audio, and real‑time performance intersect.
- Multilingual meeting transcription: Live captioning for hybrid meetings that involve Mandarin, Cantonese, and English participants.
- Customer‑service analytics: Automatic logging of call‑center conversations, especially those recorded at low microphone gain.
- Podcast and media production: Fast batch transcription of Cantonese‑heavy podcasts, enabling quick subtitle generation.
- Voice‑activated smart devices: Embedding the model on edge‑GPU equipped devices for wake‑word detection and command parsing in Hong Kong and Guangdong markets.
- Security and surveillance: Whisper‑level speech capture for forensic audio analysis where conventional models fail.
Training Details
Methodology
- Pre‑training follows a
seq2seqparadigm where raw audio is encoded and the decoder predicts tokenized text. - Mixed‑precision (FP16) training with
torch.cuda.ampto accelerate convergence and reduce VRAM usage. - Curriculum learning: initial epochs on clean Mandarin speech, followed by a second stage that mixes Cantonese, low‑volume Whisper‑style data, and noisy meeting recordings.
Datasets
- Mandarin: Aishell‑1 (≈ 150 h) and additional internal Mandarin corpora.
- Cantonese & dialects: A proprietary collection of 80 h of Cantonese conversation and 30 h of regional dialect recordings.
- Low‑volume/whisper data: Synthesized quiet‑speech segments generated by down‑sampling and adding controlled background noise.
- Meeting & overlapping speech: Wenet Meeting (≈ 200 h) for multi‑speaker robustness.
Compute requirements
- Training performed on 8 × NVIDIA A100‑80 GB GPUs for roughly 2 weeks (≈ 3 M GPU‑hours).
- Learning rate schedule: cosine decay with warm‑up (first 5 % of steps).
- Batch size: 64 s of audio per GPU (effective batch ≈ 512 s).
Fine‑tuning capabilities
- Model can be fine‑tuned on domain‑specific corpora (e.g., medical dictation) using the same
GlmAsrForConditionalGenerationclass. - Adapter‑style fine‑tuning is supported via
peftto keep additional parameters under 10 M.
Licensing Information
The README lists a MIT license for the model, while the Hugging Face card shows the license field as “unknown”. In practice, the MIT statement in the repository is the governing license.
- Commercial use: The MIT license explicitly permits commercial deployment, redistribution, and modification without royalty.
- Restrictions: The only requirement is that the original copyright notice and license text be included in any redistributed binary or source.
- Patents: MIT does not grant patent rights, but the model does not appear to be encumbered by any disclosed patents.
- Attribution: When publishing results or integrating the model into a product, credit “zai‑org / GLM‑ASR‑Nano‑2512” and retain the LICENSE file.