Skip to main content

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


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.4.0.tar.gz (113.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fasr_asr_qwen3-0.4.0-py3-none-any.whl (116.3 kB view details)

Uploaded Python 3

File details

Details for the file fasr_asr_qwen3-0.4.0.tar.gz.

File metadata

  • Download URL: fasr_asr_qwen3-0.4.0.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

Hashes for fasr_asr_qwen3-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0af4ec72f436e9b9504d4d79204d5d5a7023e7794f9c9ca12a9c612dd75819a7
MD5 a0a2b47bee9e66bd614370d93660eef7
BLAKE2b-256 5ae30faec51f2897124a3486ffc403a7432879694d0281a0f5fdf4eda13aee36

See more details on using hashes here.

File details

Details for the file fasr_asr_qwen3-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: fasr_asr_qwen3-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 116.3 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

Hashes for fasr_asr_qwen3-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b7c3d77c4a667dc9dc52fcdf7909aac0f6af3f0f2d4493731df2f8d33211757
MD5 2957a03961281c0ec166ff0ad9b27f05
BLAKE2b-256 1a7dc4c00f2b3d8bdc277a7827120aaf381a3299d1baba6b986f8ac20a4f0d8e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page