ComfyUI Node
Bernini-R Block Swap Args
Configure block-swap VRAM offloading. Connect to Bernini-R KSampler or Dual Expert Sampler.
Bernini-R Block Swap Args
- block_swap_args
◄block_to_swap0►
◄prefetchtrue►
◄prefetch_count1►
◄pin_memoryfalse►
◄loading_modeStreaming►
◄disk_workers4►
CategoryBernini-R/Config
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| block_to_swap | INT | 00–100 | Number of transformer blocks to keep in RAM. 0 = disable block swap. |
| prefetchopt | BOOLEAN | true | Use a CUDA stream to prefetch upcoming blocks during compute. |
| prefetch_countopt | INT | 11–20 | Number of blocks to prefetch ahead of the current window. |
| pin_memoryopt | BOOLEAN | false | Pin CPU copies for faster async transfer. Increases host RAM. |
| loading_modeopt | COMBO | Streaming | Streaming: load blocks on demand (low RAM). Full: load all at startup (no disk I/O). |
| disk_workersopt | INT | 41–16 | Disk prefetch threads (Streaming mode only). Higher = faster block reads on NVMe; 2 is safer on SATA. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| block_swap_args | BERNINI_BLOCKSWAP | — |