Qwen3-ASR-1.7B — 8-bit INT8 (W8A16)

8-bit quantized build of Qwen/Qwen3-ASR-1.7B-hf, produced with bitsandbytes (load_in_8bit=True). Combines the full linguistic nuance and superior phonetic decoding of the 1.7B parameter Qwen3-ASR model with half the memory footprint of FP16.


🚀 Key Highlights & Comparison

Metric Base Model (FP16) INT8 (W8A16, This Repo) 4-bit NF4 (W4A8/W4A16)
Model Disk Footprint ~4.08 GB ~2.10 GB ~1.35 GB
Active VRAM at Rest ~4.20 GB ~2.25 GB ~1.45 GB
Peak VRAM during Inference ~4.80 GB ~2.55 GB ~1.75 GB
VRAM Reduction Baseline -46.8% -63.5%
Precision Setup FP16 / FP16 INT8 weights / FP16 act (W8A16) 4-bit NF4 weights / FP16 act
Audio Fidelity (WER Loss) Baseline 100% Verbatim Match (Zero Loss) >99% Accuracy

💻 Quickstart Inference (Python)

import torch
import soundfile as sf
from transformers import AutoProcessor, AutoModelForMultimodalLM

REPO_ID = "warlockzero/Qwen3-ASR-1.7B-int8"

# 1. Load processor and 8-bit model directly
processor = AutoProcessor.from_pretrained(REPO_ID)
model = AutoModelForMultimodalLM.from_pretrained(
    REPO_ID,
    device_map="auto",
    dtype=torch.float16,
).eval()

# 2. Read 16 kHz audio (mono or stereo)
audio, sr = sf.read("your_audio.wav")
if audio.ndim > 1:
    audio = audio.mean(axis=1)

# 3. Format transcription request
inputs = processor.apply_transcription_request(audio=audio, sampling_rate=sr)
inputs = inputs.to(model.device, dtype=torch.float16)

# 4. Generate speech transcription
with torch.inference_mode():
    generated_ids = model.generate(**inputs, max_new_tokens=256, do_sample=False)

# 5. Extract output tokens
input_len = inputs["input_ids"].shape[1]
transcription = processor.decode(generated_ids[:, input_len:], return_format="transcription_only")

print("Transcription:", transcription[0])

🔬 Benchmark Verification

Tested on 10.4-second English audio (beckett.wav) on NVIDIA GeForce RTX 3090:

  • 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-fattened sauce.
  • Peak VRAM Recorded: 2.55 GB
  • Latency: ~0.95 s

📄 License

Apache License 2.0 (same as base model).

Downloads last month
25
Safetensors
Model size
2B params
Tensor type
F32
·
F16
·
I8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for warlockzero/Qwen3-ASR-1.7B-int8

Quantized
(14)
this model