This commit is contained in:
Botao Chen 2025-01-14 18:06:37 -08:00
parent a77b8126d0
commit db5492202f

View file

@ -587,9 +587,6 @@ class LoraFinetuningSingleDevice:
gc.collect()
torch.cuda.empty_cache()
print("Allocated:", torch.cuda.memory_allocated() / 1e6, "MB")
print("Reserved: ", torch.cuda.memory_reserved() / 1e6, "MB")
return (memory_stats, checkpoints)
async def validation(self) -> Tuple[float, float]: