MiniMax H3 Image (#15230)
* Add MiniMax H3-Image (text-to-image and image editing)
- MiniMaxH3ImageTransformer2DModel: the MiniMax-H3 DiT without audio, with one output head per sampling step
- AutoencoderKLMiniMaxH3Image: the MiniMax-H3 encoder with a 2D ViT decoder
- MiniMaxH3ImageBlocks / MiniMaxH3ImageModularPipeline in modular_pipelines/minimax_h3_image
- MiniMaxH3Scheduler: new euler_update_form config
- conversion script (--version image), tests and docs
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* Add the H3-Image integration example scripts
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* Keep a copy of the text encoder in the H3-Image repository
The converter copies it in from --text_encoder_path instead of pointing the index at MiniMax-H3.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* Address review feedback
- docs: separate text-to-image and editing snippets; drop the CPU-generator note
- AutoencoderKLMiniMaxH3Image: inline `_encode_tile`
- tests: standalone block tests in their own class; the scheduler's velocity
form is checked in the pipeline tests instead of a scheduler test file;
`test_edit_reference_noise` compares latents rather than the 8-bit image
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* Warn about denoiser_input_fields the transformer does not take
Tagged fields are forwarded to the transformer by parameter name. A field
whose name is not a parameter is not used; the loop denoiser now says so
once, on the first step. `latents` and `prompt_embeds` go in as
`hidden_states` and `encoder_hidden_states`, so they are left out of the
check. The forwarded dict is renamed `additional_denoiser_kwargs`, since it
holds whatever is tagged, not only the layout fields.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* Merge pull request #3 from huggingface/prompt-enhancement
Prompt enhancement
* correct memory consumption.
* remove integration notes
* change references to vae_diffusers and transformer_diffusers.
---------
Co-authored-by: yiyixuxu <yixu310@gmail.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>