Skip to content

feat: support -mlp variants of ClipProj-MiniMax-H3 - #2424

Open
stduhpf wants to merge 1 commit into
leejet:masterfrom
stduhpf:clipproj-h3
Open

stduhpf wants to merge 1 commit into
leejet:masterfrom
stduhpf:clipproj-h3

Conversation

@stduhpf

@stduhpf stduhpf commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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!'

connector mmh3-8b-ClipProj mmh3-8b-ClipProj-mlp mmh3-8b-ClipProj-v3.1 mmh3-8b-ClipProj-v3.1-mlp
output output - Copy (705) output - Copy (704) output - Copy (703) output - Copy (702)
type linear only linear + mpl residuals (16384 hidden dims) linear only mlp only (32768 hidden dims)
VRAM usage for connector 80.09 MB 368.17 MB 80.09 MB 576.21 MB
Total VRAM usage for encoder 3,032.77 MB 3,320.85 MB 3,032.77 MB 3,528.89 MB

Checklist

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.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

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.
MiniMax-H3 connector selection
src/conditioning/conditioner.hpp
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.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Possibly related PRs

Suggested reviewers: leejet

Merge Risk: Minimal · up to 3b495

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant