Repository navigation
Commit fb30e52
committed
fix: keep MiniMax-H3 VAE weights resident across temporal chunks
Each temporal chunk of the MiniMax-H3 video VAE decode and encode went through VAE::decode/VAE::encode, whose trailing runner_end() evicts the ~5GB weights from the compute backend, so the next chunk re-staged them (under auto-fit even re-reading the safetensors from disk).
Keep the runner alive across the temporal chunk loop and end it once when the loop finishes. VAE::decode/VAE::encode gain a non-virtual overload with an auto_end flag; the virtual signatures are unchanged so existing overrides are unaffected.1 parent 3f8527a commit fb30e52
2 files changed
Lines changed: 35 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
636 | | - | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
637 | 639 | | |
| 640 | + | |
638 | 641 | | |
639 | 642 | | |
640 | 643 | | |
| |||
695 | 698 | | |
696 | 699 | | |
697 | 700 | | |
| 701 | + | |
| 702 | + | |
698 | 703 | | |
699 | 704 | | |
700 | 705 | | |
701 | 706 | | |
702 | 707 | | |
703 | 708 | | |
704 | | - | |
| 709 | + | |
| 710 | + | |
705 | 711 | | |
706 | 712 | | |
707 | 713 | | |
| |||
728 | 734 | | |
729 | 735 | | |
730 | 736 | | |
| 737 | + | |
731 | 738 | | |
732 | 739 | | |
733 | 740 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
244 | 253 | | |
245 | 254 | | |
246 | 255 | | |
| |||
280 | 289 | | |
281 | 290 | | |
282 | 291 | | |
283 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
284 | 295 | | |
285 | 296 | | |
286 | 297 | | |
| |||
298 | 309 | | |
299 | 310 | | |
300 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
301 | 323 | | |
302 | 324 | | |
303 | 325 | | |
| |||
338 | 360 | | |
339 | 361 | | |
340 | 362 | | |
341 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
342 | 366 | | |
343 | 367 | | |
344 | 368 | | |
| |||
0 commit comments