Faster-Whisper Modal 云端推理客户端
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
modal_chickenrice-0.1.2.tar.gz
(12.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file modal_chickenrice-0.1.2.tar.gz.
File metadata
- Download URL: modal_chickenrice-0.1.2.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d66e631600a59bfd3dd8e48c7dc72ecfe2288cf5db62320863f9b5307f73e54f
|
|
| MD5 |
ab0438f165b60d43a2ad459d8fa46098
|
|
| BLAKE2b-256 |
131815003e8af5996448ba121b83df9fc8a91c53009948f3796137f15a8e3a0b
|
File details
Details for the file modal_chickenrice-0.1.2-py3-none-any.whl.
File metadata
- Download URL: modal_chickenrice-0.1.2-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1dcbd25eece76d198724580bf8e16d5c4e9d1d1003d06860ee2766b7819327d
|
|
| MD5 |
b909aad8c23b13073ca68b8bb3481dc3
|
|
| BLAKE2b-256 |
f2c56e07adfaaa348462f9e919ec65a238e511677ba7ec36e25b80b80bb32b41
|