We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a283ef3 commit 2207ffdCopy full SHA for 2207ffd
recipes/lora_finetune_single_device.py
@@ -481,7 +481,7 @@ def _setup_model(
481
482
log.info(f"Model is initialized with precision {self._dtype}.")
483
484
- if self._device.type != "cpu":
+ if self._device.type != "cpu" and self._log_peak_memory_stats:
485
memory_stats = training.get_memory_stats(device=self._device)
486
training.log_memory_stats(memory_stats)
487
return model
0 commit comments