mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4369] [GUI] Some Hugging Face download paths ignore HF_ENDPOINT and still target huggingface.co #1935
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1935
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @66666233336666623333 on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4369
Area
[GUI] (the desktop app)
Desktop app, Terminal or source?
Desktop host download code, inspected at
v0.2.7/ commit5e8a4cca7d690ac60ca37eb09e7d0e010099ad6d.What happened
I want to download model files through a directly reachable Hugging Face mirror. My high-speed proxy quota is limited, so unexpectedly using the official host for large downloads is a practical problem.
The main setup and MTP paths already honor
HF_ENDPOINT(the support added for #495). However, the setting does not cover every Hugging Face downloader:apps/host/server/image-models.mjs:45constructs the image-model download URL with a literalhttps://huggingface.co.fetcher, without readingHF_ENDPOINT.POST /api/image-models/:id/install.Expected: an explicitly configured
HF_ENDPOINTshould consistently determine the initial host used for Hugging Face model-file downloads, while preserving the pinned revision, file-size and hash checks.Observed at component level: the image downloader still passes an official-host URL to its fetch function even when
HF_ENDPOINTis set. Without an override, keeping the current official-host default is fine.Smallest steps or command that reproduce it
I ran an offline probe against the unchanged download module on Windows with Node.js
v24.19.0:HF_ENDPOINT=https://mirror.invalidandSTRATA_SOURCE=huggingface. The reserved.invalidaddress is intentional; the probe does not use the network.createImageModelswith fresh temporary state/model folders,real: true, and an injectedfetcherthat records its URL and immediately throwsProbe stopped before network I/O.install('q4'), then awaitwhenIdle().Captured output:
The reported error state is intentional because the stub stops before network I/O. No model bytes were downloaded.
Reproduction status
Reproduced locally at the downloader-component level with an intercepted fetch call.
Unconfirmed static analysis for the packaged Desktop flow: I have not reproduced this through the packaged UI or captured real outbound traffic. This report establishes the URL selected by the component, not a measured proxy-quota loss or a failure of the normal chat-model/MTP installer.
An additional coverage point found by reading the code is the explicit DFlash2 fetch helper:
drafting.BASE_URLis also fixed to the official host, anddrafting_fetch.py:76uses it by default. I did not execute that download. The release setsENGINE_SERVES_DFLASH2 = False, so I am not claiming it downloads automatically during normal Desktop serving.Current workaround and requested improvement
A correctly configured proxy that covers the app and its child processes is a possible workaround for reaching the official host. However, it adds configuration and troubleshooting, and large downloads may consume limited high-speed proxy traffic. For users who can reach a mirror directly, consistently honoring one
HF_ENDPOINTsetting would be much simpler. Proxy configurations were not tested as part of this report.Could the remaining Hugging Face download paths honor the same endpoint setting, with a small regression check for the initial URL passed to the downloader? Any intentional exceptions could be documented. This request concerns Strata's initial URL selection; redirects chosen by a mirror are a separate matter.
Strata version
Source:
v0.2.7, commit5e8a4cca7d690ac60ca37eb09e7d0e010099ad6d(also the currentmainat inspection time).Graphics card, memory and system
Windows host, Node.js
v24.19.0. GPU, VRAM and model inference were not involved in the probe. No packaged-app or GPU compatibility claim is made.Related discussions
Searched open and closed issues and pull requests for
HF_ENDPOINT,hf-mirror, andimage-models.mjs; I did not find a report specifically covering this remaining URL-selection issue.@Nyarlathoteppppp commented on GitHub (Oct 29, 2026):
I have a fix with a regression test that fails before and passes after; opening a PR shortly.
@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.