跳到正文
Hugging Face Blog·· 14 天前精选AI 评分66

Reson8 开源 0.5B 语音识别模型 Rumble-2-Flash,支持 40 多种语言

Rumble-2-Flash: an open 0.5B speech model for 40+ languages

AI 导读

Reson8 以 Apache 2.0 协议开源 0.5B 参数的语音识别模型 Rumble-2-Flash,支持 40 多种语言并自动检测语种,原生支持 Transformers 和 vLLM。

推荐理由

0.5B 语音模型在开源榜单和电话客服基准上给出与数十倍参数模型对比的具体数字,便于判断小模型的实际位置。

正文 · AI 翻译

今天我们以 Apache 2.0 许可证开源 Rumble-2-Flash。这是一个 0.5B 参数的语音识别模型,支持 40 多种语言,可与规模为其 3-60 倍的模型竞争。

  • 随处可运行:原生支持 🤗 Transformers 和 vLLM,无需自定义代码
  • 40 多种语言:自动语言检测
  • 输出控制:数字以数字或单词形式输出、填充词、逐字重复、强制语言
  • 极快:一小时音频约半秒完成,全批次下超过 7,000 RTFx
  • 在真实电话通话中表现稳健:在 302 小时呼叫中心基准上,与 NVIDIA 的 Nemotron 3.5 Transcribe(30B)持平

快速开始

使用 🤗 Transformers 转写

uv pip install torch transformers accelerate
from transformers import AutoProcessor, AutoModelForMultimodalLM

model_id = "Reson8/Rumble-2-Flash"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(model_id, device_map="auto")

inputs = processor.apply_transcription_request(
    audio="https://hf.co/datasets/hf-internal-testing/dummy-audio-samples/resolve/main/bcn_weather.mp3",
    language="English",  # omit to detect automatically
).to(model.device, dtype=model.dtype)

output = model.generate(**inputs, max_new_tokens=512)
generated = output[:, inputs["input_ids"].shape[-1]:]
print(processor.decode(generated, return_format="transcription_only")[0])  # return_format="parsed" if detecting language

audio 接受本地路径、URL、NumPy 数组或这些的列表。

构建方式

Rumble-2-Flash 采用 Qwen3-ASR 架构,实现首日支持。如果你的技术栈运行 Transformers 或 vLLM,就能运行 Rumble-2-Flash,无需分叉运行时或 trust_remote_code。

为了找出模型在准确率下降前能小到什么程度,我们通过同策略蒸馏将我们更大的生产模型 Rumble-2 蒸馏到其中。学生模型不在教师模型撰写的转写文本上训练。它自己转写音频,教师模型则逐 token 为该转写打分:在每个位置,教师模型给出自己对下一个应出现内容的概率,学生模型学习与之匹配。由于学生模型从自己的输出中学习,它会在自己犯的错误上得到纠正,每个 token 都有反馈,而不是每个片段只有一个分数。

同策略蒸馏通常要求教师模型和学生模型共享分词器,而我们的并不共享:选择 Qwen3-ASR 意味着也要采用其词表。GOLD 消除了这一限制。它会在两个分词器对文本切分不同的地方合并 token,使两个模型在同一文本上进行比较。两个词表中都存在的 token 直接比较,其余则按其排序后的概率比较。

On-policy distillation with GOLD: the student transcribes, the teacher scores every token, and GOLD aligns the two tokenizers On-policy distillation with GOLD: the student transcribes, the teacher scores every token, and GOLD aligns the two tokenizers
使用 GOLD 的同策略蒸馏

结果

同规模下的准确率

在 Open ASR Leaderboard 的 多语言 赛道中,Rumble-2-Flash 在中文、德语、法语、意大利语、西班牙语、葡萄牙语、印地语、荷兰语和英语上的平均错误率为 6.96%。这优于 Meta 的 omniASR-LLM 7B(规模为其 15 倍的模型),并领先于 Whisper large-v3。在 英语 赛道中,其平均 WER 为 6.6%。

Average error rate against model size for open-weight models on the Open ASR Leaderboard multilingual track, including English Average error rate against model size for open-weight models on the Open ASR Leaderboard multilingual track, including English
同规模下的最佳得分

速度

Rumble-2-Flash 也很快。其吞吐量取决于批次填充程度:在 HF 的 Open ASR Leaderboard 中较大的数据集上,批次保持满载,它可达到 超过 7,000 RTFx。即一小时音频约半秒完成。

真实电话通话

干净音频很容易。电话通话经过压缩且有噪声,说话者往往带有非常不同的口音。在 AppTek 的呼叫中心基准(302 小时求助热线通话,14 种英语口音,使用 AppTek 自己的脚本评分)上,Rumble-2-Flash 达到 7.86% WER,与 NVIDIA 的 Nemotron 3.5 Transcribe(30B)的 7.78% 持平。这明显领先于同一模型家族的 Qwen3-ASR 0.6B(8.7%),并接近 Qwen3-ASR 1.7B(7.4%),后者是对比中唯一表现更好的模型。

WER on the AppTek call-centre benchmark WER on the AppTek call-centre benchmark
真实电话通话,14 种英语口音

试用

权重已发布在 Hub 上的 Reson8/Rumble-2-Flash。也可以通过我们的 API 使用。

我们非常好奇你会用它构建什么。请在 Discussions 标签页告诉我们你做了什么、你喜欢什么,以及你希望在下一个版本中看到哪些改变。

来源:Hugging Face Blog · huggingface.co