[PR #3848] [CLOSED] [Other] setup: say when an update was asked for a model that is not installed #4800

Closed
opened 2026-11-07 15:39:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 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.sh runs setup.py --update. On a Mac, metal/setup_mac.py returns right after the engine step — but the
model 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:

  [!]  IQ3_S is not installed here, and an update does not download model files: nothing was installed
    to download and prepare IQ3_S: ./setup.sh --setup

An update for a model that is already set up prints exactly what it printed before.

Approach

metal/setup_mac.py only, at the --update return. update.sh's documented contract ("The model files are not
touched") is kept; no prompts and no download behaviour change.

Validation

  • Passed: python -m unittest tools.test_setup_mac — 28 tests, including two new ones: a chosen missing model is
    named and points at ./setup.sh --setup; an installed model (files, .done marks, pack) keeps the update quiet.
  • Passed: reproduced on the reporter's Mac before and after the change — ./setup.sh --update --model IQ3_S
    ended silently after step 4 before; after, it prints the message above (exit 0 both times).
  • Not run: no download was started, so the IQ3_S install path itself is not exercised here; the reporter's setup
    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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/3848 **Author:** [@demetree](https://github.com/demetree) **Created:** 10/23/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `f-mac-update-model-silent` --- ### 📝 Commits (1) - [`b342965`](https://github.com/Niko1221/Strata/commit/b342965b2194e7c2344e539968a4278803fcee28) [Other] setup: say when an update was asked for a model that is not installed ### 📊 Changes **2 files changed** (+62 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `metal/setup_mac.py` (+12 -0) 📝 `tools/test_setup_mac.py` (+50 -0) </details> ### 📄 Description ## Title [Other] setup: say when an update was asked for a model that is not installed Issue: Resolves # ## Problem and result `update.sh` runs `setup.py --update`. On a Mac, `metal/setup_mac.py` returns right after the engine step — but the model 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: ``` [!] IQ3_S is not installed here, and an update does not download model files: nothing was installed to download and prepare IQ3_S: ./setup.sh --setup ``` An update for a model that is already set up prints exactly what it printed before. ## Approach `metal/setup_mac.py` only, at the `--update` return. `update.sh`'s documented contract ("The model files are not touched") is kept; no prompts and no download behaviour change. ## Validation - **Passed**: `python -m unittest tools.test_setup_mac` — 28 tests, including two new ones: a chosen missing model is named and points at `./setup.sh --setup`; an installed model (files, `.done` marks, pack) keeps the update quiet. - **Passed**: reproduced on the reporter's Mac before and after the change — `./setup.sh --update --model IQ3_S` ended silently after step 4 before; after, it prints the message above (exit 0 both times). - **Not run**: no download was started, so the IQ3_S install path itself is not exercised here; the reporter's setup 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:39:08 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4800
No description provided.