Automatic Speech Recognition
Transformers
Safetensors
qwen3_asr
asr
speech-recognition
int8
bitsandbytes
8-bit precision
qwen3-asr
Instructions to use warlockzero/Qwen3-ASR-0.6B-int8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use warlockzero/Qwen3-ASR-0.6B-int8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="warlockzero/Qwen3-ASR-0.6B-int8")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("warlockzero/Qwen3-ASR-0.6B-int8") model = AutoModelForMultimodalLM.from_pretrained("warlockzero/Qwen3-ASR-0.6B-int8", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Qwen3-ASR-0.6B β int8 (bitsandbytes)
8-bit quantized build of Qwen/Qwen3-ASR-0.6B-hf,
produced with bitsandbytes load_in_8bit.
Why
The fp16 checkpoint is 1.49 GB. On a Windows laptop (RTX 4060 Laptop, 8 GB VRAM) the fp16 model cannot load reliably: Windows WDDM charges ~1.3 GB of system commit per GB of VRAM, and a 16 GB machine with a small pagefile runs out of commit before it runs out of VRAM. The int8 build halves the footprint and fits comfortably.
| fp16 | int8 (this repo) | |
|---|---|---|
| weights on disk | 1492 MB | 945 MB |
| VRAM allocated | ~1.6 GB | 0.97 GB (peak 1.07 GB) |
| load time (RTX 3090) | β | 87 s (first run, includes download) |
| inference, 10.4 s audio | β | 3.2β4.6 s |
Usage
import torch
from transformers import AutoProcessor, AutoModelForMultimodalLM, BitsAndBytesConfig
import soundfile as sf
repo = "warlockzero/Qwen3-ASR-0.6B-int8"
processor = AutoProcessor.from_pretrained(repo)
model = AutoModelForMultimodalLM.from_pretrained(
repo,
quantization_config=BitsAndBytesConfig(load_in_8bit=True),
device_map={"": 0},
dtype=torch.float16,
).eval()
data, sr = sf.read("audio.wav")
if data.ndim > 1:
data = data.mean(axis=1)
inputs = processor.apply_transcription_request(audio=data, sampling_rate=sr)
inputs = inputs.to("cuda", torch.float16)
with torch.inference_mode():
ids = model.generate(**inputs, max_new_tokens=256, do_sample=False)
out = ids[:, inputs["input_ids"].shape[1]:]
print(processor.decode(out, return_format="transcription_only"))
Requires bitsandbytes, accelerate, transformers, and a CUDA GPU.
Verification
- Reference audio (10.44 s English speech) transcribed identically across two consecutive runs and after a full save β reload round-trip.
- Output: "He hoped there would be stew for dinner: turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick peppered flour-fatted sauce."
- Peak VRAM 1.07 GB on an RTX 3090.
Notes
- Transcription only (no translation), same as the base model.
- The bundled
quantization_configmeans you do not need to passBitsAndBytesConfigexplicitly; passing it is harmless. - CPU inference is not supported for this int8 build β bitsandbytes 8-bit kernels require CUDA. Use the fp16 base model on CPU.
- Downloads last month
- 30
Model tree for warlockzero/Qwen3-ASR-0.6B-int8
Base model
Qwen/Qwen3-ASR-0.6B-hf