load_file_from_url() downloads the model from HF_ENDPOINT if it is set#16911
load_file_from_url() downloads the model from HF_ENDPOINT if it is set#16911licyk wants to merge 3 commits intoAUTOMATIC1111:devfrom
Conversation
|
Thanks for this contribution! Adding support for The core change in However, the changes included in the diff for Could you please revise the PR to only include the necessary changes in |
|
@a-holm In the four files including |
|
@licyk alright, I just misunderstood the code then. |
|
Hi, DisableInitialization.transformers_utils_hub_get_file_from_cache only suppresses the known-404 added_tokens.json request when the URL exactly matches the hardcoded huggingface.co form, so it will no longer short-circuit when a non-default HF endpoint is used. This reintroduces the unnecessary 404 request the guard is explicitly trying to prevent. Severity: action required | Category: reliability How to fix: Match against configured endpoint Agent prompt to fix - you can give this to your LLM of choice:
We noticed a couple of other issues in this PR as well - happy to share if helpful. Found by Qodo code review |
Description
When
HF_ENDPOINTis set,load_file_from_url()downloads models from it. Extensions like sd-webui-controlnet that rely on this function will now also useHF_ENDPOINT.Screenshots/videos:
Checklist: