mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2363] [Bug]: macOS setup drops --source; the download-failure hint recommends it, but only STRATA_SOURCE works on a Mac #954
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#954
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 @afanty2021 on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2363
On an Apple Silicon Mac,
./setup.shfailed at the model download because huggingface.co is not reachable from my network. The failure hint says:I ran it again exactly as recommended:
The flag was silently discarded — the run printed, above its normal output:
and then failed with the identical
cannot reach huggingface.coerror.What works instead is the environment variable, which
setup.pydocuments for other platforms (--source / STRATA_SOURCE):That downloaded from ModelScope fine.
Why it happens: on macOS,
setup.py'smain()delegates everything tometal/setup_mac.py(return mac_setup(sys.argv[1:])) beforesetup.py's own argparse — including itsos.environ["STRATA_SOURCE"] = a.source— ever runs.metal/setup_mac.py's parser does not define--source, soparse_known_argsmoves it intorestand it only gets thenot used on a Macwarning. Meanwhile the failure hint (source_hint()in setup.py) recommends--source modelscopeunconditionally, which on a Mac is a dead end.Expected:
--source modelscopeis accepted on a Mac (setup_mac.py defines it and setsSTRATA_SOURCE, mirroring setup.py), or the failure hint tells Mac users the env-var form.Repro: on an Apple Silicon Mac without reach to huggingface.co:
./setup.sh --model Q2_0 --yes --no-start→ fails, hint recommends--source modelscope./setup.sh --model Q2_0 --yes --no-start --source modelscope→[!] not used on a Mac: --source modelscope, same failureSTRATA_SOURCE=modelscope ./setup.sh --model Q2_0 --yes --no-start→ downloads from ModelScopeIf it helps: a minimal fix is adding
ap.add_argument("--source", choices=S.SOURCES)tometal/setup_mac.py's parser and settingos.environ["STRATA_SOURCE"] = a.sourcefrom it, and/or makingsource_hint()print the env-var form on darwin. Your call — you know whether the flag or the env var is the interface you want Mac users on.(Side note: open issue #1915 covers a different ModelScope rough edge — a truncated shard renamed to its final name. Not the same bug, but both bite on the ModelScope path.)
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. 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.