fix(docker): 默认 HF_ENDPOINT 改回 huggingface.co + whisper 模型缓存独立卷 - #449
Open
EricWang1358 wants to merge 1 commit into
Open
Conversation
JefferyHcool#417 用户反馈 Docker 部署下 Whisper 模型下载失败,根因在 Dockerfile 默认 ENV HF_ENDPOINT=https://hf-mirror.com。hf-mirror 是国内镜像,境外用户 (包括部分 VPN/海外网络)常不可达或不稳定,导致 faster_whisper huggingface_hub 拉取模型时直接失败。同时 whisper.py 顶部注释与默认值 自相矛盾('已经在 Dockerfile 里指到 huggingface.co')。 本次改动: - Dockerfile / Dockerfile.gpu / Dockerfile.complete / 两份 docker-compose 把默认 HF_ENDPOINT 从 https://hf-mirror.com 改为 https://huggingface.co - whisper.py 顶部注释同步更新,消除与代码的描述偏差 - docker-compose.yml / docker-compose.gpu.yml 顶层新增命名卷 whisper-models,挂载到 /app/models/whisper,重建容器不再丢失已下载模型 - CHANGELOG 加 [Unreleased] 段,并注明国内用户可在 .env 中显式 设 HF_ENDPOINT=https://hf-mirror.com 保留旧行为 无新增测试(Docker 构建 / 命名卷不在 pytest 覆盖范围)。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动概述
ix(docker): Dockerfile / docker-compose 默认 HF_ENDPOINT 从 https://hf-mirror.com 改回 https://huggingface.co;Whisper 模型缓存独立命名卷持久化。
为什么
Part of #417(Docker 部署下 Whisper 模型下载失败)。
做了什么
测试方式
回归风险
Checklist