← all repositories

Oldpan/Pytorch-Memory-Utils

PyTorch utility for tracking GPU memory usage of models and training operations.

1k stars Python ML Frameworks
Pytorch-Memory-Utils
Velocity · 7d
+0.3
★ / day
Trend
steady
star history

This repository provides Python scripts to monitor and calculate GPU memory consumption during PyTorch model training. It can estimate the memory footprint of individual model layers including parameters and intermediate variables for both forward and backward passes. The tool prints detailed memory breakdowns by tensor size, dtype, and class type, helping developers optimize memory usage when training deep learning models.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.