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
程序会交互式询问:
- GPU 类型 — T4(性价比首选)、L4、L40S、A100、H100 等
- 模型选择 — 海南鸡(日→中)、whisper-base、自定义 HF 模型
- 输入路径 — 单个音频文件或文件夹(批量处理)
- 批处理 — 可选启用,更高显存消耗更快速度
- 超时时间 — 默认 60 分钟
工作流程
- 上传音频文件到 Modal Volume
- 在 Modal GPU 容器上克隆仓库并下载模型
- 运行推理 → 生成字幕文件
- 结果下载回本地
文件夹模式
输入文件夹时,自动并发处理多个音频文件(容器复用),跳过已有字幕的文件。
项目结构
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)
| File | Size | Uploaded | |
|---|---|---|---|
| modal_chickenrice-0.1.2.tar.gz | 12.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| modal_chickenrice-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.2 kB
Release files / modal_chickenrice-0.1.2.tar.gz
| Download URL | modal_chickenrice-0.1.2.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d66e631600a59bfd3dd8e48c7dc72ecfe2288cf5db62320863f9b5307f73e54f
|
|
BLAKE2b-256 checksum How to use checksums |
131815003e8af5996448ba121b83df9fc8a91c53009948f3796137f15a8e3a0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / modal_chickenrice-0.1.2-py3-none-any.whl
| Download URL | modal_chickenrice-0.1.2-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1dcbd25eece76d198724580bf8e16d5c4e9d1d1003d06860ee2766b7819327d
|
|
BLAKE2b-256 checksum How to use checksums |
f2c56e07adfaaa348462f9e919ec65a238e511677ba7ec36e25b80b80bb32b41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|