whisper-base / README.md
OpenASR's picture
publish whisper-base OpenASR packs
fdd4c60 verified
|
Raw
History Blame Contribute Delete
4.67 kB
---
license: apache-2.0
base_model: openai/whisper-base
pipeline_tag: automatic-speech-recognition
library_name: openasr
tags:
- automatic-speech-recognition
- speech-to-text
- openasr
- oasr
- whisper-base
---
<div align="center">
# Whisper Base Β· OpenASR
**Compact multilingual Whisper, a step up from tiny**
[![License](https://img.shields.io/badge/license-Apache--2.0-2563eb.svg)](https://huggingface.co/openai/whisper-base/blob/main/README.md)
[![Format](https://img.shields.io/badge/format-.oasr-7c3aed.svg)](https://github.com/QuintinShaw/openasr)
[![Runtime](https://img.shields.io/badge/runtime-OpenASR-111827.svg)](https://openasr.org)
[![Base model](https://img.shields.io/badge/base-whisper--base-f59e0b.svg)](https://huggingface.co/openai/whisper-base)
Native speech-to-text in the **[OpenASR](https://github.com/QuintinShaw/openasr)** runtime β€”
engineered for peak performance on CPU & GPU, **no Python at inference time**.
</div>
---
## ✨ Highlights
- 🎧 **Multilingual ASR** β€” transcribes many languages and can translate speech to English
- πŸͺΆ **74M parameters** β€” a small footprint with noticeably better accuracy than tiny
- 🌐 **Weak-supervision scale** β€” trained with Whisper's 680k-hour labelled speech corpus
- πŸ¦€ **Native in OpenASR** β€” `.oasr` packs run with no Python at inference, engineered for peak performance on CPU & GPU
## πŸš€ Quickstart
```bash
# 1. Install the OpenASR CLI Β· https://openasr.org
# 2. Pull a build (pick a quant β€” see the table below)
openasr pull whisper-base:q8
# 3. Transcribe
openasr transcribe audio.wav --model whisper-base
```
All builds for this model:
```bash
openasr pull whisper-base:fp16
openasr pull whisper-base:q8
openasr pull whisper-base:q4
```
## πŸ“¦ Available builds
| Quant | File (`.oasr`) | Size | RAM peak | RTF Β· M1 CPU | RTF Β· M1 GPU | JFK Ξ”WER vs fp16 |
|:------|:---------------|-----:|---------:|-------------:|-------------:|-----------------:|
| fp16 | `whisper-base-fp16.oasr` | 149 MB | 542 MB | 0.08Γ— | 0.06Γ— | 0.0% |
| q8_0 | `whisper-base-q8_0.oasr` | 108 MB | 405 MB | 0.07Γ— | 0.06Γ— | 0.0% |
| q4_k | `whisper-base-q4_k.oasr` | 86 MB | 364 MB | 0.06Γ— | 0.07Γ— | 0.0% |
<sub>RTF = real-time factor on the fixed 11s JFK clip (**lower is faster**); RAM peak measured per pack
in an isolated subprocess. JFK Ξ”WER compares each quantized build's JFK transcript to this model's
fp16 JFK transcript, so it measures quantization drift rather than absolute recognition accuracy.
**q8_0** is the recommended default β€” near-reference quality at a fraction of the
footprint.</sub>
## 🧠 About Whisper Base
Whisper Base is OpenAI's 74M-parameter multilingual Whisper checkpoint. It uses the standard
Whisper encoder-decoder architecture for automatic speech recognition and speech translation,
trained with large-scale weak supervision on 680k hours of labelled speech. Base offers a
meaningful accuracy gain over tiny while staying small and fast enough for low-resource
devices. This OpenASR repo repackages the original `openai/whisper-base` weights as `.oasr`
packs that run natively in the OpenASR runtime with no Python at inference time. For most users
the q8_0 build is the recommended default; q4_k is for tighter memory budgets and fp16 is for
verification or maximum fidelity.
## βš™οΈ How these packs were made
Converted from [openai/whisper-base](https://huggingface.co/openai/whisper-base) with the OpenASR importer:
```bash
openasr model-pack import-whisper-local <src> <out>.oasr \
--package-id whisper-base --quantization {fp16,q8-0,q4-k}
```
The `.oasr` container is GGUF-backed; packs use zero-copy mmap weight binding and graph
buffer reuse to keep peak memory low.
## βš–οΈ License
These packs **inherit the upstream model's license: Apache-2.0**
([source](https://huggingface.co/openai/whisper-base/blob/main/README.md)). OpenASR packaging retains the upstream copyright and
NOTICE; the only modifications are format conversion and quantization.
## πŸ™ Acknowledgements
This pack is a redistribution of **Whisper Base**, released by **OpenAI**
([openai/whisper-base](https://huggingface.co/openai/whisper-base)).
All credit for the original model, training recipe, and weights belongs to OpenAI. The
upstream Hugging Face model card declares Apache-2.0 licensing; OpenASR only converts the
weights into `.oasr` packages and adds quantized builds for local runtime use.
## πŸ”— Links
- πŸ¦€ **OpenASR** β€” <https://github.com/QuintinShaw/openasr>
- 🌐 **Website** β€” <https://openasr.org>
- πŸ€— **Upstream model** β€” [openai/whisper-base](https://huggingface.co/openai/whisper-base)