Skip to main content

modal-chickenrice

Faster-Whisper Modal 云端推理客户端。

无本地 GPU?使用 Modal 云 GPU 运行 Faster-Whisper 转录/翻译。

安装

注意:此包要求 Python == 3.10(与 Modal 远程容器环境的镜像一致)。 使用 uv 时请指定 Python 版本:

uv tool install modal-chickenrice --python 3.10
pip install modal questionary

使用

python -m modal_infer
# 或安装后:
modal-chickenrice

程序会交互式询问:

  1. GPU 类型 — T4(性价比首选)、L4、L40S、A100、H100 等
  2. 模型选择 — 海南鸡(日→中)、whisper-base、自定义 HF 模型
  3. 输入路径 — 单个音频文件或文件夹(批量处理)
  4. 批处理 — 可选启用,更高显存消耗更快速度
  5. 超时时间 — 默认 60 分钟

工作流程

  1. 上传音频文件到 Modal Volume
  2. 在 Modal GPU 容器上克隆仓库并下载模型
  3. 运行推理 → 生成字幕文件
  4. 结果下载回本地

文件夹模式

输入文件夹时,自动并发处理多个音频文件(容器复用),跳过已有字幕的文件。

项目结构

modal_chickenrice/
  modal_infer/
    __init__.py
    __main__.py       # 主入口,交互式 CLI
    resources/
      environment-cuda128.yml  # Modal 镜像 conda 环境
  pyproject.toml
  README.md

Metadata

Release files for modal-chickenrice 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for modal-chickenrice 0.1.2
File Size Uploaded Provenance Actions
modal_chickenrice-0.1.2.tar.gz 12.2 kB Without provenance Details for modal_chickenrice-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for modal-chickenrice 0.1.2
File Interpreter ABI Platform Actions
modal_chickenrice-0.1.2-py3-none-any.whl Python 3 none any Details for modal_chickenrice-0.1.2-py3-none-any.whl

Total release size: 25.2 kB

Security for modal-chickenrice 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page