Qwen3 ASR model for fasr
Project description
fasr-asr-qwen3
内置 Qwen3-ASR 推理(Transformers / vLLM)的语音识别模型插件,为 fasr 提供无时间戳 ASR 能力。
安装
pip install fasr-asr-qwen3
注册模型
| 注册名 | 类 | 默认 checkpoint | 说明 |
|---|---|---|---|
qwen3_0.6b |
Qwen3_06BForASR |
Qwen/Qwen3-ASR-0.6B |
Qwen3 小模型,当前不返回时间戳 |
qwen3_1.7b |
Qwen3_17BForASR |
Qwen/Qwen3-ASR-1.7B |
Qwen3 大模型,当前不返回时间戳 |
使用方式
from fasr import AudioPipeline
pipeline = (
AudioPipeline()
.add_pipe("detector", model="fsmn")
.add_pipe("recognizer", model="qwen3_1.7b") # 或 qwen3_0.6b
.add_pipe("sentencizer", model="ct_transformer")
)
from_checkpoint 参数
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
checkpoint_dir |
str | Path | None |
None(自动下载) |
模型权重目录 |
device_map |
str | None |
"auto" |
设备映射,例如 "cuda:0" |
dtype |
str | torch.dtype | None |
"bfloat16" |
推理精度,支持 bfloat16/fp16/fp32 |
max_inference_batch_size |
int |
32 |
推理批次上限,避免 OOM |
max_new_tokens |
int |
1024 |
最大生成 token 数 |
其余 **kwargs 会透传到 Qwen3ASRModel.LLM(...)(vLLM 后端)。
输出说明
- 当前模型不返回词级/字级时间戳。
- fasr 中会把整段识别文本作为一个
AudioToken返回。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fasr_asr_qwen3-0.3.9.post2.tar.gz
(113.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fasr_asr_qwen3-0.3.9.post2.tar.gz.
File metadata
- Download URL: fasr_asr_qwen3-0.3.9.post2.tar.gz
- Upload date:
- Size: 113.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e84432fa335b09af370eeea3e97a4e362f3a2564947f33025423e04552b702f5
|
|
| MD5 |
0c04382b80eb6734592296614713b854
|
|
| BLAKE2b-256 |
5b7317c73fccf681bbada55cbc04e26b6f35ee169dd7d5ed4bf56624f8384256
|
File details
Details for the file fasr_asr_qwen3-0.3.9.post2-py3-none-any.whl.
File metadata
- Download URL: fasr_asr_qwen3-0.3.9.post2-py3-none-any.whl
- Upload date:
- Size: 116.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4eca9235016fb2d6e227f6b96a3971b8ce1ef1230c56e69f9639eb746b074ee3
|
|
| MD5 |
153dfd3ce129e8d5ef37c33b00e4eed7
|
|
| BLAKE2b-256 |
46866e47aa9329bcc833a0cf21ef39aa48ba15f398a2018f81b5a554aed15111
|