Repository navigation
Document installing models without Hugging Face access - #320
gerardo-navarro wants to merge 4 commits into
Conversation
Covers where the models go, a PowerShell script that downloads the pinned revisions with exact file names, browser pitfalls (dropped leading dot, "(1)" suffixes), what aTrain does with incomplete folders, and proxies that inspect TLS. Refs #318
194fc8f to
171249c
Compare
|
@gerardo-navarro With #286 merged, parts of the page no longer match develop. I tested rc3, rc5 and develop on Linux with a hand-copied
|
aTrain verifies only its own downloads, so the checksum check is now a required step with a script. The folder behaviour is split by version, the models page gets a warning for speaker-detection, and the CA bundle is set via both REQUESTS_CA_BUNDLE and SSL_CERT_FILE.
|
@BW-Projects Thanks for testing. All four points are in 527a72b:
|
|
@gerardo-navarro I ran the download script in a Windows 11 VM behind a TLS-inspecting proxy. It stops at the first file: Windows PowerShell 5.1, the version Windows 11 ships, rejects |
Windows PowerShell 5.1 rejects the switch without -Proxy, so the script stopped at the first file. Invoke-WebRequest uses the Windows proxy settings on its own; the Windows login for proxies that ask for it is now set on the default proxy instead.
|
@BW-Projects Thanks, fixed in 13eec94: the switch is gone. For proxies that ask for the Windows login, the script now sets |
Summary
Users in networks without access to Hugging Face, or behind a proxy that inspects TLS, currently have no guide for getting the models in place. #318 showed several pitfalls that are easy to hit by hand.
New page
docs/offline-model-install.md:large-v3-turbo,speaker-detectiononly for speaker detection) and where they go (MSIX, Flatpak, from source,ATRAIN_USER_DIR, redirected Documents folder).gitattributessaved without the dot,pytorch_model (1).binsuffixesmodels.json, since aTrain verifies only its own downloads, never hand-copied filesHF_HUB_OFFLINE=1; later versions keep it), and a warning about the "Download" button for a hand-installedspeaker-detectionCERTIFICATE_VERIFY_FAILEDerror, and a CA bundle workaround that sets bothREQUESTS_CA_BUNDLE(up to rc5) andSSL_CERT_FILE(Hub 1.33 and later)Linked from
docs/README.mdand the requirements indocs/deployment-windows.md.Note: the TLS section assumes #319 (truststore) ships. If this merges first, "aTrain versions that verify against the Windows certificate store" refers to the upcoming release.
References
Refs #318, related to #319
Screenshots / Examples
n/a (docs only)
Verification Steps
aTrain_core/data/models.jsonondevelop(checked by script).