6 Commits
Author SHA1 Message Date
Eric Rollei bf738dba3f Add bucket bypass + seqlen auto-bump for native-resolution image edits
HunyuanInstructImageEdit: monkey-patch ResolutionGroup.get_target_size and image_processor.build_gen_image_info to bypass trained-bucket snapping; snap to /16 to satisfy VAE divisibility assert. Auto-bump generation_config.max_length and config.max_position_embeddings based on per-image token count (RoPE extrapolates beyond trained range). Restore originals + invalidate cached_rope in finally. Add trace logging. Remove duplicate 'auto' entry from resolution dropdown. hunyuan_shared.py: meta-safe device patch + accelerate-hook strip helpers.
2026-04-30 00:05:46 -07:00
Eric Rollei ea06cf9157 v1.3.0: Fix INT8 Instruct, v2 models, latent control nodes, Unified V2
INT8 Instruct Fix (5 bugs):
- blocks_to_swap no longer forced to 0 for INT8 in generate()
- Added _load_int8_block_swap() method in loader with CB/SCB guard hooks
- Fixed INT8 model size from 40GB to 80GB in memory budget
- CB/SCB now fixed after .to(device) in _move_non_block_components_to_gpu()
- Quant-specific gb_per_block in _calculate_optimal_config()

VAE Decode Fix:
- Fixed super() crash from closure cell corruption in cache clearing
- Added isinstance(val, type) guard to prevent __class__ cell nuke
- Cleaned up instance-level forward attrs after hook removal (4 files)

New Features:
- Experimental latent control nodes (Empty Latent, Noise Shaping, Generate with Latent)
- Unified Generate V2 node (auto-detects NF4/INT8/BF16, block swap, memory mgmt)
- HuggingFace upload script for v2 models (quantization/upload_v2_to_hf.py)

README:
- Updated to v1.3.0 with v2 HuggingFace model links
- INT8 Instruct status changed to Working across all tables
- Added Latent Control Nodes documentation section
- Added v2 download links for base and Instruct models"
2026-02-21 11:43:36 -08:00
Eric Rollei c36f3e6d7c v1.1.0: Instruct models, block swap, flexible model paths, HighRes Efficient
New nodes:
- Hunyuan Instruct Loader/Generate/ImageEdit/MultiFusion/Unload
- Block Swap for GPU<->CPU transformer block swapping
- HighRes Efficient with loop-based MoE routing
- Unified V2 auto-detecting generate node
- VAE Simple, Memory Budget, Memory Manager, Cache V2

Changes:
- Centralized model path system via folder_paths (hunyuan + hunyuan_instruct)
- INT8 bitsandbytes fix for CB/SCB preservation during .to() calls
- All loaders migrated to resolve_hunyuan_model_path()
- Updated README with Instruct docs, HF links, hardware tables
- pyproject.toml bumped to v1.1.0, deps synced
- Moved dev docs to Docs/, cleaned .gitignore

Quantization:
- Added Instruct INT8/NF4 quantization scripts (distil + full)
- Added HF upload script for Instruct models
2026-02-10 00:01:29 -08:00
Eric Rollei f9d1e48476 Add Low VRAM generate node, fix loader defaults, document INT8 issues
- Added HunyuanImage3GenerateLowVRAM node for 24GB VRAM cards
- Fixed loader model selection defaults (NF4/INT8 prioritize correct model type)
- Added tooltips to Low VRAM node
- Documented INT8 loader as non-functional due to bitsandbytes validation
- Added TODO list to README
2025-11-24 14:15:08 -08:00
Eric Rollei 0cbcf828ac Fix resolution snapping, update menu sorting, and add NF4 download link 2025-11-24 02:09:00 -08:00
Eric Rollei 779e5c363b Initial release v1.0.0: HunyuanImage-3.0 ComfyUI Nodes
Features:
- Multiple loader nodes (BF16, NF4, Multi-GPU, optimized variants)
- Advanced generation with official HunyuanImage-3.0 prompt rewriting
- Supports any OpenAI-compatible LLM API (DeepSeek, OpenAI, Claude, local LLMs)
- Organized resolution controls with MP indicators
- Large image generation with CPU offload support
- Comprehensive VRAM management and error handling
- NF4 quantization tools included

License: CC BY-NC 4.0 (Non-Commercial) / Commercial License Available
Author: Eric Hiss (github.com/ericRollei)
Model: HunyuanImage-3.0 by Tencent (Apache 2.0)
2025-11-17 12:44:52 -08:00