|-转 HUGGINGFACE_HUB_CACHE 设置错误导致的问题
真的吐了,Trae和腾讯元宝都找不出原因。报错只是只是显示401没有权限访问hf-mirror.com等等
或者是Cannot find an appropriate cached snapshot folder for the specified revision on the local disk and outgoing traffic has been disabled. To enable repo look-ups and downloads online, pass 'local_files_only=False' as input.
代码加载模型一直报错
import whisperx device = "cuda" # 或者 "cpu" model_whisper = whisperx.load_model("base", device=device, compute_type="float32")
RuntimeError: 无法加载 WhisperX 模型,请检查安装和环境。Cannot find an appropriate cached snapshot folder for the specified revision on the local disk and outgoing traffic has been disabled. To enable repo look-ups and downloads online, pass 'local_files_only=False' as input.
返回的错误一直就是下面这类的。
不能直连HF官网后,本地加载模型一直失败,直接花了我6个小时以上,最后无意中发现项目的根目录多出来两个文件夹,一个是$HUGGINGFACE_HOME,另一个是.cache。删除后,正常了。 ...
浏览更多内容请先登录。
立即注册
更新于:2025-08-24 03:35:26
相关内容
推荐内容