Skip to content

[Diffusion] Add composable component weight path CLI - #36078

Merged
mickqian merged 3 commits into
mainfrom
codex/diffusion-component-weight-cli
Aug 24, 2026
Merged

mickqian merged 3 commits into
mainfrom
codex/diffusion-component-weight-cli

Conversation

@mickqian

@mickqian mickqian commented Aug 23, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

A component configuration and its replacement weights are separate inputs. This matters for self-describing single-file quantized checkpoints: for example, a Qwen3-VL-4B config can be paired with a Comfy FP8 weight file. The existing component_weights_paths dictionary supports the runtime contract, but its CLI form is substantially less discoverable than dynamic component paths.

Modifications

  • add --component-weights-paths.<component> <source>
  • add the equivalent --<component>-weights-path <source> alias
  • preserve config-file entries and merge explicit CLI overrides per component
  • parse the specific -weights-path suffix before the existing generic -path alias
  • share one dynamic component-map parser instead of duplicating the path parsing loop

Example:

sglang serve --model-path MiniMaxAI/MiniMax-H3 \
  --component-paths.text_encoder Qwen/Qwen3-VL-4B-Instruct \
  --text-encoder-weights-path \
  Comfy-Org/Krea-2/text_encoders/qwen3vl_4b_fp8_scaled.safetensors

Self-describing checkpoint quantization continues to be inferred automatically; this PR does not add or require a quantization selector.

Accuracy Tests

No model or numerical path changes. Focused parser coverage checks config merging, dotted options, aliases, equals syntax, and independent component values.

Speed Tests and Profiling

Not applicable; this is CLI routing only.

Checklist

  • Format code with pre-commit
  • Add focused unit coverage
  • Update the consolidated diffusion checkpoint-format table after the runtime stack lands

CI States

Latest PR Test (Base): ✅ Run #32644391959
Latest PR Test (Extra): ❌ Run #32644391734
Latest PR Test (AMD ROCm 7.2): ⏳ Run #32644392041

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Aug 23, 2026
@mintlify

mintlify Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
lmsysorg 🟢 Ready View Preview Aug 23, 2026, 2:06 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@mickqian
mickqian merged commit fee00a4 into main Aug 24, 2026
134 of 142 checks passed
@mickqian
mickqian deleted the codex/diffusion-component-weight-cli branch August 24, 2026 01:31

This branch was successfully deployed

1 active deployment
staging - docs — 092f795b Deployed Aug 23, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

diffusion SGLang Diffusion documentation Improvements or additions to documentation run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant