(self, block_idx: int)
| 275 | clean_memory_on_device(self.device) |
| 276 | |
| 277 | def wait_for_block(self, block_idx: int): |
| 278 | if self.blocks_to_swap is None or self.blocks_to_swap == 0: |
| 279 | return |
| 280 | if self.reentrant_activation_checkpointing and torch.is_grad_enabled(): |
| 281 | # Second forward pass, don't do block swapping |
| 282 | return |
| 283 | self._wait_blocks_move(block_idx) |
| 284 | |
| 285 | def submit_move_blocks_forward(self, block_idx: int): |
| 286 | # check if blocks_to_swap is enabled |
no test coverage detected