Modeltext-to-video
NicoLab28

NicoLab28/ClipProj-MiniMax-H3

ClipProj — MiniMax H3 conditioning from a Qwen3-VL-4B Projection matrices that let a Qwen3-VL-4B replace the Qwen3-VL-32B text encoder of MiniMax H3. 15.7 GB → 5.2 GB of VRAM, with no change to the diffusion model, the VAEs or the sampler. ⚠️ Proof...

173likes
0downloads
0views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: base_model:finetune:Comfy-Org/MiniMax-H3

#1 Repository Của Tuần

3
TINIX TRENDING·Chủ đề: text-encoder

#3 Repository Của Tuần

4
TINIX TRENDING·Chủ đề: qwen3-vl

#4 Repository Của Tuần

🎯 Thay thế Qwen3-VL-32B bằng Qwen3-VL-4B trong MiniMax H3 — chỉ với ma trận chiếu

Giảm tiêu thụ VRAM từ 15.7 GB xuống 5.2 GB, không thay đổi diffusion model, VAE hay sampler.

Đây là một proof of concept hoạt động thực sự, được đo lường trên phần cứng thực tế. Dự án cung cấp ma trận chiếu tuyến tính học được cho phép Qwen3-VL-4B sản sinh cùng tensor conditioning [seq, 5120] như Qwen3-VL-32B, nhờ cùng tokenizer (151936 token) và ridge regression không gradient.

✨ Điểm nổi bật

  • Thay thế text encoder: Qwen3-VL-4B thay thế Qwen3-VL-32B trong MiniMax H3
  • Tiết kiệm VRAM: 15.7 GB → 5.2 GB, không thay đổi diffusion/VAE/sampler
  • Ma trận safetensors: tránh rủi ro pickle, lưu scalar trong header
  • Attention sink vector: đã được đưa trở lại ma trận, tránh lỗi trên prompt ngắn
  • Hỗ trợ 4B & 8B: ma trận 4B dùng cho Qwen3-VL-4B, 8B dùng cho Qwen3-VL-8B
  • Ridge regression: calibration không cần gradient, epoch, learning rate
  • CONDPROJ matrix: bổ sung cho so sánh, không phải mặc định
  • Kiểm tra kích thước: node từ chối nếu mismatch input width (2560 vs 4096)

💡 Vì sao đáng chú ý

MiniMax H3 dùng Qwen3-VL-32B để sinh conditioning nhưng chiếm 15.7 GB VRAM. Dự án khai thác việc cùng tokenizer giữa các Qwen3-VL để học ánh xạ vị trí-vị trí giữa trạng thái ẩn của 4B và 32B. Ridge regression đơn giản nhưng hiệu quả.

CONDPROJ matrix được giữ lại vì có liên kết trên r/StableDiffusion. Không tốt hơn nhưng mang lại bài học: DiT không dùng trựng conditioning nguyên bản mà qua condition_proj, nên calibrating trực tiếp trên output của lớp này mới chính xác hơn.


#AI #TextToVideo #ComfyUI #Qwen3VL #TiniX

Similar Projects

Discover other similar projects and AI models.

Modeltext-to-video
larryvrh/MiniMax-H3-Turbo-Lora

MiniMax-H3 Turbo LoRA — 4-step audio-video generation (early preview) A LoRA for MiniMax-H3(https://huggingface.co/Comfy-Org/MiniMax-H3) that renders joint video + synchronized stereo audio in 4 sampling steps instead of the usual ~20 — roughly a 5×...

♥0
193.0k
Aug 8, 2026
Modelimage-to-video
Lightricks/LTX-2.5

LTX-2.5 — Video, Audio & World Simulation Full control and customization — self-host on your infrastructure. Homepage Docs GitHub Research API Playground Discord LTX License LTX-2.5 — Video, Audio & World Simulation Full control and customiz...

♥0
2.1M
Oct 11, 2026
Modeltext-to-video
tencent/HunyuanVideo

HunyuanVideo: A Systematic Framework For Large Video Generation Model Training ----- This repo contains PyTorch model definitions, pre-trained weights and inference/sampling code for our paper exploring HunyuanVideo. You can find more visualizations...

♥0
1.7k
Mar 6, 2025
Modeltext-to-video
SulphurAI/Sulphur-2-base

Sulphur 2 An uncensored video generation model based on LTX 2.3 supporting both t2v and i2v natively, as well as all of the other ltx 2.3 formats. Join our Discord(https://discord.gg/C3d56f39Ah) Support the next version of the project, even just a fe...

♥0
105.6k
Aug 5, 2026
Modeltext-to-video
Wan-AI/Wan2.1-T2V-14B

Wan2.1 💜 Wan &nbsp&nbsp | &nbsp&nbsp 🖥️ GitHub &nbsp&nbsp | &nbsp&nbsp🤗 Hugging Face&nbsp&nbsp | &nbsp&nbsp🤖 ModelScope&nbsp&nbsp | &nbsp&nbsp 📑 Paper (Coming soon) &nbsp&nbsp | &nbsp&nbsp 📑 Blog &nbsp&nbsp | &nbsp&nbsp💬 WeChat Group&nbsp&nbs...

♥0
79.5k
Mar 12, 2025
Modeltext-to-video
genmo/mochi-1-preview

Mochi 1 Blog(https://www.genmo.ai/blog) | Direct Download(https://weights.genmo.dev/weights.zip) | Hugging Face Download(https://huggingface.co/genmo/mochi-1-preview/tree/main) | Playground(https://www.genmo.ai/play) | Careers(https://jobs.ashbyhq.c...

♥0
4.1k
Oct 6, 2026
Modeltext-to-video
tencent/HunyuanVideo-1.5

中文文档(./READMECN.md) HunyuanVideo-1.5 🎬 HunyuanVideo-1.5: A leading lightweight video generation model -- HunyuanVideo-1.5 is a video generation model that delivers top-tier quality with only 8.3B parameters, significantly lowering the barrier to usa...

♥0
1.3k
Dec 25, 2025
Modeltext-to-video
ByteDance/AnimateDiff-Lightning

AnimateDiff-Lightning AnimateDiff-Lightning is a lightning-fast text-to-video generation model. It can generate videos more than ten times faster than the original AnimateDiff. For more information, please refer to our research paper: AnimateDiff-Li...

♥0
32.1k
Jan 6, 2025
Modeltext-to-video
Wan-AI/Wan2.2-TI2V-5B

Wan2.2 💜 Wan &nbsp&nbsp | &nbsp&nbsp 🖥️ GitHub &nbsp&nbsp | &nbsp&nbsp🤗 Hugging Face&nbsp&nbsp | &nbsp&nbsp🤖 ModelScope&nbsp&nbsp | &nbsp&nbsp 📑 Technical Report &nbsp&nbsp | &nbsp&nbsp 📑 Blog &nbsp&nbsp | &nbsp&nbsp💬 WeChat Group&nbsp&nbsp |...

♥0
18.6k
Aug 7, 2025