Commit 92017b0
Fix: Support custom HF_ENDPOINT for model recipe downloads (#1982)
SUMMARY:
Replace hardcoded `HUGGINGFACE_CO_URL_HOME` with `HfApi().`endpoint to
enable custom HuggingFace endpoint configuration via `HF_ENDPOINT`
environment variable. (Fixed #1967)
TEST PLAN:
Tested with custom endpoint (`HF_ENDPOINT=https://hf-mirror.com`): Uses
mirror site.
Any feedback or suggestions for improvement are welcome!
---------
Signed-off-by: Shuting Zhao <shuting.zhao@outlook.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: HDCharles <39544797+HDCharles@users.noreply.github.com>1 parent 0e4d3a0 commit 92017b0
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
153 | 155 | | |
154 | 156 | | |
155 | 157 | | |
| |||
0 commit comments