Compare commits

...
Author SHA1 Message Date
c33020a3d4 chore: bump activation-offload memory warn threshold to 90% (#2861)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
The CPU RAM usage warning in the activation offloader fired at 60%
virtual memory used, which is noisy on healthy runs. Bump the threshold
to 90% so it only warns when memory is genuinely close to exhaustion.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 18:10:19 -07:00
+1 -1
View File
@@ -72,7 +72,7 @@ class OffloadActivations(saved_tensors_hooks):
# managing cpu memory
self.use_pin_memory: bool = use_pin_memory
self.virtual_memory_safe_pct = 60 # we should not exceed this percentage of memory
self.virtual_memory_safe_pct = 90 # we should not exceed this percentage of memory
# comp stream
if torch.accelerator.is_available():
self.s0 = torch.accelerator.current_stream()