We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0e2b2b commit 9d9cdcfCopy full SHA for 9d9cdcf
1 file changed
train_network.py
@@ -1120,6 +1120,8 @@ def train(self, args):
1120
network = network.to("cpu")
1121
logger.info("Applying RamTorch to network/lora.")
1122
network = apply_ramtorch_to_module(network, "network/lora", accelerator.device)
1123
+ # Make sure the rest of the network is moved to the accelerator.device
1124
+ network = network.to(accelerator.device)
1125
1126
if args.gradient_checkpointing:
1127
if args.cpu_offload_checkpointing:
0 commit comments