Repository navigation
fix: harden quantized vision parameter loading - #2682
Merged
Merged
Conversation
Preserve the fixed image continuation corpus, before/after logit traces, and final checkpoint results for the quantization-aware vision loaders. Record review decisions and the two unrelated baseline test failures without changing their numerical criteria. The integrated release passes all 13 checkpoint smokes, with identical HunyuanOCR and Gemma4 greedy outputs and logit traces. Workspace clippy and formatting pass; the serial workspace gate reports 14,193 passes and two baseline failures. Refs #2676, #2682.
4 tasks
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.
Summary
Vision/VLM loaders now recognize quantization sidecars for every Group A/B/C parameter in #2676. Row lookups use
UnifiedEmbedding; whole-array consumers dequantize once at load. Shape, dtype, sidecar, packing, mode, and backend checks reject malformed inputs before MLX FFI calls while preserving dense values.The change includes sidecar-preserving remaps, metadata propagation, both valid Moondream position-table ranks, regression tests, and model-porting guidance. Implementation, security, performance, and finalization reviews found no remaining introduced blockers.
Validation
ffea9111; no numerical tolerance was changed.Final code was validated after integrating main
b4cdf023. Corpus, traces, and results are inbenchmarks/issue-2676/; English/Korean reports are inTECHNICAL_REPORTS/2682-*.Closes #2676