mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3848] [CLOSED] [Other] setup: say when an update was asked for a model that is not installed #4800
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#4800
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3848
Author: @demetree
Created: 10/23/2026
Status: ❌ Closed
Base:
main← Head:f-mac-update-model-silent📝 Commits (1)
b342965[Other] setup: say when an update was asked for a model that is not installed📊 Changes
2 files changed (+62 additions, -0 deletions)
View changed files
📝
metal/setup_mac.py(+12 -0)📝
tools/test_setup_mac.py(+50 -0)📄 Description
Title
[Other] setup: say when an update was asked for a model that is not installed
Issue: Resolves #
Problem and result
update.shrunssetup.py --update. On a Mac,metal/setup_mac.pyreturns right after the engine step — but themodel and image questions are asked anyway. Choosing a model the Mac does not have (IQ3_S, 83.6 GB, with images)
therefore downloads nothing and prints nothing: the run ends after step 4 with exit 0, which reads like a broken
download (reported from an M1 Max, 32 GB, macOS 26.6.2).
Now the update checks the chosen model's files, its pack, and — when images were asked for — the encoder, and says
what happened:
An update for a model that is already set up prints exactly what it printed before.
Approach
metal/setup_mac.pyonly, at the--updatereturn.update.sh's documented contract ("The model files are nottouched") is kept; no prompts and no download behaviour change.
Validation
python -m unittest tools.test_setup_mac— 28 tests, including two new ones: a chosen missing model isnamed and points at
./setup.sh --setup; an installed model (files,.donemarks, pack) keeps the update quiet../setup.sh --update --model IQ3_Sended silently after step 4 before; after, it prints the message above (exit 0 both times).
run is the next step. Nothing else was built (Python only).
Limits
An update still does not download models, by design — it only says so now. A settings change for an already installed
model (context, images) is likewise not written by an update, because the config is written in step 7; that is a
separate gap if maintainers want it closed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.