Repository navigation
Expose Qwen media preparation and request-owned positions - #351
Closed
jonathan308 wants to merge 1 commit into
Closed
jonathan308 wants to merge 1 commit into
jonathan308 wants to merge 1 commit into
Conversation
This was referenced Oct 23, 2026
javiech1
pushed a commit
to javiech1/mlx-swift-lm
that referenced
this pull request
Oct 24, 2026
* Add Qwen3.5 MTP speculative decoding * Harden Qwen3.5 MTP decoding * Fix Qwen MTP verification fidelity * Preserve caller MTP cache ownership
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.
Qwen cluster workers need the original image/video processor and vision tower without constructing a second language model. This change exposes shared preprocessing, a vision-only serial loader, and request-owned embedding/three-axis position forwards. The existing multimodal wrapper reuses the processor; ordinary text calls retain their existing path.
Depends on SDK #350. The matching provider integration remains separate. This draft does not establish full-artifact, paired-device or endpoint media qualification.
Before
flowchart LR Input[Image or video] --> Wrapper[Combined vision and language wrapper] Worker[Cluster worker] --> Missing[No isolated processor and tower interface] Text[Text forward] --> Cache[Cache-derived positions]After
flowchart LR Input[Image or video] --> Processor[Shared processor and geometry] Processor --> Tower[Vision-only serial loader] Tower --> Request[Request-owned embeddings and positions] Request --> Forward[Explicit language forward] Wrapper[Existing multimodal wrapper] --> Processor Text[Ordinary text forward] --> Cache[Existing cache-derived positions]Validation: nine focused CPU tests cover preprocessing geometry, processor precedence, serial tensor loading, exact tiny-wrapper parity, explicit positions and malformed-cache refusal; full MLXLLM/MLXVLM modules compiled. Published production changes match those independently reviewed sources, preserving an existing formatting-only parent change. Test organization and fork coverage pass (1,944/1,944 files). Full image/video tower execution and cross-Mac parity remain required.
Independent refactor/correctness review is clear for the frozen native-media export and the narrow publication delta. No model downloads or hardware qualification are implied by these component tests.