mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-30 19:21:39 +00:00
actually got gradient checkpointing working, again, again, maybe
This commit is contained in:
@@ -72,6 +72,7 @@ class SDTrainer(BaseSDTrainProcess):
|
||||
# 9.18 gb
|
||||
noise = noise.to(self.device_torch, dtype=dtype).detach()
|
||||
|
||||
|
||||
if self.sd.prediction_type == 'v_prediction':
|
||||
# v-parameterization training
|
||||
target = self.sd.noise_scheduler.get_velocity(noisy_latents, noise, timesteps)
|
||||
|
||||
Reference in New Issue
Block a user