Instructions to use OpenASR/whisper-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenASR
How to use OpenASR/whisper-small with OpenASR:
# Install the openasr CLI: https://github.com/QuintinShaw/openasr/releases openasr pull whisper-small openasr transcribe audio.wav --model whisper-small
- Notebooks
- Google Colab
- Kaggle
Commit Β·
a46dce8
verified Β·
0
Parent(s):
publish whisper-small OpenASR packs
Browse files- .gitattributes +1 -0
- README.md +114 -0
- whisper-small-fp16.oasr +3 -0
- whisper-small-q4_k.oasr +3 -0
- whisper-small-q8_0.oasr +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
*.oasr filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: openai/whisper-small
|
| 4 |
+
pipeline_tag: automatic-speech-recognition
|
| 5 |
+
library_name: openasr
|
| 6 |
+
tags:
|
| 7 |
+
- automatic-speech-recognition
|
| 8 |
+
- speech-to-text
|
| 9 |
+
- openasr
|
| 10 |
+
- oasr
|
| 11 |
+
- whisper-small
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
<div align="center">
|
| 15 |
+
|
| 16 |
+
# Whisper Small Β· OpenASR
|
| 17 |
+
|
| 18 |
+
**Compact multilingual Whisper for local transcription**
|
| 19 |
+
|
| 20 |
+
[](https://huggingface.co/openai/whisper-small/blob/main/README.md)
|
| 21 |
+
[](https://github.com/QuintinShaw/openasr)
|
| 22 |
+
[](https://openasr.org)
|
| 23 |
+
[](https://huggingface.co/openai/whisper-small)
|
| 24 |
+
|
| 25 |
+
Native speech-to-text in the **[OpenASR](https://github.com/QuintinShaw/openasr)** runtime β
|
| 26 |
+
engineered for peak performance on CPU & GPU, **no Python at inference time**.
|
| 27 |
+
|
| 28 |
+
</div>
|
| 29 |
+
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
## β¨ Highlights
|
| 33 |
+
|
| 34 |
+
- π§ **Multilingual ASR** β transcribes many languages and can translate speech to English
|
| 35 |
+
- π§ **244M parameters** β the small Whisper checkpoint balances accuracy, footprint, and speed
|
| 36 |
+
- π **Weak-supervision scale** β trained with Whisper's 680k-hour labelled speech corpus
|
| 37 |
+
- π¦ **Native in OpenASR** β `.oasr` packs run with no Python at inference, engineered for peak performance on CPU & GPU
|
| 38 |
+
|
| 39 |
+
## π Quickstart
|
| 40 |
+
|
| 41 |
+
```bash
|
| 42 |
+
# 1. Install the OpenASR CLI Β· https://openasr.org
|
| 43 |
+
# 2. Pull a build (pick a quant β see the table below)
|
| 44 |
+
openasr pull whisper-small:q8
|
| 45 |
+
|
| 46 |
+
# 3. Transcribe
|
| 47 |
+
openasr transcribe audio.wav --model whisper-small
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
All builds for this model:
|
| 51 |
+
|
| 52 |
+
```bash
|
| 53 |
+
openasr pull whisper-small:fp16
|
| 54 |
+
openasr pull whisper-small:q8
|
| 55 |
+
openasr pull whisper-small:q4
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
## π¦ Available builds
|
| 59 |
+
|
| 60 |
+
| Quant | File (`.oasr`) | Size | RAM peak | RTF Β· M1 CPU | RTF Β· M1 GPU | JFK ΞWER vs fp16 |
|
| 61 |
+
|:------|:---------------|-----:|---------:|-------------:|-------------:|-----------------:|
|
| 62 |
+
| fp16 | `whisper-small-fp16.oasr` | 489 MB | 1.64 GB | 0.16Γ | 0.23Γ | 0.0% |
|
| 63 |
+
| q8_0 | `whisper-small-q8_0.oasr` | 303 MB | 1.01 GB | 0.15Γ | 0.10Γ | 0.0% |
|
| 64 |
+
| q4_k | `whisper-small-q4_k.oasr` | 204 MB | 795 MB | 0.14Γ | 0.13Γ | 0.0% |
|
| 65 |
+
|
| 66 |
+
<sub>RTF = real-time factor on the fixed 11s JFK clip (**lower is faster**); RAM peak measured per pack
|
| 67 |
+
in an isolated subprocess. JFK ΞWER compares each quantized build's JFK transcript to this model's
|
| 68 |
+
fp16 JFK transcript, so it measures quantization drift rather than absolute recognition accuracy.
|
| 69 |
+
**q8_0** is the recommended default β near-reference quality at a fraction of the
|
| 70 |
+
footprint.</sub>
|
| 71 |
+
|
| 72 |
+
## π§ About Whisper Small
|
| 73 |
+
|
| 74 |
+
Whisper Small is OpenAI's 244M-parameter multilingual Whisper checkpoint. It uses the
|
| 75 |
+
standard Whisper encoder-decoder architecture for automatic speech recognition and speech
|
| 76 |
+
translation, trained with large-scale weak supervision on 680k hours of labelled speech.
|
| 77 |
+
Compared with larger Whisper checkpoints, the small model is easier to run locally while
|
| 78 |
+
retaining the broad zero-shot behavior that makes Whisper useful across noisy datasets and
|
| 79 |
+
domains. This OpenASR repo repackages the original `openai/whisper-small` weights as
|
| 80 |
+
`.oasr` packs that run natively in the OpenASR runtime with no Python at inference time.
|
| 81 |
+
For most users the q8_0 build is the recommended default; q4_k is for tighter memory
|
| 82 |
+
budgets and fp16 is for verification or maximum fidelity.
|
| 83 |
+
|
| 84 |
+
## βοΈ How these packs were made
|
| 85 |
+
|
| 86 |
+
Converted from [openai/whisper-small](https://huggingface.co/openai/whisper-small) with the OpenASR importer:
|
| 87 |
+
|
| 88 |
+
```bash
|
| 89 |
+
openasr model-pack import whisper <src> <out>.oasr \
|
| 90 |
+
--package-id whisper-small --quantization {fp16,q8-0,q4-k}
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
The `.oasr` container is GGUF-backed; packs use zero-copy mmap weight binding and graph
|
| 94 |
+
buffer reuse to keep peak memory low.
|
| 95 |
+
|
| 96 |
+
## βοΈ License
|
| 97 |
+
|
| 98 |
+
These packs **inherit the upstream model's license: Apache-2.0**
|
| 99 |
+
([source](https://huggingface.co/openai/whisper-small/blob/main/README.md)). OpenASR packaging retains the upstream copyright and
|
| 100 |
+
NOTICE; the only modifications are format conversion and quantization.
|
| 101 |
+
|
| 102 |
+
## π Acknowledgements
|
| 103 |
+
|
| 104 |
+
This pack is a redistribution of **Whisper Small**, released by **OpenAI**
|
| 105 |
+
([openai/whisper-small](https://huggingface.co/openai/whisper-small)).
|
| 106 |
+
All credit for the original model, training recipe, and weights belongs to OpenAI. The
|
| 107 |
+
upstream Hugging Face model card declares Apache-2.0 licensing; OpenASR only converts the
|
| 108 |
+
weights into `.oasr` packages and adds quantized builds for local runtime use.
|
| 109 |
+
|
| 110 |
+
## π Links
|
| 111 |
+
|
| 112 |
+
- π¦ **OpenASR** β <https://github.com/QuintinShaw/openasr>
|
| 113 |
+
- π **Website** β <https://openasr.org>
|
| 114 |
+
- π€ **Upstream model** β [openai/whisper-small](https://huggingface.co/openai/whisper-small)
|
whisper-small-fp16.oasr
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d345cd15361bd8e8d906cdc81a1a863c66d0d9a5770521fcac7a4c9a61923208
|
| 3 |
+
size 488712576
|
whisper-small-q4_k.oasr
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0b1c54e6488bd5973d37a773fc004312a1ed4bd7fe3d69b78dc4ae87986f078
|
| 3 |
+
size 246294848
|
whisper-small-q8_0.oasr
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9116ff1cb3a2a48850ba4f557901b75f9ab9f4c6c252534d77bd9ed23e7bc008
|
| 3 |
+
size 302918016
|