Repository navigation
[Other] setup: reuse shared vision projectors above local GGUF directories - #503
Open
zerodegress wants to merge 4 commits into
Open
zerodegress wants to merge 4 commits into
zerodegress wants to merge 4 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and result
With vision enabled, a local model can have one projector beside several quantization directories. Pointing
--gguf-dirat a quantization directory made Qwen4 and Qwen3.6 Strata report a missing projector. The Poly installer could request another download. All three paths now reuse a matching shared file.For example, setup can read
mmproj-BF16.ggufbesideUD-IQ2_XS/when that directory contains both Qwen4-35B-A3B shards.Related discussion
None found.
Approach
Use the existing
mmproj_besidefallback after each installer's existing local choices. Poly keeps its managed cache priority and uses the size-specific pin when available. During verification, setup temporarily registers the shared projector’s directory so the checksum mark stays under PolyStrata’smarks/directory. The registration is removed even if verification fails. The existing custom-file rules and vision-off behavior remain in place.Validation
Linux x86_64, Python 3.14.10, commit
d52374653e59based on7cef9524.Passed
python -B terminal/tools/test_setup_qwen36.py— 29 passed. Covers both Strata and Poly, including cache precedence, file ownership and fallback when the shared file is truncated.python -B terminal/tools/test_setup_qwen4.py— 14 passed, 1 skipped. The new CLI test passes only--custom-gguffor model selection and checks automatic Qwen4 detection, the saved model and parent projector paths, and zero downloads. Checks the saved projector path and absence of a projector download.python -B terminal/tools/test_setup_custom_gguf.py— 21 passed.python -B terminal/tools/test_setup_feed_models.py— 37 passed.Local validation command (model location generalized)
Failed
None on the submitted revision. The CLI regression test reproduced the missing-projector exit when run with the original
install_qwen4function from7cef9524. One92e232c1fc2, enabling real projector verification in the Qwen4 and Qwen3.6 Strata tests reproduced an unwanted.donebeside the shared file. Before each fix, the new regression tests reproduced the missing-projector exit on Qwen4 and Qwen3.6 Strata. The Poly test observed the managed download path instead of the existing parent file.Not run
The opt-in live Hugging Face revision check was skipped. No engine code changed. Setup tests mock engine builds, subprocesses and downloads. The local Qwen4 harness mocks shard checks and runs real SHA-256 verification for the projector. No GPU inference or end-to-end LocalAI launch was run.
Limits
Shared files must match the pinned name and size. The search covers the parent and its
models/subdirectory only. Qwen3.6 exercises the common Poly installer in tests. Other Poly families were not tested with real weights.