Skip to main content

Qwen3 ASR model for fasr

Project description

fasr-asr-qwen3

基于 qwen-asr 的 Qwen3 语音识别模型插件,为 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.from_pretrained(...)

输出说明

  • 当前模型不返回词级/字级时间戳。
  • 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.3.9.tar.gz (3.9 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.3.9-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fasr_asr_qwen3-0.3.9.tar.gz
  • Upload date:
  • Size: 3.9 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.3.9.tar.gz
Algorithm Hash digest
SHA256 9a427914097ab32c266db4340a8b64eed3875c60348c96e50dc23a949ba5de84
MD5 d7853b61c50be07f8a970df4c75ace78
BLAKE2b-256 a7ae43e61822478bc128b3d1486e7a7c958a9282c2bfd42cbe4f23b379eef209

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fasr_asr_qwen3-0.3.9-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3e6bb14dd96738c4e1c9c4967e0d20fdd80844288cf325d7dd007be0a80a7fb0
MD5 dea066d010e992b595df608053c430f3
BLAKE2b-256 3cac87d67934a1bf67cf51be92a74d3d8ebcb2cbaa993504c76b9d2b2bfb440f

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