Downloads · 30 days
21
33% of all-time downloads
enet45/kotoba-whisper-v2.1-mlx-fp16
kotoba-whisper-v2.1-mlx-fp16 is a machine learning model from enet45. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
这是 kotoba-tech/kotoba-whisper-v2.1 的 MLX 格式转换版本,专为 Apple Silicon (M1/M2/M3/M4) 上的 MLX 推理优化。
Downloads · 30 days
21
33% of all-time downloads
All-time downloads
64
Public
Repo size
1.5 GB
Likes
0
Public
Click a slice to open those files.
.safetensors1.5 GB · 100%
From the Hugging Face model README
这是 kotoba-tech/kotoba-whisper-v2.1 的 MLX 格式转换版本,专为 Apple Silicon (M1/M2/M3/M4) 上的 MLX 推理优化。
精度:fp16(半精度) · 大小:1.4 GB · 加载时间:~0.5秒
| 项目 | 原版 (kotoba-tech/kotoba-whisper-v2.1) | 本仓库 (MLX 转换版) |
|---|---|---|
| 框架 | PyTorch / HuggingFace transformers | Apple MLX |
| 运行硬件 | NVIDIA GPU / CPU (PyTorch) | Apple Silicon Mac (M1+) |
| 权重格式 | model.safetensors (HF transformers) | weights.safetensors (MLX) |
| 推理后端 | transformers / faster-whisper | mlx_whisper CLI / mlx_whisper Python API |
| 用途 | 通用日语 ASR | 本地快速推理,无需网络 |
精度从 fp32 降为 fp16,准确度损失可忽略,但磁盘和内存占用减半。通用推荐版本。
| 仓库 | 大小 | 准确度损失 | 适用场景 |
|---|---|---|---|
enet45/kotoba-whisper-v2.1-mlx-fp32 | 2.8 GB | 无损 | 16GB+ Mac,追求最高准确度 |
enet45/kotoba-whisper-v2.1-mlx-fp16 | 1.4 GB | 几乎无损 | 通用推荐,8GB+ Mac |
enet45/kotoba-whisper-v2.1-mlx-int8 | 770 MB | 极轻微 | 8GB Mac,内存紧张 |
pip install mlx-whisper
mlx_whisper --model enet45/kotoba-whisper-v2.1-mlx-fp16 \
--language ja \
--task transcribe \
--output-format srt \
/path/to/your/audio.wav
输出格式可选:txt / srt / vtt / json / tsv / all(全部生成)。
from mlx_whisper import transcribe
result = transcribe(
"/path/to/audio.wav",
path_or_hf_repo="enet45/kotoba-whisper-v2.1-mlx-fp16",
language="ja",
task="transcribe",
)
print(result["text"])
# 带时间戳的分段
for seg in result["segments"]:
print(f"[{seg['start']:.1f}s - {seg['end']:.1f}s] {seg['text']}")
kotoba-tech/kotoba-whisper-v2.1(基于 OpenAI whisper-large-v3 微调)convert.py,自动应用 HF→MLX 字段映射参考 kotoba-tech/kotoba-whisper-v2.1 模型卡:
@misc{kotoba-whisper-v2.1,
title={Kotoba-Whisper},
author={Kotoba Technologies},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/kotoba-tech/kotoba-whisper-v2.1}
}
enet45 · 基于 kotoba-tech 的开源工作