Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: openrail
|
| 3 |
+
language: [am, amh]
|
| 4 |
+
tags: [automatic-speech-recognition, onnx, onnx-asr, whisper, amharic]
|
| 5 |
+
base_model: chappM/whisper-amharic-small-v2
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# whisper-amharic-small-v2 β ONNX
|
| 9 |
+
|
| 10 |
+
ONNX export of [chappM/whisper-amharic-small-v2](https://huggingface.co/chappM/whisper-amharic-small-v2)
|
| 11 |
+
(Whisper small fine-tuned for Amharic by [chappM](https://huggingface.co/chappM)) for
|
| 12 |
+
[onnx-asr](https://github.com/istupakov/onnx-asr) (standard `whisper` model type β works with
|
| 13 |
+
stock onnx-asr, no patches needed). fp32 and int8 variants included.
|
| 14 |
+
|
| 15 |
+
License: openrail, inherited from the source model.
|
| 16 |
+
|
| 17 |
+
First specialized ONNX ASR model for Amharic in this collection.
|
| 18 |
+
|
| 19 |
+
## Usage
|
| 20 |
+
|
| 21 |
+
```python
|
| 22 |
+
import onnx_asr
|
| 23 |
+
model = onnx_asr.load_model("whisper", "path/to/this/repo") # or quantization="int8"
|
| 24 |
+
print(model.recognize("audio_16khz.wav", language="am"))
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
Verified on a FLEURS Amharic (`am_et`) test clip (a sentence with two number sequences,
|
| 28 |
+
"117" and "45"):
|
| 29 |
+
|
| 30 |
+
- Reference: "α α΄αΆα½ α‘α΅α αα΅α₯ α α«α΅ α¨α α¨αΆ α°ααΈα«α³αΎα½ α©α«αΈαα αα¨α¨α΅ α αα»αα α ααα α΅ααα α«αα΅ α¨117α± α¨α α¨αΆ α°ααΈα«α³αΎα½ 45α± α αα΅α΅α© α°α¨α αααα΅ α αα»αα"
|
| 31 |
+
- fp32 (RTF 0.94): correct through the first clause, then degrades into a repetition loop
|
| 32 |
+
around the digit-heavy portion of the sentence.
|
| 33 |
+
- int8 (RTF 0.30): also correct through the first clause, degrades less severely on the
|
| 34 |
+
same digit-heavy portion, and terminates instead of looping.
|
| 35 |
+
|
| 36 |
+
**Known limitation, not a quantization artifact**: this checkpoint struggles with digit
|
| 37 |
+
sequences spoken as words ("one hundred seventeen", "forty-five") in this test clip, in both
|
| 38 |
+
precisions β likely a training-data gap in the base fine-tune rather than something
|
| 39 |
+
introduced by this ONNX conversion. The first ~half of the sentence transcribes correctly and
|
| 40 |
+
fluently in both variants; treat this export as verified-with-caveats rather than fully clean.
|
| 41 |
+
RTF measured on an AMD Ryzen 5 7600 (CPU, 4 OMP threads, shared/loaded box β not a clean
|
| 42 |
+
benchmark number).
|
| 43 |
+
|
| 44 |
+
Int8 decoder was produced by quantizing the pre-merge decoders separately and re-merging
|
| 45 |
+
(`merge_decoders(..., strict=False)`); direct quantization of the merged decoder graph does
|
| 46 |
+
not shrink it (its `If` subgraphs are skipped by onnxruntime's dynamic quantizer).
|