几个月前从 huggingface 下过一次大模型,记得是通过 ssh 克隆下来后,进去直接 git lfs pull 就能把模型拉下来,没挂代理。今天再这样操作就 pull 不下来了。感到很迷惑,git lfs 下载大文件走的是 http 不是 ssh 吗?各位都是怎么从 huggingface 下模型的?
1
fdwjtz OP 挂上 xray 看了下,确实全程走的代理
|
2
GGMM 197 天前 1
测试了一下,`git lfs pull` 在 clash 中新建的连接是 HTTPConnect ,而不是 SOCKS 5 ,后者是 clone ssh repo 的显示状态。
[git-lfs API]( https://github.com/git-lfs/git-lfs/blob/main/docs/api/server-discovery.md#ssh) 中介绍了通过 ssh 发现下载路径的方式。测试:`ssh [email protected] git-lfs-authenticate TheBloke/llemma_34b-GPTQ.git download`;返回: ***"href":"https://huggingface.co/TheBloke/llemma_34b-GPTQ.git/info/lfs"***。返回的超链接是一个 https 链接,所以 hugging face 的 lfs 是通过 https 下载的。 无法下载的原因可能是 huggingface 最近被墙了,才会导致 https 不能下载。 |
4
beginor 197 天前
从 hoggingface 下载模型才真是考验梯子的稳定性和速度
|
5
ykk 196 天前
“几个月前 huggingface 是没被墙的?” 对
|
6
GGMM 196 天前
@fdwjtz 是的,https://www.zhihu.com/question/599683557 中显示截至 5 月 7 日
|