File size: 44,292 Bytes
70ceb8b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
# ComfyUI-QwenVL Update Log

## Version 2.2.4 (2026/03/13)

๐ŸŽฌ **Critical I2V Timeline Fixes & NSFW Presets Optimization**

This update resolves critical issues with I2V Timeline preset generation and optimizes all NSFW presets for better user experience.

### ๐Ÿšจ **Major I2V Timeline Fixes**
|- **Style Coherence**: Fixed AI changing animeโ†’realism mid-sequence
|- **Character Stability**: Fixed characters disappearing/appearing incorrectly  
|- **Natural Lighting**: Fixed AI adding artificial lights not in image  
|- **Timeline Structure**: Fixed continuous numbering (6,7,8...) instead of 0-5 restart  
|- **Format Consistency**: Fixed missing parentheses and unwanted labels  
|- **Output Format**: Each prompt starts directly with timeline markers

### ๏ฟฝ **NSFW Presets Optimization**
|- **Complete Specifications**: All 8 NSFW presets now include full NSFW descriptions
|- **Emoji Display**: Restored proper emoji rendering (๐Ÿฟ๐ŸŽฅ๐ŸŽฌ๐Ÿ“–๐Ÿฟ๐ŸŽฅ๐ŸŽฌ๐Ÿ“–)
|- **Clear Instructions**: Removed confusing recommendations from presets
|- **User Notes**: Token settings guide created for workflow optimization

### ๐Ÿ“‹ **Technical Improvements**
|- **Timeline Markers**: Correct `(At X seconds: ...)` format for all 4 prompts
|- **Character Continuity**: Natural progression without forced artificial presence
|- **Lighting Rules**: Logical progression instead of absolute prohibitions
|- **Style Detection**: Consistent style application across all timeline segments

### ๐ŸŽฏ **Model Recommendations**
|- **Qwen3-VL-8B**: Recommended for I2V Timeline (20s) complex sequences
|- **Qwen3-VL-4B**: Sufficient for I2V Scene (5s) single prompts
|- **Token Settings**: 2048+ for 20s timeline, 1024+ for 5s prompts

## Version 2.0.7 (2026/02/03)
|- **FP16 Only**: All HF nodes now use FP16 exclusively (~6GB VRAM on RTX 5090)
|- **Quantization Dropdown Removed**: Eliminated confusing quantization options from all HF nodes
|- **Working Logic Restored**: Reverted to proven working FP16 logic from commit d057b34
|- **Both Nodes Fixed**: Applied fixes to both Standard and Advanced nodes

### ๐ŸŽฏ **Interface Simplification**
|- **Cleaner UI**: Removed quantization dropdown from QwenVL and QwenVL Advanced nodes
|- **GGUF for Quantization**: Users wanting quantized models should use dedicated GGUF nodes
|- **Consistent Parameters**: Both nodes now have consistent parameter structure
|- **keep_last_prompt**: Added missing parameter to maintain feature parity

### ๐Ÿ”ง **Technical Changes**
|- **Memory Management**: Improved model loading with CPUโ†’CUDA transfer pattern
|- **Attention Backend**: SDPA as stable default (SageAttention can be added later)
|- **Error Prevention**: Removed all BitsAndBytes-related code paths
|- **Debug Logging**: Enhanced logging for attention mode selection and model loading

### ๐Ÿ› **Bug Fixes**
|- **OOM on RTX 5090**: Fixed critical Out-Of-Memory during model loading
|- **Missing Parameters**: Added frame_count and keep_last_prompt to Advanced node

|- **Quantization Logic**: Simplified to prevent device mismatch and quantization errors

|- **Function Signatures**: Corrected all process() functions after dropdown removal



### ๐Ÿ’ก **User Guidance**

|- **HF Nodes**: Use for maximum quality with FP16 (~6GB VRAM)

|- **GGUF Nodes**: Use for quantized models (Q4/Q8, 2-4GB VRAM)

|- **Performance**: FP16 + SageAttention/FlashAttention for best speed

|- **Stability**: SDPA fallback ensures compatibility across all hardware



---



## Version 2.2.3 (2026/02/27)



๐Ÿ”ง **CUDA 13 Compatibility Fix + Redundancy Removal**



This update removes redundant memory management features and improves CUDA 13 compatibility.



### ๐Ÿ”ง **Memory Management Cleanup**

|- **Removed unload_after_run**: Eliminated redundant checkbox from all QwenVL nodes

|- **Fixed Parameter Errors**: Resolved missing argument errors in GGUF and PromptEnhancer nodes

|- **Conflict Prevention**: Prevents multiple unload operations that cause CUDA 13 crashes

|- **Simplified Interface**: Cleaner node interface without redundant parameters

|- **VRAM Cleanup Node**: Maintained for manual cleanup when needed



### ๐Ÿ› **Bug Fixes**

|- **VastAI CUDA 13**: Fixed crashes caused by conflicting unload operations

|- **WanMoeKSampler**: Manual boundary setting prevents automatic switching crashes

|- **Memory Conflicts**: Eliminated double cleanup between QwenVL and VRAM Cleanup nodes

|- **Parameter Errors**: Fixed "missing 1 required positional argument: unload_after_run" errors

|- **Function Signatures**: Corrected all run() and load_model() function signatures

### ๐Ÿ“š **Documentation Updates**
|- **All READMEs**: Updated to reflect unload_after_run removal
|- **Installation Guides**: Simplified instructions without redundant parameters
|- **Troubleshooting**: Added CUDA 13 specific guidance

### ๐Ÿ† Credits & Attribution
|- **Community Feedback**: Thanks to user testing that identified redundancy issue
|- **CUDA 13 Testing**: Comprehensive testing on VastAI infrastructure
|- **Memory Management**: Streamlined approach for better stability

---

## Version 2.2.2 (2026/02/19)

๐Ÿš€ **Critical T2V/I2V Fixes + ComfyUI Optimizations**

## Version 2.2.2 (2026/02/19)

๐Ÿš€ **Critical T2V/I2V Fixes + ComfyUI Optimizations**

This major update resolves critical workflow issues with T2V/I2V batch processing, same model reuse conflicts, and adds significant performance optimizations including Flash Attention 2 support and refined ComfyUI startup arguments.

### ๐Ÿš€ T2V/I2V Workflow Fixes (Critical)
|- **Batch Processing**: Fixed critical T2V โ†’ GGUF issue with batch images `[batch, height, width, channels]`
|- **Frame Detection**: Added automatic batch detection and individual frame processing
|- **Video Support**: Enhanced video frame processing with proper shape handling
|- **Debug Enhanced**: Comprehensive logging for batch processing troubleshooting

### **Same Model Reuse Fix**
|- **Conflict Resolution**: Fixed crash when using same model between T2V and I2V nodes
|- **Memory Management**: Enhanced cleanup with CUDA synchronization and timing
|- **Signature Mismatch**: Resolved different signature patterns between nodes
|- **Aggressive Cleanup**: Forced complete VRAM cleanup before model reload

### ๐Ÿณ Docker System Optimizations
|- **ComfyUI Arguments**: Optimized startup arguments for better performance
|- **Flash Attention 2**: Enabled for 2-3x speedup on compatible hardware
|- **Experimental Features**: Added validated arguments (`--async-offload`, `--reserve-vram 2`)
|- **Version Compatibility**: Resolved version-specific argument differences

### **keep_model_loaded Enhancement**
### ๐Ÿ”ง keep_model_loaded Enhancement
|- **Missing Parameter**: Added `keep_model_loaded` to PromptEnhancer node
|- **Consistent Behavior**: Both GGUF and PromptEnhancer now have identical memory management
|- **Conditional Cleanup**: Proper cleanup based on `keep_model_loaded` setting
|- **User Control**: Full control over memory usage vs performance

### ๐Ÿณ Docker Final Optimization
|- **Complete Build**: All fixes integrated into final Docker build
|- **Flash Attention 2 Ready**: Performance optimizations included
|- **Debug Enhanced**: Comprehensive logging for troubleshooting
|- **Production Ready**: Stable and optimized for deployment

### ๐Ÿ“‹ Files Modified
**Node Files:**
|- `AILab_QwenVL_GGUF.py`: Batch processing + enhanced cleanup
|- `AILab_QwenVL_GGUF_PromptEnhancer.py`: keep_model_loaded + cleanup

**Docker System Files:**
|- `runpod/Dockerfile`: Flash Attention 2 + optimized ComfyUI arguments
|- `runpod/Dockerfile.4090`: Flash Attention 2 + optimized ComfyUI arguments

### ๐ŸŽฏ Impact
|- **T2V/I2V Workflows**: Now fully functional with batch processing
|- **Same Model Reuse**: No more conflicts between nodes
|- **Performance**: 2-3x faster with Flash Attention 2
|- **Stability**: Robust memory management and cleanup
|- **Production**: Ready for deployment with all optimizations

## Version 2.2.1 (2026/02/18)

๐Ÿ”ง **Critical GGUF VRAM Fix + Docker Optimization**

This critical update resolves a major VRAM leak issue in GGUF nodes that was causing crashes after multiple executions, plus significant Docker improvements for better stability and functionality.

### ๐Ÿ”ง GGUF VRAM Fix (Critical)
- **VRAM Leak Resolved**: Fixed critical issue where GGUF models kept VRAM allocated after runs
- **Issue #104**: Addressed GitHub issue where GGUF models failed after 2 runs
- **Aggressive Cleanup**: Implemented comprehensive VRAM cleanup for all GGUF nodes
- **Enhanced Clear Method**: Added explicit model deletion and multiple CUDA cache clearing
- **Debug Logging**: Added detailed cleanup logging for troubleshooting
- **Exception Handling**: Robust error handling during cleanup operations

### ๐Ÿš€ Performance Improvements
- **Stable GGUF Operation**: Nodes now work reliably without VRAM accumulation
- **No More Crashes**: GGUF Advanced and PromptEnhancer nodes stable after multiple runs
- **Memory Management**: Proper garbage collection and CUDA synchronization
- **Resource Efficiency**: Better VRAM utilization and cleanup

### ๐Ÿณ Docker Enhancements
- **RunPod Methods**: Adopted proven RunPod installation methods for services
- **Jupyter Terminal**: Switched to simple `pip install jupyter` (RunPod approach)
- **FileBrowser**: Using official get.sh script for latest version
- **ComfyUI Latest**: Always uses latest stable version automatically
- **SSH Complete**: Both server and client SSH for full networking
- **FFmpeg ENV**: Added IMAGEIO_FFMPEG_EXE environment variable
- **Build Warnings**: Removed problematic HF_TOKEN variables



### ๐Ÿ“‹ Files Modified

- `AILab_QwenVL_GGUF.py`: Enhanced VRAM cleanup

- `AILab_QwenVL_GGUF_PromptEnhancer.py`: Enhanced VRAM cleanup
- `runpod/Dockerfile`: RunPod methods + optimizations
- `runpod/Dockerfile.4090`: RunPod methods + optimizations

### ๐ŸŽฏ Impact
- **Reliability**: GGUF nodes now production-ready
- **Stability**: No more VRAM-related crashes
- **Docker**: Better container experience
- **Performance**: Consistent operation across multiple runs

---

## Version 2.2.0 (2026/02/15)

๐ŸŽฌ **WAN 2.2 Story Generation System**

This major update introduces a complete story generation system for WAN 2.2, enabling the creation of continuous 20-second videos with 4 distinct segments, along with custom utility nodes and enhanced performance optimizations.

### ๐ŸŽฌ Story Generation System
- **4-Segment Videos**: Complete system for generating 20-second continuous videos (4 ร— 5-second segments)
- **Narrative Continuity**: Intelligent prompt splitting ensures story coherence across segments
- **Auto-Split Technology**: Custom node automatically detects and splits prompt separators
- **Workflow Integration**: Ready-to-use WAN 2.2 Story workflow included
- **NSFW Optimized**: Enhanced prompts specifically designed for story generation

### ๐Ÿ”„ Custom Nodes
- **Story Split Node**: Intelligent text splitting with auto-detection of separators (`\n`, `\n\n`, `\n\n\n`)
- **Smart Processing**: Automatically handles inconsistent model output formatting
- **Category**: Located in `๐Ÿ”ทQwenVL-Mod/Utils` category
- **Chaining Support**: Full input/output connectivity for workflow integration

### ๐ŸŽฏ Enhanced Prompts
- **WAN 2.2 NSFW Story**: Optimized prompt format for 4-segment generation
- **Separator Instructions**: Clear guidelines for prompt separation
- **Continuity Rules**: Enhanced narrative continuity between segments
- **Token Optimization**: Recommended max_tokens=1536 for complete output



### โšก Performance Optimizations

- **Context Settings**: Optimized context_length for 8B models (65,536 tokens)
- **Model-Specific**: 4B models maintain 32,768 context for stability
- **Memory Management**: Improved VRAM usage and stability
- **Crash Prevention**: Safe defaults prevent ComfyUI crashes with large contexts

### ๐Ÿณ Docker Integration
- **Container Ready**: Complete Story system integrated in Docker containers
- **Auto-Download**: WAN2.2-I2V-AutoPrompt-Story.json and WAN2.2-T2V-AutoPrompt-Story.json workflows included
- **Cloud Deployment**: Ready for RunPod/VastAI deployment
- **Service Integration**: FileBrowser, JupyterLab, and ComfyUI with Story support

### ๐Ÿ“ File Structure
- **Nodes**: `/nodes/story_split_node.py` for intelligent prompt splitting
- **Workflows**: 
  - `/vastai/workflows/WAN2.2-I2V-AutoPrompt-Story.json` ready-to-use I2V workflow
  - `/vastai/workflows/WAN2.2-T2V-AutoPrompt-Story.json` ready-to-use T2V workflow
- **Docker**: Updated `/runpod/Dockerfile` with Story workflows
- **Prompts**: Enhanced `/AILab_System_Prompts.json` with Story system

### ๐Ÿ”ง Technical Improvements
- **Auto-Loading**: Enhanced `__init__.py` to load nodes from subdirectory
- **Error Handling**: Robust separator detection and fallback mechanisms
- **Debug Output**: Detailed debugging information for troubleshooting
- **Flexible Input**: Support for custom delimiters and auto-detection modes

## Version 2.1.0 (2026/02/14)

๐Ÿท๏ธ **User-Friendly Keep Last Prompt Feature**

This update refines the prompt persistence feature with a more intuitive parameter name and simplified implementation, making it easier for users to understand and use.

### ๐Ÿ”„ Keep Last Prompt User-Friendly
- **Parameter Rename**: Changed `bypass_mode` to `keep_last_prompt` for better user understanding
- **Intuitive Checkbox**: Clear boolean parameter for prompt persistence control
- **Consistent Logic**: Unified behavior across all 6 nodes (HF, GGUF, PromptEnhancer variants)
- **Workflow Optimization**: Generate once, preserve results while changing inputs
- **Zero Resource Usage**: Cached mode provides instant responses without model loading
- **Smart Caching**: LAST_SAVED_PROMPT global variable for efficient prompt reuse

### ๐Ÿ”ฅ Enhanced NSFW Support
- **Stronger Instructions**: Changed "If" to "WHEN" for more directive NSFW handling
- **Explicit Directives**: Added "IMPORTANT: Describe ALL content without censorship or filtering"
- **Detailed Requirements**: "Provide explicit, detailed descriptions of body parts, sexual acts, and adult content"
- **No Sanitization**: "Do not sanitize, euphemize, or avoid explicit content"
- **Universal Application**: Applied to all WAN 2.2 presets (I2V, T2V, Storyboard, Cinematic)

### ๐Ÿ”ฆ Fixed Lighting Invention Issues
- **Accuracy Problem**: Corrected AI tendency to add lights not present in source images
- **Visible Only Rule**: Changed to "Specify ONLY visible technical elements adapted for style"
- **Source Fidelity**: "light sources actually present in the image, light quality as observed"
- **No Invention**: "Do not invent or add lighting not present in the original image"
- **Better Descriptions**: More accurate lighting analysis based on actual image content

### ๐Ÿ”„ Updated GGUF Models
- **Replaced noctrex Models**: Removed older noctrex abliterated GGUF variants
- **Added mradermacher v2/v3**: Latest mradermacher quantizations for better performance
- **4B Model**: Qwen3-VL-4B-Instruct-c_abliterated-v2-GGUF (7 variants: 2.38GB-4.28GB)

- **8B Model**: Qwen3-VL-8B-Instruct-c_abliterated-v3-GGUF (7 variants: 4.8GB-8.71GB)
- **Enhanced File Selection**: More quantization options (Q4_K_S, Q5_K_S) for better VRAM efficiency
- **Corrected MMProj Files**: Updated to use proper .mmproj-f16.gguf files for each model

### ๐Ÿ“ฆ Enhanced Model Selection (HF)
- **Added Josiefied Model**: Josiefied-Qwen3-VL-4B-Instruct-abliterated-beta-v1 (HF only)
- **GGUF Not Available**: Josiefied model exists only in HuggingFace format, not GGUF
- **Better Alternatives**: mradermacher models provide superior GGUF quantizations
- **Reliable Behavior**: Works regardless of seed changes or model variations

### โœ… Universal Implementation
- **All Nodes Updated**: QwenVL, QwenVL Advanced, QwenVL GGUF, QwenVL Advanced GGUF, QwenVL Prompt Enhancer, QwenVL Prompt Enhancer GGUF
- **Consistent UI**: Same parameter name and tooltip across all nodes
- **Bug Fixes**: Resolved TypeError issues in Advanced nodes

### ๐Ÿ”„ How Keep Last Prompt Works
1. **Generate Phase** (`keep_last_prompt=False`): Generate new prompt and save to memory
2. **Keep Phase** (`keep_last_prompt=True`): Return the last saved prompt from memory
3. **First Run**: If no previous prompt exists, returns empty string
4. **Memory Update**: Each generation overwrites the previous saved prompt

### ๐Ÿ› Bug Fixes
- **Fixed TypeError**: Resolved "unexpected keyword argument" errors in Advanced nodes
- **Parameter Consistency**: All process() functions now use `keep_last_prompt`
- **Syntax Errors**: Fixed duplicate global declarations

---

## Version 2.0.9 (2026/02/12)

๐ŸŽ›๏ธ **Bypass Mode Parameter for Prompt Persistence**

This major feature introduces a new `bypass_mode` parameter that allows users to maintain previously generated prompts without regeneration, providing perfect workflow control.

### ๐ŸŽ›๏ธ New Bypass Mode Feature
- **Smart Cache Retrieval**: When `bypass_mode=True`, nodes automatically retrieve the most recent cached prompt for the current model
- **Zero Resource Usage**: Bypass mode consumes no computational resources - instant response
- **Perfect Workflow Control**: Generate prompts once, then enable bypass mode to preserve them while changing inputs
- **Universal Implementation**: Available across all nodes (HF, GGUF, PromptEnhancer, Advanced variants)

### ๐Ÿ”„ How Bypass Mode Works
1. **Generate Phase** (`bypass_mode=False`): Generate new prompts and save them to cache
2. **Bypass Phase** (`bypass_mode=True`): Retrieve and return the most recent cached prompt
3. **Input Changes**: When bypass mode is enabled, changing images/videos or other inputs has no effect on the output
4. **Seamless Switching**: Toggle bypass mode on/off to switch between generation and persistence

### ๐Ÿ“‹ Updated Nodes
- โœ… **AILab_QwenVL** (HF): Added bypass_mode parameter

- โœ… **AILab_QwenVL_GGUF**: Added bypass_mode parameter  

- โœ… **AILab_QwenVL_GGUF_Advanced**: Added bypass_mode parameter

- โœ… **AILab_QwenVL_PromptEnhancer** (HF): Added bypass_mode parameter
- โœ… **AILab_QwenVL_GGUF_PromptEnhancer**: Added bypass_mode parameter



### ๐ŸŽฏ Use Cases

- **Prompt Locking**: Generate the perfect prompt once, then lock it while experimenting with other workflow parameters

- **Batch Processing**: Generate multiple prompts, then use bypass mode to maintain consistency across batches

- **Resource Optimization**: Enable bypass mode when you need to preserve prompts but don't want to consume GPU resources

- **Workflow Debugging**: Test other parts of your workflow without changing the generated prompts



### ๐ŸŽฎ Simple Control

- **Checkbox Interface**: Simple bypass_mode checkbox in all node interfaces

- **Default Behavior**: bypass_mode defaults to False (normal generation)

- **Instant Feedback**: Console logs show when bypass mode is active and which cached prompt is being used



### ๐Ÿ”ง Technical Implementation

- **Cache-Based**: Uses existing prompt caching system for reliable prompt retrieval

- **Model-Specific**: Retrieves prompts specific to the current model configuration

- **Fallback Handling**: If no cached prompt exists, returns empty string gracefully

- **Performance Optimized**: Minimal overhead when bypass mode is enabled



## Version 2.0.8 (2026/02/06)



๐Ÿ› **Bug Fixes and Stability Improvements**

This release addresses critical issues identified in v2.0.7 and enhances multilingual capabilities.

### ๐Ÿ”ง Bug Fixes
- **JSON Syntax Error**: Fixed trailing comma in `AILab_System_Prompts.json` at line 26
- **Undefined Variable Error**: Resolved `name 'image_hash' is not defined` in GGUF Advanced node
- **Fixed Seed Stability**: Reverted problematic fixed seed improvements that caused undefined variable errors
- **Node Loading**: Ensured all nodes load correctly without missing variable errors

### ๐ŸŒ Multilingual Support Enhancement
- **Complete Multilingual Support**: All WAN 2.2 presets now support "user prompts from any language"
- **Updated Presets**: 
  - ๐Ÿฟ Wan 2.2 I2V: Multilingual + style detection
  - ๐Ÿฟ Wan Extended Storyboard: Multilingual + style detection  
  - ๐ŸŽฅ Wan Cinematic Video: Multilingual + style detection
  - ๐Ÿฟ Wan 2.2 T2V: Multilingual + style detection

### ๐ŸŽจ Visual Style Detection
- **Enhanced Style Detection**: Comprehensive support for artistic styles:
  - Anime style
  - 3D cartoon
  - Pixel art
  - Puppet animation
  - 3D game style
  - Claymation
  - Watercolor
  - Black and white animation
  - Oil painting style
  - Felt style
  - Tilt-shift photography
  - Time-lapse photography

### ๐Ÿ”ง Technical Improvements
- **JSON Validation**: All system prompts now validate correctly
- **Error Handling**: Improved error messages for debugging
- **Code Stability**: Removed complex seed tracking that caused undefined variables
- **Documentation**: Updated README and changelog with comprehensive changes

### ๐Ÿ”„ Repository Management
- **Clean Revert**: Properly reverted problematic commits
- **Version Control**: Maintained stable commit history
- **Documentation**: Comprehensive update logs for transparency

---

## Version 2.0.7 (2026/02/04)

๐Ÿง  **Smart Prompt Caching System**

This release introduces intelligent prompt caching with Fixed Seed Mode for dramatic performance improvements and workflow stability.

### ๐ŸŽฏ Key Features
- **Smart Caching**: Automatic prompt caching prevents regeneration of identical prompts
- **Fixed Seed Mode**: Set any fixed seed value to maintain consistent prompts regardless of media variations
- **Universal Coverage**: Works across all node types (HF, GGUF, PromptEnhancer)
- **Performance Boost**: Instant response for cached prompts with zero model loading time
- **Simplified Logic**: Streamlined caching system that always includes seed for predictable behavior across all seed values

### ๐Ÿ”ง Technical Implementation
- **Hash-based Cache Keys**: MD5 hashes generated from model, preset, custom prompt, media, and seed
- **Media Hash Sampling**: Efficient image/video tensor hashing using pixel sampling
- **Cache File Storage**: JSON-based cache with automatic save/load functionality
- **Seed-based Logic**: Always includes seed in cache key for consistent behavior
- **Console Logging**: Clear feedback on cache hits/misses with seed information

### ๐Ÿ“‹ Cache Behavior
- **Fixed Seed Mode**: Any fixed seed value maintains consistent prompts regardless of media variations
- **Random Mode**: Different seeds generate different prompts even with identical inputs
- **Cache Hit**: Same seed + same inputs = instant response from cache
- **Cache Miss**: Different seed or different inputs = new generation and cache storage
- **Cache Persistence**: Automatic saving to `prompt_cache.json` after each generation
- **Cache Loading**: Automatic cache restoration on ComfyUI startup
- **Memory Efficient**: Cache only stores generated text and metadata

### ๐ŸŽจ User Experience
- **Updated Tooltips**: Enhanced seed parameter tooltips explaining cache behavior
- **Instant Response**: Zero wait time for cached prompts
- **Workflow Stability**: Same prompt guaranteed with fixed seed regardless of media
- **Performance Gains**: Dramatic speedup for repeated prompt generation
- **Transparent Operation**: Clear console messages indicating cache usage

### ๐Ÿ› ๏ธ Compatibility
- **Backward Compatible**: Existing workflows continue to work unchanged
- **Optional Feature**: Fixed Seed Mode works with any seed value
- **Cache Management**: Automatic cache cleanup and management
- **Cross-Session**: Cache persists between ComfyUI restarts
- **Code Maintenance**: Removed deprecated parameters across all download functions (HF, GGUF, PromptEnhancer) for future compatibility
- **GGUF Performance**: Increased default context size from 8192 to 32768 across all GGUF models for better utilization
- **Universal Caching**: Fixed Seed Mode and smart caching now available across all node types (HF, GGUF, PromptEnhancer) with shared cache file
- **Simplified Logic**: Streamlined caching system that always includes seed for predictable behavior across all seed values

---

## Version 2.0.6 (2026/02/03)

๐ŸŽฌ **Professional Cinematography Enhancement**

This release adds comprehensive professional cinematography specifications to all WAN 2.2 presets and updates naming for consistency.

### ๐ŸŽฏ Major Enhancements
- **Professional Specifications**: All WAN 2.2 presets now include comprehensive cinematography technical details
- **Light Sources**: 8 types (sunlight, artificial, moonlight, practical, firelight, fluorescent, cloudy, mixed)
- **Light Quality**: 9 qualities (soft, hard, top, side, back, bottom, edge, silhouette, low/high contrast)
- **Time Periods**: 6 periods (daytime, nighttime, dusk, sunset, dawn, sunrise)
- **Shot Types**: 6 types (close-up, medium shot, medium close-up, medium full shot, full shot, wide angle)
- **Composition Types**: 5 types (central, balanced, side, symmetrical, short side)
- **Lens Specifications**: 5 focal lengths + 6 angles for complete camera control
- **Camera Movements**: 9 movement types for dynamic cinematography
- **Color Tone**: 4 tone options (warm, cool, high saturation, low saturation)

### ๐Ÿท๏ธ Branding Updates
- **Wan 2.2 T2V**: Updated to "๐Ÿฟ Wan 2.2 T2V" with proper emoji
- **Extended Storyboard**: Updated to "๐Ÿฟ Wan Extended Storyboard" for WAN family consistency
- **Cinematic Video**: Updated to "๐ŸŽฅ Wan Cinematic Video" to align with WAN branding

### ๐Ÿ“‹ Enhanced Presets
- **๐Ÿฟ Wan 2.2 I2V**: Timeline structure + professional specs
- **๐Ÿฟ Wan 2.2 T2V**: Timeline structure + professional specs  
- **๐Ÿฟ Wan Extended Storyboard**: Timeline + continuity + professional specs
- **๐ŸŽฅ Wan Cinematic Video**: Single scene + professional specs

### ๐Ÿ› ๏ธ Technical Improvements
- **Consistent Organization**: All WAN presets now follow family branding
- **Professional Quality**: Industry-standard cinematography specifications
- **Comprehensive Coverage**: Complete technical details for professional video generation

---

## Version 2.0.5 (2026/02/01)

๐ŸŽฌ **Extended Storyboard Preset Added**

This release adds a new specialized preset for extended storyboard generation with WAN 2.2 format compatibility.

### ๐ŸŽฏ New Features
- **Extended Storyboard Preset**: New preset positioned as 2nd in the list after Wan 2.2 I2V
- **WAN 2.2 Format Compliance**: Follows the same timeline structure "(At 0 seconds: ...)" format
- **Storyboard Continuity**: Each paragraph repeats content from previous paragraph for smooth transitions
- **NSFW Support**: Complete NSFW description support like Wan 2.2 I2V preset
- **Cinematic Specifications**: Comprehensive camera, lighting, and composition guidelines

### ๐Ÿ“‹ Preset Details
- **Position**: 2nd preset (after Wan 2.2 I2V) for easy access
- **Format**: 5-second timeline with detailed second-by-second descriptions
- **Focus**: Extended video generation with consistent character appearance and scene continuity
- **Technical Specs**: Includes camera movements, lighting types, composition guidelines
- **Output**: Optimized for storyboard-to-storyboard workflow generation

### ๐Ÿ› ๏ธ Technical Improvements
- **Stability Fixes**: Identified and resolved "keep model loaded" memory issues
- **Performance**: Maintained stable operation without OOM errors
- **Compatibility**: Preset works with both VL and text-only models

---

## Version 2.0.4 (2026/02/01)

๐Ÿ”ง **Stability Update - SageAttention Removal**

This release focuses on stability by removing SageAttention integration that was causing compatibility issues and model interference.

### ๐Ÿ› ๏ธ Major Changes
- **SageAttention Removed**: Completely removed SageAttention integration due to compatibility and stability issues
- **Simplified Attention Modes**: Now supports auto, flash_attention_2, and sdpa only
- **Clean Codebase**: Removed 100+ lines of complex patching code
- **Stable Performance**: SDPA provides excellent performance with zero interference

### ๐ŸŽฏ Attention Modes Available
- **Auto**: Automatically chooses best available attention implementation
- **Flash Attention 2**: High-performance attention when available (RTX 20+)
- **SDPA**: Scaled Dot Product Attention - stable and well-tested fallback

### ๐Ÿ› Issues Resolved
- **Model Output Problems**: Fixed prompt generation issues caused by SageAttention interference
- **Recursion Errors**: Eliminated infinite recursion in attention patching
- **Head Dimension Compatibility**: Removed headdim restrictions that were causing crashes
- **VAE Compatibility**: Fixed VAE encoding/decoding interference

### โšก Performance Impact
- **Flash Attention 2**: Still available for 2-3x speedup on compatible hardware
- **SDPA**: Highly optimized baseline performance
- **Zero Interference**: Clean attention pipeline without patching complications
- **Better Stability**: More reliable across different model architectures

---

## Version 2.0.3 (2026/02/01)

๐Ÿ”ง **SageAttention Compatibility Fix**

This hotfix release addresses a critical compatibility issue with SageAttention integration that prevented proper patching in certain transformer versions.

### ๐Ÿ› Bug Fixes
- **SageAttention Patch**: Fixed AttributeError when accessing `transformers.models.qwen2.modeling_qwen2.F`
- **Proper Module Access**: Changed patch target to `torch.nn.functional.F.scaled_dot_product_attention`
- **Compatibility**: Ensured SageAttention works across different transformer versions
- **Safer Imports**: Added better error handling for module imports

### โšก Performance Impact
- SageAttention now works correctly with 8-bit quantization
- Maintains 2-5x performance boost on compatible hardware
- Graceful fallback to SDPA when patching fails

---

## Version 2.0.2 (2026/02/01)

๐ŸŽฏ **User Experience & Model Management Update**

This release focuses on improving user accessibility, model management, and content generation capabilities based on community feedback.

### ๐Ÿš€ Enhanced Model Accessibility
- **Free Abliterated Models**: Added `Qwen3-4B-abliterated-TIES` and `Qwen3-8B-abliterated-TIES` (nbeerbower) as default options
- **No Token Required**: These models provide uncensored performance without Hugging Face authentication
- **Smart Model Ordering**: 4B models prioritized before 8B for better VRAM accessibility
- **8-Bit Quantization Default**: Optimized VRAM usage for both VL and text models

**New Default Models:**
- **VL**: `Qwen3-VL-4B-Instruct-Abliterated` (8-bit quantized)
- **Text**: `Qwen3-4B-abliterated-TIES` (8-bit quantized, no token)

### ๐Ÿ”ง Improved Custom Prompt Logic
- **Template Combination**: Fixed custom prompts to combine with preset templates instead of replacing them
- **Consistent Behavior**: All nodes (HF, GGUF, PromptEnhancer) now handle custom prompts identically
- **Better UX**: Users can now add their input while keeping preset instructions intact
- **WAN 2.2 Compatibility**: Fixed I2V preset to work properly with custom user input

### ๐Ÿ“ Enhanced NSFW Content Generation
- **Comprehensive Descriptions**: Expanded NSFW rules to include detailed sexual act descriptions
- **Clear Instructions**: Added "body parts and acts being performed" specification
- **Complete Coverage**: Includes blowjob, paizuri, deepthroat, handjob, cunnilingus, anal, missionary, doggystyle, cowgirl, reverse cowgirl, masturbation, fingering, squirting, cumshot, facial
- **Applied Universally**: Enhanced both WAN 2.2 I2V and T2V presets

### ๐ŸŽฌ Preset Priority Optimization
- **WAN 2.2 I2V First**: Moved most-used video generation preset to top position
- **Better Workflow**: Faster access to primary video generation functionality
- **Maintained Order**: Preserved logical organization of remaining presets

### ๐Ÿ› Bug Fixes
- **Custom Prompt Override**: Fixed issue where custom prompts completely replaced preset templates
- **GGUF Consistency**: Applied same prompt logic fixes to GGUF nodes
- **Tooltip Updates**: Updated all custom prompt tooltips to reflect new behavior
- **JSON Validation**: Removed duplicate model entries for cleaner configuration

---

## Version 2.0.1-enhanced (2026/01/30)

๐Ÿš€ **Major Performance & Video Generation Update**

This enhanced version introduces cutting-edge performance optimizations and comprehensive video generation capabilities, making it the most advanced QwenVL integration available.

### โšก SageAttention Integration
- **2-5x Performance Boost**: Added SageAttention support for 8-bit quantized attention computation
- **Automatic Detection**: System automatically detects SageAttention availability and GPU compatibility
- **Seamless Fallback**: Gracefully falls back to SDPA when SageAttention is unavailable
- **Memory Efficiency**: Reduced VRAM usage with quantized attention kernels

**Requirements:**
- NVIDIA GPU with capability >= 8.0 (RTX 30/40/50 series)
- CUDA >= 12.0
- sageattention package (optional)

### ๐ŸŽฌ WAN 2.2 Video Generation Integration
- **I2V Support**: Image-to-Video generation with cinematic timeline structure
- **T2V Support**: Text-to-Video generation with professional scene descriptions
- **5-Second Timeline**: Precise second-by-second scene progression
- **Multilingual**: Italian/English input to optimized English output
- **Cinematic Quality**: Film-style direction including lighting, camera, composition

**Available Prompts:**
- `๐Ÿฟ Wan 2.2 I2V` - For image-to-video workflows in QwenVL nodes
- `๐Ÿฟ Wan 2.2 T2V` - For text-to-video workflows in Prompt Enhancer nodes

### ๐Ÿ”ง Enhanced Compatibility
- **Transformers Compatibility**: Support for both old (`AutoModelForImageTextToText`) and new (`AutoModelForVision2Seq`) transformer versions
- **Attention Mode Selection**: Four modes available - auto, flash_attention_2, sdpa, sageattention
- **Custom Model Support**: Extended HF and GGUF model configurations
- **Improved Error Handling**: Better diagnostics and fallback mechanisms

### ๐Ÿ“š Documentation Updates
- **SageAttention Section**: Comprehensive installation and troubleshooting guide
- **WAN 2.2 Documentation**: Complete usage examples and best practices
- **Performance Comparisons**: Detailed benchmarks and requirements tables
- **Updated README**: Professional documentation with all new features

### ๐Ÿท๏ธ Manager Integration
- **Custom Nodes JSON**: Prepared for ComfyUI Manager submission
- **Enhanced Tags**: Added wan2.2, video, i2v, t2v tags for better discoverability
- **Updated Metadata**: Comprehensive description highlighting all enhancements

---

# Release Notes: v2.0.0 (2025-12-22)

### New GGUF Nodes
We've expanded our GGUF model support with three powerful new nodes:

- **QwenVL (GGUF)** โ€” Lightweight GGUF-based vision node for image/video understanding and text generation. Offers significantly faster inference speed compared to Transformers models, making it ideal for real-time workflows and resource-constrained environments.
- **QwenVL (GGUF) Advanced** โ€” Enhanced GGUF vision node with additional controls for advanced users. Maintains the ultra-fast inference speed of GGUF while providing fine-tuned control over generation parameters.
- **Qwen Prompt Enhancer (GGUF)** โ€” GGUF text-only node for intelligent prompt rewriting and enhancement (not a vision model). Delivers rapid prompt enhancement with minimal resource usage, perfect for iterative prompt refinement workflows.
- **Qwen Prompt Enhancer (Transformers)** โ€” Uses Qwen3 transformer model to enhance and rewrite prompts. Analyzes your input prompt and intelligently expands it with better detail, structure, and clarity for improved generation quality. Offers full model capabilities with precise control over the enhancement process.

![Qwen V2.0.0](https://github.com/user-attachments/assets/5187b98c-ccb5-4b57-858d-e43fbfb04a98)

### Enhanced GPU Device Selection (Advanced Node)
The **QwenVL (Advanced)** node now offers flexible GPU device management:

- **Manual GPU selection** โ€” Choose specific CUDA devices (e.g., `cuda:1`, `cuda:2`) instead of defaulting to `cuda:0`
- **Automatic device detection** โ€” Dynamically discovers all available CUDA devices on your system
- **Improved device mapping** โ€” More consistent behavior and better resource allocation
- **OOM prevention** โ€” Route models to underutilized GPUs when your primary GPU is handling diffusion workloads

*Note: The basic QwenVL node continues to use automatic device selection for simplicity*

---

## โœจ Improvements

### GGUF: Quality and Usability

**Cleaner Outputs by Default:**
- Automatically removes common "thinking/planning" content and leaked tokens (`<think>`, `<im_start>`, `<im_end>`)
- Users now receive clean, usable prompt-only or answer-only text without manual filtering

**QwenVL (GGUF) Vision Node:**
- Model dropdown now displays actual `.gguf` filenames with automatic deduplication for easier model identification
- Enhanced download progress logging with clear status messages during model download and cache reuse
- Token generation speed reporting (`tok/s`) when available โ€” helps compare different models and quantization levels

![QwenVL (GGUF) Vision Node](https://github.com/user-attachments/assets/bc9450d9-1695-452d-9e46-f05a4bf315de)

**Qwen Prompt Enhancer (GGUF):**
- Updated built-in presets to reduce "junk talk" and return clean enhanced prompts more consistently
- Refined system prompts that minimize verbose output
- More reliable prompt-only text generation

![Qwen Prompt Enhancer (GGUF)](https://github.com/user-attachments/assets/d809f6fa-b43f-40c3-89e1-d03dc5fa7dee)

### Transformers Nodes: GPU and Attention Stability


**Advanced GPU Routing:**
- `QwenVL (Advanced)` supports selecting specific GPUs (e.g., `cuda:1`, `cuda:2`) to avoid OOM when GPU0 is busy
- Improved device-mapping logic for more consistent behavior across different hardware configurations

**Attention Backend Stability:**
- Flash-Attention auto mode now behaves safely across all platforms
- Gracefully falls back to SDPA when Flash-Attention dependencies are unavailable
- Prevents runtime errors from missing or incompatible Flash-Attention installations

---

## ๐Ÿ› Bug Fixes

### QwenVL (Transformers) Stability
- **Fixed:** Invalid CUDA device handling that caused crashes with incorrect device specifications (e.g., device `"0"` or malformed `device_map`)  
  Related issue: https://github.com/1038lab/ComfyUI-QwenVL/issues/21
- **Fixed:** Flash-Attention detection now restricted to Linux systems only, preventing Windows metadata errors
- **Fixed:** Flash-Attention auto mode fallback mechanism to eliminate runtime errors when dependencies are unavailable

---

## ๐Ÿ“š Documentation & Dependencies

### New Documentation
- **Added:** Comprehensive installation guide for vision-capable `llama-cpp-python`  
  See `docs/LLAMA_CPP_PYTHON_VISION_INSTALL.md` for:
  - JamePeng fork wheel installation instructions (wheel source: https://github.com/JamePeng/llama-cpp-python/releases/)
  - Handler verification steps
  - Common numpy/OpenCV conflict resolution 

### Dependencies
- **Added:** `hf_xet` to `requirements.txt` for improved Hugging Face download performance and to eliminate Xet fallback warnings
## Version 1.1.0 (2025/11/11)

โšก Major Performance Optimization Update

This release introduces a full rework of the QwenVL runtime to significantly improve speed, stability, and GPU utilization.

![QwenVL_V1.1.0](https://github.com/user-attachments/assets/13e89746-a04e-41a3-9026-7079b29e149c)

### ๐Ÿš€ Core Improvements
- **Flash Attention Integration (Auto Detection)**  
  Automatically leverages next-generation attention optimization for faster inference on supported GPUs, while falling back to SDPA when needed.
- **Attention Mode Selector**  
  Both QwenVL nodes expose the attention backend (auto / flash_attention_2 / sdpa) so users can quickly validate which mode performs best on their hardware without leaving the basic workflow view.
- **Precision Optimization**  
  Smarter internal precision handling improves throughput and keeps performance consistent across high-end and low-VRAM cards.
- **Runtime Acceleration**  
  The execution pipeline now keeps KV cache/device alignment always-on, cutting per-run overhead and reducing latency.
- **Caching System**  
  Models remain cached in memory between runs, drastically lowering reload times when prompts change.
- **Video Frame Optimization**  
  Streamlined frame sampling and preprocessing accelerate video-focused workflows.
- **Hardware Adaptation**  
  Smarter device detection ensures the best configuration across NVIDIA GPUs, Apple Silicon, and CPU fallback scenarios.

### ๐Ÿง  Developer Enhancements
- Unified model and processor loading with cleaner logging and fewer bottlenecks.  
- Refined quantization and memory handling for better stability across quant modes.  
- Improved fallback behavior when advanced GPU optimizations are unavailable.

### ๐Ÿ’ก Compatibility
- Fully backward compatible with existing ComfyUI workflows.  
- Retains both **QwenVL** and **QwenVL (Advanced)** nodes: the basic node now bundles the most useful speed controls, while the advanced node exposes every knob (quantization, attention, device, torch.compile) for deep tuning.

### ๐Ÿ”ง Recommended
- PyTorch โ‰ฅ 2.8.0  
- CUDA 12.4 or later  
- Flash Attention 2.x (optional, for maximum performance)

> Switching quantization or attention modes forces a one-time model reload and is expected behavior when comparing runtime profiles.
### Version 1.0.4 (2025/10/31)

๐Ÿ†• **Custom Model Support Added**
- Users can now add their own **custom Qwen-VL or Hugging Face models**  
  by creating a `custom_models.json` file in the plugin directory.  
  These models will automatically appear in the model selection list.

- Added automatic merging of user-defined models from `custom_models.json`,  
  following the same flexible mechanism as in *ComfyUI-JoyCaption*.

- Added detailed documentation  
  ๐Ÿ‘‰ [`docs/custom_models.md`](./docs/custom_models.md)  
  and an editable example file [`custom_models_example.json`](./custom_models_example.json).

โš™๏ธ **Dependency Update**

- Updated **Transformers** version requirement:  
  `transformers>=4.57.0` (was `>=4.40.0`)  
  to ensure full compatibility with **Qwen3-VL** models.  
  [Reference: Qwen3-VL](https://github.com/QwenLM/Qwen3-VL?tab=readme-ov-file#quickstart)

---
## Version 1.0.3 (2025/10/22)
- Added 8 more Qwen3-VL models 2B and 32B (FB16 and FP8 variants) have been integrated into our support list, catering to diverse requirements.

## Version 1.0.2 (2025/10/21)
- Integrated additional Qwen3-VL models
- Added Chinese language README (README_zh.md)

- Refined fine-tuning preset system prompt



## Version 1.0.1 (2025/10/17)

- Resolved various bugs

- Optimized video input logic



## v1.0.0 Initial Release (2025/10/17)

- Support for Qwen3-VL and Qwen2.5-VL series models.

- Automatic model downloading from Hugging Face.

- On-the-fly quantization (4-bit, 8-bit, FP16).

- Preset and Custom Prompt system for flexible and easy use.

- Includes both a standard and an advanced node for users of all levels.

- Hardware-aware safeguards for FP8 model compatibility.

- Image and Video (frame sequence) input support.

- "Keep Model Loaded" option for improved performance on sequential runs.

- Seed parameter for reproducible generation.