AchillASR-Tiny-AZ
Fastest and smallest in this comparison for Azerbaijani ASR
In this comparison, AchillASR-Tiny-AZ has the fewest parameters and the highest measured audio speed. It starts from AuroraASR-1M and was trained further on 1,150 hours of Azerbaijani speech.
Performance comparison
| Model | Parameters | WER | CER | GPU speed (× real time; Triton / CPU features for Achill) | CPU speed (× real time) |
|---|---|---|---|---|---|
| Whisper-small (baseline) | 242M | 52.17% | 14.52% | 10× | 5.6× |
| Whisper-medium (baseline) | 769M | 34.54% | 9.00% | 3.3× | 2.0× |
| Whisper-large-v3 (baseline) | 1,543M | 21.00% | 5.51% | 1.5× | 0.57×* |
| Whisper-large-v3-turbo (baseline) | 809M | 22.99% | 6.55% | 15.1× | 5.1× |
| AchillASR-Tiny-AZ | 0.982M | 21.97% | 7.08% | 1,787.8× / 652.2× | ~917× |
Inference speed
“× real time” shows how many hours of audio a model can process in one hour. For example, 10× means ten hours of audio in one hour.
On the same RTX 4060 Laptop, we tested Achill on 10 fixed audio clips. We ran each clip 20 times. With Triton feature extraction, it processed 1,042.6 seconds of audio in 0.583 seconds: 1,787.8× real time, or 342.9 clips per second. With the official CPU feature extractor and the model still on the GPU, it took 1.598 seconds: 652.2× real time, or 125.1 clips per second. Triton gave 2.74× more throughput and cut the measured time by 63.5%. For this setup, use the GPU Triton extractor.
Both GPU tests used batch size 1 and greedy CTC decoding. Timing includes feature extraction, model work, and decoding. It does not include file reading or audio resampling. PyTorch reported peak allocated VRAM of 0.02 GiB with Triton and 0.01 GiB with CPU feature extraction. Total GPU use may be higher. A separate CPU-only test used an Intel Core i7-13650HX with 4 PyTorch threads and reached about 917× real time.
Whisper speed results come from published tests, not from the same test as Achill. The small, medium, and large-v3 GPU results used a desktop RTX 4060, faster-whisper/CTranslate2, FP16, and beam size 5 (benchmark). The turbo result used an RTX 4060 Laptop and batch size 1 (benchmark). The CPU results for small, medium, and large-v3 used a Core i7-10810U laptop (results). The turbo CPU result used a 32-core EPYC 7702P (results). These results use different computers and settings, so treat the speeds as rough references. The large-v3 CPU result changed between runs.
To run the GPU speed test from the project folder, use Triton feature extraction:
TRITON_DEFAULT_FP_FUSION=1 venv/bin/python AchillASR-Tiny-AZ/benchmark_inference.py --device cuda --repeats 20
To keep the model on the GPU but extract features on the CPU, use:
TRITON_DEFAULT_FP_FUSION=1 venv/bin/python AchillASR-Tiny-AZ/benchmark_inference.py --device cuda --extractor cpu --repeats 20
The speed script accepts an audio-only JSONL manifest with --manifest PATH and can limit the number of clips with --limit N.
Check your own transcriptions
Create a JSONL file with one audio path and its reference text per line. Paths can be absolute or relative to the JSONL file:
{"audio":"audio/clip_01.wav","text":"Salam, necəsən?"}
{"audio":"audio/clip_02.wav","text":"Bu gün hava günəşlidir."}
Run the evaluator with your manifest path:
venv/bin/python AchillASR-Tiny-AZ/evaluate_manifest.py --manifest /path/to/manifest.jsonl --device cuda
It prints each audio path, reference text, and model prediction, then calculates WER and CER for the supplied examples. Use --device cpu to run without CUDA.
Model details
- Language: Azerbaijani
- Audio: mono, 16 kHz
- Features: 80 log-Mel values; 25 ms window and 10 ms step
- Model: Conformer-lite encoder with CTC output and shared block weights
- Tokenizer: SentencePiece BPE with 512 text tokens and one CTC blank token; 513 output classes
- Decoder: greedy CTC decoding; removes repeats and blank tokens, then reads the text tokens
Use the model
Install torch, torchaudio, transformers, sentencepiece, and soundfile. Then load the model like this:
import soundfile as sf
import torch
import torchaudio.functional as AF
from transformers import AutoModelForCTC
repo_id = "Izahat2/AchillASR-Tiny-AZ"
model = AutoModelForCTC.from_pretrained(repo_id, trust_remote_code=True)
model.eval()
audio, sample_rate = sf.read("speech.wav", dtype="float32", always_2d=True)
audio = audio.mean(axis=1) # convert to mono
if sample_rate != 16_000:
audio = AF.resample(torch.from_numpy(audio), sample_rate, 16_000).numpy()
text = model.transcribe(audio, sampling_rate=16_000)[0]
print(text)
The model files include the weights, settings, model code, and tokenizer. Check the licenses for the original model and training audio before sharing this model. The base model is AuroraASR-1M.
- Downloads last month
- 52