Repository navigation
[models] Skip torch.compile on the Muse Glimmer vision adapter - #4806
Merged
tianyu-l merged 2 commits intoSep 21, 2026
Merged
Conversation
apply_compile walks model.layers (TransformerBlock stack). The adapter is a two-layer MLP with no layers attribute, so compiling it raises AttributeError.
These entry points already accept skip_dp for vLLM; the AST allowlist did not.
YeonwooSung
requested review from
fegin,
tianyu-l,
wconstab and
wwwjn
as code owners
September 20, 2026 09:06
|
|
tianyu-l
approved these changes
Sep 21, 2026
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
apply_compilewalksmodel.layersand compiles each TransformerBlock. Muse Glimmer's vision adapter is a two-layer GELU MLP (c_fc/c_proj) with nolayersattribute, soparallelize_muse_glimmer(..., compile.components=["model"])raisesAttributeErroron multimodal flavors.Qwen3.5, which this file mirrors, already compiles only the decoder and vision encoder. The AC path next to this code already skips the adapter for the same reason. Stop compiling the adapter; FSDP wrapping of encoder and adapter is unchanged.
Also extend the
skip_dpAST allowlist to Qwen3.5, gpt-oss, and Muse Glimmer. Those entry points already acceptskip_dpfor vLLM; the test list did not. Flux is left out (noskip_dp, not a vLLM generator path).Test plan
pytest tests/unit_tests/cpu/test_muse_glimmer_compile.py tests/unit_tests/cpu/test_skip_dp.py(9 passed locally)