[GH-ISSUE #4887] [TUI] strata models explain: show why a model folder is or is not found under models/ #2246

Open
opened 2026-11-04 01:57:53 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @XiaoBinGan on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4887

Problem

0.2.7 fixed the case-sensitive-disk bug in #3996: Catalog.model_folder() now tries setup's own spelling (models/IQ3_S), then the lower-case run-config tag (models/iq3_s), then a folder that differs only in letter case, and falls back to setup's spelling. That fix is the right one, but when a model still shows as "not on this computer" there is nothing that shows what the launch actually looked for and why it did not find the folder. The person sees the plan's "about X GB to download" and has to guess folder names inside the data folder.

Proposed scope

One new read-only subcommand: strata models explain NAME.

  • Takes the names the launch already resolves: IQ3_S, iq3_s, --family qwen, and the family/model spelling the model table uses (qwen/IQ3_S).
  • Prints the parsed (family, model) and folder tag, the data folder, every folder the launch lookup tries with exists: yes/no, the folder it would use and why (exact spelling, lower-case tag, case-insensitive match, fallback), and the .gguf files it counts with their total bytes.
  • When nothing is found, names the folders that are there instead (the closest names under models/, names only), so a renamed folder or a different data folder is visible at a glance.
  • Honours --output json like the other models commands.
  • Lists folders and reads file sizes only: no download, no move, no settings or model file change.

Shape: a models explain subcommand rather than models show --explain. The models group is verbs today (list, inspect, import, move) and has no show, so a new verb fits it; an --explain flag would need a show command that does not exist and would have to explain what show shows.

This is a small, opt-in diagnostic (no default path changes). The PR that follows adds the subcommand, unit tests with temp directories (IQ3_S and iq3_s variants, and a case-insensitive match on a disk the test makes case-sensitive), and a short section in docs/TERMINAL.md / docs/TERMINAL_LAUNCH.md.

Environment (not needed to reproduce this one)

This is a request for a read-only diagnostic: it needs no graphics card and no model, and the pull request's tests build temp directories. For the record, the checkout used to check the behaviour was:

  • Windows 10 19045, Python 3.11.16, source checkout at commit c62d5e3a
  • NVIDIA GeForce RTX 3060 and Intel UHD Graphics 630 (WMI reports 4 GB for the NVIDIA card, the usual 32-bit WMI limit), 32 GB RAM
  • No GPU work, no download and no real model folder were used.
Originally created by @XiaoBinGan on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4887 ## Problem 0.2.7 fixed the case-sensitive-disk bug in #3996: `Catalog.model_folder()` now tries setup's own spelling (`models/IQ3_S`), then the lower-case run-config tag (`models/iq3_s`), then a folder that differs only in letter case, and falls back to setup's spelling. That fix is the right one, but when a model still shows as "not on this computer" there is nothing that shows what the launch actually looked for and why it did not find the folder. The person sees the plan's "about X GB to download" and has to guess folder names inside the data folder. ## Proposed scope One new read-only subcommand: `strata models explain NAME`. - Takes the names the launch already resolves: `IQ3_S`, `iq3_s`, `--family qwen`, and the `family/model` spelling the model table uses (`qwen/IQ3_S`). - Prints the parsed (family, model) and folder tag, the data folder, every folder the launch lookup tries with `exists: yes/no`, the folder it would use and why (`exact spelling`, `lower-case tag`, `case-insensitive match`, `fallback`), and the `.gguf` files it counts with their total bytes. - When nothing is found, names the folders that are there instead (the closest names under `models/`, names only), so a renamed folder or a different data folder is visible at a glance. - Honours `--output json` like the other `models` commands. - Lists folders and reads file sizes only: no download, no move, no settings or model file change. Shape: a `models explain` subcommand rather than `models show --explain`. The `models` group is verbs today (`list`, `inspect`, `import`, `move`) and has no `show`, so a new verb fits it; an `--explain` flag would need a `show` command that does not exist and would have to explain what `show` shows. This is a small, opt-in diagnostic (no default path changes). The PR that follows adds the subcommand, unit tests with temp directories (`IQ3_S` and `iq3_s` variants, and a case-insensitive match on a disk the test makes case-sensitive), and a short section in `docs/TERMINAL.md` / `docs/TERMINAL_LAUNCH.md`. ## Environment (not needed to reproduce this one) This is a request for a read-only diagnostic: it needs no graphics card and no model, and the pull request's tests build temp directories. For the record, the checkout used to check the behaviour was: - Windows 10 19045, Python 3.11.16, source checkout at commit `c62d5e3a` - NVIDIA GeForce RTX 3060 and Intel UHD Graphics 630 (WMI reports 4 GB for the NVIDIA card, the usual 32-bit WMI limit), 32 GB RAM - No GPU work, no download and no real model folder were used.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Add your graphics card with its VRAM, your RAM and your operating system.

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6555589047 --> @github-actions[bot] commented on GitHub (Nov 1, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Add your graphics card with its VRAM, your RAM and your operating system. Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6555644692 --> @github-actions[bot] commented on GitHub (Nov 1, 2026): Thanks, this follows the format now.
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#2246
No description provided.