[Refactor][Diffusion] Remove model-specific names from LoRA and ModelOpt loader defaults (#5907)

Signed-off-by: Alicia <115451386+congw729@users.noreply.github.com>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
AliciaandHongsheng Liu authored and GitHub committed 2026-09-12 20:30:03 +08:00
1 parent bc0c9f4b45
commit 28291df179
6 files changed
+43 -12

No files matched your search

@@ -17,10 +17,17 @@ MODEL_OPT_SCALE_SUFFIXES = (
".weight_scale_2",
".weight_scale_inv",
)
# Fused projections following the generic diffusers Attention naming
# convention. ``to_q``/``to_k``/``to_v`` and the joint-attention
# ``add_q_proj``/``add_k_proj``/``add_v_proj`` shard names are fused into
# ``to_qkv``/``add_kv_proj`` by most vllm-omni DiT implementations, many of
# which do not declare their own ``packed_modules_mapping``; keeping these
# two entries here avoids repeating them in every such model. Model-specific
# fusions (e.g. Z-Image's ``w13``) must be declared on the model class via
# ``packed_modules_mapping``, which is merged on top of these defaults.
DEFAULT_PACKED_MODULES_MAPPING = {
"to_qkv": ("to_q", "to_k", "to_v"),
"add_kv_proj": ("add_q_proj", "add_k_proj", "add_v_proj"),
"w13": ("w1", "w3"),
}
FP8_DTYPES = tuple(
dtype