Repository navigation
Add component-aware proxy support for image-text models - #1505
Open
Mamta Singh (quic-mamta) wants to merge 22 commits into
Open
Mamta Singh (quic-mamta) wants to merge 22 commits into
Mamta Singh (quic-mamta) wants to merge 22 commits into
Conversation
Signed-off-by: Mamta Singh <mamtsing@qti.qualcomm.com>
Signed-off-by: Mamta Singh <168400541+quic-mamta@users.noreply.github.com>
Signed-off-by: Mamta Singh <mamtsing@qti.qualcomm.com>
Mamta Singh (quic-mamta)
force-pushed
the
proxy_image_text
branch
from
November 16, 2026 06:35
38c0616 to
bcfb2d0
Compare
Mamta Singh (quic-mamta)
force-pushed
the
proxy_image_text
branch
from
November 16, 2026 09:29
41be8a7 to
37e9e57
Compare
Signed-off-by: Mamta Singh <mamtsing@qti.qualcomm.com>
Mamta Singh (quic-mamta)
force-pushed
the
proxy_image_text
branch
from
November 16, 2026 09:52
37e9e57 to
94b2874
Compare
Signed-off-by: Mamta Singh <168400541+quic-mamta@users.noreply.github.com>
Mamta Singh (quic-mamta)
force-pushed
the
proxy_image_text
branch
from
November 17, 2026 08:01
13a3fb5 to
903d751
Compare
Mamta Singh (quic-mamta)
requested review from
Ann Kuruvilla (quic-akuruvil) and
Rishin Raj (quic-rishinr)
and removed request for
Ann Kuruvilla (quic-akuruvil) and
Rishin Raj (quic-rishinr)
November 23, 2026 06:45
Signed-off-by: Mamta Singh <mamtsing@qti.qualcomm.com>
There was a problem hiding this comment.
🟡 Changes recommended
Deduplicating feature-selection indexes and export targets breaks Mllama projection dimensions and Dynamo’s ordered naming contract, with additional proxy normalization and vision-validation issues unresolved.
6 open issues
Preserve repeated Mllama feature indexes during depth reduction · New Preserve ordered duplicate export targets for Dynamo · New Remap negative vision feature selectors after depth reduction · New Normalize dense-layer indexes before restoring proxy cadence · New Retain both vision blocks selected by the default LLaVA feature tap · New Distinguish vision attention variants in proxy signatures · New
What changed in this PR
Adds component-aware proxy loading to QEfficient’s image-text pipeline, allowing vision-stack reduction while keeping language proxy mode as the default.
Changes:
- Adds a
proxy_componentselector and vision-depth reduction with layer-metadata normalization. - Makes component transforms, artifact hashes, logits handling, and ONNX subfunction selection component-aware.
- Adds focused regression tests and documents vision proxy usage.
| File | Description |
|---|---|
tests/unit_test/models/test_model_quickcheck.py |
Adds component-selection, metadata-normalization, and loading regression tests. |
QEfficient/utils/export_utils.py |
Selects and validates ONNX subfunctions for the chosen component. |
QEfficient/transformers/models/modeling_auto.py |
Propagates component selection through loaders and dual-QPC wrappers. |
QEfficient/transformers/modeling_utils.py |
Limits language substitutions to language proxy mode. |
QEfficient/proxy/modeling_utils.py |
Adds vision reduction and layer-metadata normalization policies. |
QEfficient/generation/generation_helpers.py |
Restricts proxy logits-width handling to language mode. |
QEfficient/base/modeling_qeff.py |
Adds component and reduced-depth metadata to artifact hashes. |
docs/source/features_enablement.md |
Documents vision proxy behavior and configuration. |
Review effort: Balanced
Mamta Singh (quic-mamta)
force-pushed
the
proxy_image_text
branch
2 times, most recently
from
November 25, 2026 08:45
27f87eb to
bb83f74
Compare
Signed-off-by: Mamta Singh <mamtsing@qti.qualcomm.com>
Mamta Singh (quic-mamta)
force-pushed
the
proxy_image_text
branch
from
November 25, 2026 08:55
bb83f74 to
d7d59cc
Compare
Signed-off-by: Mamta Singh <mamtsing@qti.qualcomm.com>
Signed-off-by: Mamta Singh <mamtsing@qti.qualcomm.com>
There was a problem hiding this comment.
🟡 Changes recommended
Critical layer-metadata remapping errors break Mllama export and Llama4 attention initialization, while ONNX validation incorrectly rejects valid shared Qwen2.5-VL vision functions.
5 open issues
Preserve Llama4 no_rope_layers masks when reducing depth · New Preserve Mllama cross-attention layer indexes during rescaling · New Allow shared Qwen2.5-VL vision functions for mask-only signatures · New Avoid rescaling vision metadata twice for direct configs · New Distinguish vision attention variants in proxy signatures
5 resolved since last review
Preserve ordered duplicate export targets for Dynamo Preserve repeated Mllama feature indexes during depth reduction Retain both vision blocks selected by the default LLaVA feature tap Normalize dense-layer indexes before restoring proxy cadence Remap negative vision feature selectors after depth reduction
Review effort: Balanced
Signed-off-by: Mamta Singh <mamtsing@qti.qualcomm.com>
Signed-off-by: Mamta Singh <mamtsing@qti.qualcomm.com>
Signed-off-by: Mamta Singh <mamtsing@qti.qualcomm.com>
Signed-off-by: Mamta Singh <mamtsing@qti.qualcomm.com>
Mamta Singh (quic-mamta)
force-pushed
the
proxy_image_text
branch
from
November 27, 2026 15:27
66c792a to
fbb3abe
Compare
Signed-off-by: Mamta Singh <168400541+quic-mamta@users.noreply.github.com>
This branch has not been deployed
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
Adds component-aware proxy support for image-text models.
This extends image-text proxy loading with a
proxy_componentselector that defaults to"language"to preserve current behavior, while enabling"vision"proxy reduction for supported VLM vision stacks.Changes
proxy_component={"language", "vision"}handling for image-text proxy loading.vision_config.depthvision_config.num_hidden_layersvision_config.vt_num_hidden_layersproxy_componentproxy_num_hidden_layersproxy_num_vision_layerslm_headsubstitutions.GraniteMoeParallelExperts/GraniteMoeTopKGatingrenamesposition_ids_in_meshgridabsenceNotes
enable_proxy=Trueis used for image-text models andproxy_componentis omitted, proxying remains language-only for backward compatibility.proxy_component="vision".weight_free=Truein supported dual-QPC VLM mode; single-QPC weight-free remains unsupported.