mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #570] [CLOSED] setup: a read-only --gguf-dir no longer stops setup when marking checked shards #2698
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#2698
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/570
Author: @gputier
Created: 10/3/2026
Status: ❌ Closed
Base:
main← Head:pr/gguf-readonly-0.1.37📝 Commits (10+)
872af82Low-RAM mode, resident variant: the experts the GPU does not hold stay in RAM (--resident-experts), chosen by setup483953fMerge f-84 into rel-0.1.307e4ee54setup: the resident low-RAM variant keeps its RAM copy pageable on ROCm (STRATA_RESIDENT_PIN=0 in the config's env)1afdd47Merge f-coupled into rel-0.1.300704e7dHIP: enable RDNA4 gfx1201 (RX 9070 / AI PRO R9700)8616c60generate: the option parser's else-if chain in two statements (MSVC C1061: more than 128 nested blocks after the new options); the same order and effects538a0dfMerge f-resram into rel-0.1.30703ef30Merge f-189 (PR #189, the conversation snapshot core and RAM cache) into rel-0.1.30e46cccaConversation snapshots and checkpoints follow the session carve (#216): a session saves and restores only the layers it owns9907379HIP: RDNA4 gfx1201 beside gfx1100; the startup check compares the card with the compiled archs; setup picks ROCm and the hipBLASLt table per arch📊 Changes
2 files changed (+30 additions, -1 deletions)
View changed files
📝
setup.py(+4 -1)📝
tools/test_setup_choices.py(+26 -0)📄 Description
With
--gguf-dirpointing at a folder setup cannot write to (a share, a read-only mount), shards that are whole but have no.donemark reachmark()in the loop at setup.py:3319-3321.mark()writes<shard>.done, the write raises an OSError, and setup stops with a traceback, although the files are fine andhave_modelalready accepts a--gguf-dirshard without a mark (done(s) or a.gguf_dir).The mark is now written inside a try, and an OSError becomes a warning:
<shard> is whole but its finish mark cannot be written (<error>). Setup goes on.Test:
ReadOnlyGgufDirin tools/test_setup_choices.py runs setup.main() through the existinginstall()helper with two empty shard files in a--gguf-dir,whole_shardforced to True andmarkraising PermissionError for paths under that folder. On v0.1.37 the PermissionError comes out of setup. With the change, setup exits 0 and prints the warning. The read-only folder is simulated with the mock, not a real read-only mount.Python suite in a python:3.12-slim container: 416 passed, 47 failed, the same 47 as on a clean v0.1.37 (on Linux
setup.EXEis "strata", which breaks tools/test_setup_golden.py'snormalize()andtest_prebuilt_hip_zip). WithEXEforced to "strata.exe": 417 passed, none failed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.