Add a Diffusers usage section (Modular Diffusers custom blocks)

#2
by multimodalart HF Staff - opened

Adds a short "Use with Diffusers" section: text-to-image and edit PE through the diffusers/minimax-h3-image-pe-blocks custom blocks, which wrap the released prompts and request settings and constrain the answer with XGrammar.

Notes for review:

  • The 19 GiB figure assumes the 4-bit loading PR on the blocks repo (https://huggingface.co/diffusers/minimax-h3-image-pe-blocks/discussions/1) is merged; without it the blocks dequantize to bf16 (52 GiB).
  • The blocks repo is private for now, so the section only works once it is public.
  • Tested through ModularPipeline on an RTX PRO 6000: text-to-image and edit, NVFP4 and bitsandbytes backends, all returning valid schema-constrained answers.

Thanks for the Diffusers section! Main has changed since this PR was opened (the license now points to the MiniMax-H3-Image repo, and "Edit PE" has been renamed to "Image editing PE"). Could you rebase onto the current main and:

  1. use "Image editing PE" consistently na, and refer to the model as MiniMax-H3-Image-PE;
  2. keep the section between "How to use Image editing PE" and "License";

We'll merge right after that.

aight, made it compatible!

ryanlee-dev changed pull request status to merged

Sign up or log in to comment