通过 import faster_whisper.vad (或任何子模块) 会通过 __init__.py 迫切地加载完整的 Whisper/ctranslate2/transformers 堆栈

作者: Takemicom创建于 2026年8月22日更新于 2026年8月22日

from faster_whisper import WhisperModel and import faster_whisper; faster_whisper.WhisperModel(...) keep working (trigger the lazy loading of the heavy submodule via PEP 562 __getattr__ in faster_whisper/__init__.py), keeping vad (and the lightweight audio/utils re-exports) eager and deferring transcribe:

内容来源: SYSTRAN/faster-whisper