Repository navigation
[diffusion] Compose third-party component bundles safely - #37816
Merged
mickqian merged 7 commits intoSep 4, 2026
Merged
Conversation
mickqian
requested review from
AgainstEntropy,
BBuf,
HaiShaw,
ping1jing2 and
yichiche
as code owners
September 3, 2026 13:20
StevenChenSE
pushed a commit
to StevenChenSE/sglang
that referenced
this pull request
Sep 6, 2026
alex0dd
added a commit
to alex0dd/sglang
that referenced
this pull request
Sep 28, 2026
Upstream sgl-project#37816 added BaseLayerWithLoRA.can_merge_base_weight, which already routes quantized bases (non-float weights or any quantized LinearBase method) to dynamic LoRA and refuses an explicit merge with "use merge mode 'dynamic'". Drop the earlier dtype-based check in LoRAPipeline._should_merge_lora_for_layers that pre-empted it with a different message, and assert the upstream property in the INT8 LoRA test instead. The MiniMax-H3 Comfy INT8 inspection test builds a 2-wide serialized layer; on a CI runner that has sgl-kernel but no comfy_kitchen the backend selection refuses that width (the sgl-kernel epilogue needs a multiple of 8), so patch the comfy_kitchen availability probe next to the loader patch, as test_convrot_int8_backends.py already does.
This was referenced Oct 6, 2026
BBuf
added a commit
to BBuf/sglang
that referenced
this pull request
Oct 16, 2026
…e model first AutoencoderDC builds its diffusers model lazily and treats load_state_dict as "build with these weights". Since sgl-project#37816 the VAE loader calls vae.state_dict() (weight-norm adoption, arch-metadata checks) before loading, which builds the inner model from config with random initialization; the following load_state_dict then returned early and dropped every checkpoint tensor. SANA text-to-image decoded with a randomly initialized DC-AE (noise images that also changed from process to process). Load into the existing inner model instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
5 tasks done
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
These are the interoperability gaps found by exercising real third-party component bundles that combine a quantized DiT, replacement text encoder, nested LoRA, replacement VAEs, and hybrid H3 checkpoints. The adaptations stay at the generic cache, LoRA, and VAE boundaries; only the filename admission rule is H3-specific.
Validation
sglang serveE2E: INT8 DiT + NVFP4-AWQ text encoder + auto-downloaded nested 4-step LoRACI States
Latest PR Test (Base): ✅ Run #33782169554
Latest PR Test (Extra): ✅ Run #33782169223
Latest PR Test (AMD ROCm 7.2): ⏳ Run #33782169476