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.post1.tar.gz (4.1 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.post1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fasr_asr_qwen3-0.3.9.post1.tar.gz
  • Upload date:
  • Size: 4.1 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.post1.tar.gz
Algorithm Hash digest
SHA256 6daa1e59eb271946b8d2fb1969895d284412b797c58c59c0b5c7a179bf24611f
MD5 1086cf27faf2f374208fac910cdbc62a
BLAKE2b-256 9e22ec2b1218b8a30235bebbbd3503ba44b54453fc1106a66abc075adfab2f2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fasr_asr_qwen3-0.3.9.post1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 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.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 37069856c5e92e9702b533b73b048709edf023cde658074628c6e278539d97e6
MD5 07131b392d2e38887f70f46231098549
BLAKE2b-256 67053978fd3467ada02441ba096ef535296e0d3c8fd84d04ae8d9a02b2333d4b

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