mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#5240
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/4901
Author: @XiaoBinGan
Created: 11/1/2026
Status: 🔄 Open
Base:
main← Head:fix/prepare-check-ready-made-pack-folder📝 Commits (1)
0e8707fFix #4892: the prepare check looks for a ready-made pack where setup writes it📊 Changes
2 files changed (+55 additions, -1 deletions)
View changed files
📝
tools/strata_mcp.py(+8 -1)📝
tools/test_strata_mcp.py(+47 -0)📄 Description
Problem and result
Asking to prepare an NVFP4 pack that is already fully on disk was refused for lack of disk space:
tools/strata_mcp.pyinstall_plan()decided "is this model partly on disk?" frommodels/<family tag><model>(
models/nvfp4-NVFP4). A ready-made pack is written by setup undermodels/<owner>--<repo>(setup.pyready_where(),prepared_dir()), so for this pack the probe looked at a folder setup never creates andpartly_downloadedwas alwaysFalse(#4892).Reproduced on
main(c62d5e3a) with a temporary data folder holding the real pack layout and six*.gguffiles,from a pure-Python call (no GPU, model or network):
Related discussion
#4892 — the report, with the real folder layout and the same code path. A focused fix to an existing check, not a
new feature, so no separate scope agreement was asked for.
Approach
MODELS[model]["repo"]when setup.py names one:models/<owner>--<repo>.expected_files()), whoseready-pack branch already resolves each file through
ready_where(). Nothing is duplicated: the same function theprogress view uses decides it.
models/<tag>folder scan stays as the fallback when setup.py cannot be imported (the built-in table has norepo) and for the regular downloads, which really are written under the tag folder.visionentry of the expected list is not counted: the picture reader lives beside the model folders, so itspresence alone does not mean the model is downloaded.
Validation
Passed: the new regression test on the branch,
python -m pytest tools/test_strata_mcp.py -q -k ReadyMadePack(Python 3.11.16, Windows 11): 2 passed, 52 deselected. One is the NVFP4 pack in its repository folder; the other
pins that a regular download is still found in
models/<tag>.Passed: the module's full suite on the branch,
python -m pytest tools/test_strata_mcp.py -q: 1 failed, 53passed — the one failure is
MacCatalog::test_deepseek_on_a_mac_offers_the_two_sets_that_were_run_with_the_mac_words,which already fails on unmodified
mainin this checkout (it predates UD-IQ1_S/M being offered on a Mac) and isunrelated to this change.
Failed: the same new test on unmodified
main(fix removed, test kept):AssertionError: False is not true : the pack's files are on this diskattools/test_strata_mcp.py:475. That is theA/B: the test pins the change.
Not run: a real
strata install/ "Download and prepare" of an NVFP4 pack on this machine (it needs the 120 GBpack and a model install). The test drives
install_plan()with the realsetup.pytables and the real directorylayout, which is the decision that changes.
Limits
disk_needed_gbfor a model that is already fully on disk (theexisting meaning of
partly_downloaded: a repair needs the headroom, not a second download). The report's expecteddisk_needed_gbof 9 for vision on the same pack follows from that existing rule.did before. The install's own verification is what catches that.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.