Merge branch 'main' into feature/full-finetuning

This commit is contained in:
ArEnSc
2025-01-07 19:14:25 -05:00
committed by GitHub
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ def get_memory_statistics(precision: int = 3) -> Dict[str, Any]:
max_memory_allocated = torch.cuda.max_memory_allocated(device)
max_memory_reserved = torch.cuda.max_memory_reserved(device)
elif torch.mps.is_available():
elif torch.backends.mps.is_available():
memory_allocated = torch.mps.current_allocated_memory()
else: