Nodes/ComfyUI-MiniMaxH3/MiniMax H3 BlockSwap Args
ComfyUI Node

MiniMax H3 BlockSwap Args

A ComfyUI node in MiniMax-H3/sampling with 8 inputs and 1 output.

By xiaolibai-sys·Created 20 days ago·Updated 9 days ago· 7
MiniMax H3 BlockSwap Args
    • block_swap_args
    block_to_swap47
    hot_blocks0
    prefetchtrue
    prefetch_count2
    pin_memorytrue
    disk_workers2
    auto_vramtrue
    dtypebfloat16
    CategoryMiniMax-H3/sampling

    Inputs (8)

    NameTypeDefaultDescription
    block_to_swapINT470–50Number of DiT blocks to swap off GPU (50 total; resident blocks = 50 - block_to_swap). 0 keeps all blocks resident.
    hot_blocksINT00–50Leading DiT blocks kept permanently on GPU; these avoid H2D/D2H every pass. Effective value is capped at resident window - 1.
    prefetchBOOLEANtruePrefetch the next block window from disk into RAM in the background.
    prefetch_countINT21–8Number of home slots reserved for disk prefetch.
    pin_memoryBOOLEANtrueUse pinned memory for staging/prefetch transfers; the home pool stays pageable.
    disk_workersINT21–16Number of background disk read threads.
    auto_vramBOOLEANtrueAutomatically reserve estimated activation/ComfyUI VRAM and runtime LoRA before allocating the block pool. Disable to use the block_to_swap/hot_blocks/prefetch_count values exactly as configured.
    dtypeCOMBObfloat16DiT compute/storage dtype: bfloat16 recommended, float16 for older GPUs, float32 for debugging.

    Outputs (1)

    NameTypeDescription
    block_swap_argsMINIMAX_H3_SWAP