Hugging Face: PyTorch GPU memory profiling with _record_memory_history and _dump_snapshot for training runs | SignalBreak | SignalBreak