mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-17 17:24:21 +00:00
fix: wait all block trasfer before siwtching offloader mode
This commit is contained in:
@@ -495,6 +495,7 @@ def sample_images(
|
||||
|
||||
with torch.no_grad(), accelerator.autocast():
|
||||
for prompt_dict in prompts:
|
||||
dit.prepare_block_swap_before_forward()
|
||||
_sample_image_inference(
|
||||
accelerator,
|
||||
args,
|
||||
|
||||
Reference in New Issue
Block a user