Views
No views yet
Attribution & Credits:
This model family is based on the state-of-the-art Zipformer2-CTC architecture developed by Quran-Lab (Quran-Lab/zipformer_p-arabic-v3). All original training, phonetization, and dataset curation credits belong to the Quran-Lab team and the authors of quran-transcript.
| Model File | Precision / Quant | Size | Recommended Platform | Realtime Speedup (RTF) |
|---|---|---|---|---|
zipformer_p_arabic_v3.1.fp16.onnx | Pure FP16 (Tensor Core) | 126.2 MB | NVIDIA GPU (CUDA / Tensor Cores) | >220x – 235x realtime (RTF < 0.0045) |
zipformer_p_arabic_v3.1.onnx | FP32 (v3.1 madd fine-tune) | 250.8 MB | High-precision CPU / GPU | ~100x realtime (GPU) / 3.5x (CPU) |
zipformer_p_arabic_v3.1.int8.onnx | INT8 / Q8 Quantized | 69.3 MB | Mobile / Embedded / Laptop CPU | ~12x – 15x realtime (x86 CPU) |
zipformer_p_arabic_v3.onnx | FP32 (v3 Base) | 250.8 MB | Reference FP32 | ~100x realtime (GPU) |
zipformer_p_arabic_v3.int8.onnx | INT8 / Q8 (v3 Base) | 69.3 MB | Standard CPU deployment | ~12x realtime (CPU) |
tokens.txt | CTC Symbol Table (251 units) | 2.3 KB | Required for decoding | — |
config.json | Model Hyperparameters | 177 B | Config metadata | — |
0.00 ms mean delta against FP32 reference alignment.6.69 seconds flat.~6.3 minutes.quran-forced-align1# Installs and runs with automatic GPU/CPU detection and auto-model caching:
2pip install quran-forced-align
3
4# Single Surah alignment (JSON + SRT):
5quran-forced-align --surah 66 --audio audio/066_basit.mp3 --out output/066.json1import onnxruntime as ort
2import numpy as np
3
4# Load FP16 model on CUDA Execution Provider:
5opts = ort.SessionOptions()
6opts.graph_optimization_level = ort.GraphOptimizationLevel.ORT_ENABLE_ALL
7
8session = ort.InferenceSession(
9 "zipformer_p_arabic_v3.1.fp16.onnx",
10 sess_options=opts,
11 providers=[('CUDAExecutionProvider', {'device_id': 0, 'enable_cuda_graph': True}), 'CPUExecutionProvider']
12)tokens.txt: CTC 251-symbol table.config.json: Model configuration.