LoRA adapter for Qwen/Qwen3-ASR-1.7B-hf, adapted for transcribing conversational English speech recorded in noisy environments. Used by the pingpong voice-interface toolbox (Gallant Lab, UC Berkeley).
Details, benchmarks, and training methodology will be described in an accompanying publication.
# pip install transformers peft librosa
import torch
from transformers import AutoProcessor, AutoModelForMultimodalLM
from peft import PeftModel
BASE = "Qwen/Qwen3-ASR-1.7B-hf"
ADAPTER = "jiwoongpark/qwen3-asr-1.7b-mri-lora"
processor = AutoProcessor.from_pretrained(BASE)
model = AutoModelForMultimodalLM.from_pretrained(BASE, torch_dtype=torch.bfloat16, device_map="cuda")
model = PeftModel.from_pretrained(model, ADAPTER).eval()
inputs = processor.apply_transcription_request(audio="utterance.wav").to(model.device, model.dtype)
out = model.generate(**inputs, max_new_tokens=256)
print(processor.decode(out[:, inputs["input_ids"].shape[1]:], return_format="transcription_only")[0])
~6 GB VRAM (bf16). For serving, model = model.merge_and_unload() after
loading reduces inference latency.
jiwoongpark (Gallant Lab, UC Berkeley)