You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: support -mlp variants of ClipProj-MiniMax-H3 - #2424
If this PR adds or changes model support, I have added or updated its usage guide and relevant model index/README entries following the model documentation requirements.
Summary by CodeRabbit
New Features
MiniMax-H3 image workflows now support additional ClipProj connector configurations, including MLP residual and sink variants.
Improved compatibility checks provide clearer guidance when required connectors are missing or encoder sizes do not match.
Documentation
Updated MiniMax-H3 model guidance to reflect supported connector variants and encoder-size matching requirements.
No actionable comments were generated in the recent review.
Walkthrough
MiniMax-H3 ClipProj now supports optional MLP and sink components. Connector detection and encoder validation account for the supported connector configurations, and the model documentation no longer excludes MLP variants.
Changes: MiniMax-H3 ClipProj support
Layer / File(s)
Summary
ClipProj component support src/model/te/clipproj_connector.hpp, docs/models/minimax_h3.md, docs/models/minimax_h3_image.md
ClipProj detects optional linear, MLP, and sink components and applies the enabled components during forward processing. The documentation no longer excludes MLP variants.
Connector detection checks for ClipProj .mean_in weights and initializes the connector with output size 5120. Validation reports connector requirements for Qwen3-VL-4B and Qwen3-VL-8B.
leejet/stable-diffusion.cpp#2410: Introduces the ClipProj connector that this change extends with optional MLP support and configurable output dimensions.
This change adds support for the -mlp ClipProj variants for MiniMax-H3 and updates the documentation to match. No concrete defects were found in the supported checkpoints, so the merge risk is minimal.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "feat: support -mlp variants of ClipProj-MiniMax-H3" matches the main change. The changeset adds MLP and linear+MLP connector support in ClipProjConnector, detects these variants from tensor…
Description check
The description has a Summary that explains the change and links the follow-up PR. It includes Additional Information with a test setup, a comparison table of connector variants, and VRAM figures. The…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "feat: support -mlp variants of ClipProj-MiniMax-H3" matches the main change. The changeset adds MLP and linear+MLP connector support in ClipProjConnector, detects these variants from tensor names, and updates the MiniMax-H3 docs. The title is specific and concise.
Full details: Description check
Explanation
The description has a Summary that explains the change and links the follow-up PR. It includes Additional Information with a test setup, a comparison table of connector variants, and VRAM figures. The Checklist is complete. The Related Issue / Discussion section still contains the unfilled template comment and gives no link. This is a non-critical gap, since the summary references PR #2410.
Resolution
Replace the template comment in the Related Issue / Discussion section with a link to PR #2410 or the related discussion, or remove the section.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 086f7f59-e618-4e40-b8bd-5442fee78cce
Commits
Reviewing files that changed from the base of the PR and between 5fa203c and 3b495a6.
Files selected for processing: 4
docs/models/minimax_h3.md
docs/models/minimax_h3_image.md
src/conditioning/conditioner.hpp
src/model/te/clipproj_connector.hpp
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
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
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
Follow-up: #2410
Adds support for "-mlp" variants of https://huggingface.co/NicoLab28/ClipProj-MiniMax-H3/ (including linear + mlp refiner, and mlp only)
Related Issue / Discussion
Additional Information
minimax_h3_image_pruned-UD-Q4_K_XL.gguf + Qwen3-VL-8B-Instruct-Q4_K_M.gguf
prompt: 'An adorable cat holding a cardboard sign saying 'Prompt encoded with 4.5bit Qwen3-VL-8B!'
Checklist
Summary by CodeRabbit