Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: 如何将从huggingface下载模型改为镜像? #3149

Closed
1 task done
SKRY1412 opened this issue Jun 16, 2024 · 2 comments
Closed
1 task done
Labels
enhancement New feature or request triage This needs an (initial) review

Comments

@SKRY1412
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What would your feature do?

选择国内镜像版本下载模型

Proposed workflow

如何对参数进行修改?

Additional information

No response

@SKRY1412 SKRY1412 added enhancement New feature or request triage This needs an (initial) review labels Jun 16, 2024
@newxhy
Copy link

newxhy commented Jun 16, 2024

1、找到你的fooocus的 youFooocus\python_embeded\Lib\site-packages\huggingface_hub\constants.py
2、将里面的https://huggingface.co 修改为 https://hf-mirror.com 然后保存
3、重启fooocus。
A1111、comfyui也一样的,只不过位置有区别。

@mashb1t
Copy link
Collaborator

mashb1t commented Jun 16, 2024

You can simply set the env var HF_MIRROR or the attribute --hf-mirror in your .bat script or the entrypoint.

@mashb1t mashb1t closed this as completed Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage This needs an (initial) review
Projects
None yet
Development

No branches or pull requests

3 participants