Stonesjtu/pytorch_memlab
Profiling and inspecting memory in pytorch observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 97
- Release rhythm 87
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 2658
- days_rel: 86
- days_push: 21
- n_releases_24m: 2
Adoption not part of the score
1077 stars · 39 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Python library providing line-level CUDA memory profiling and tensor inspection tools for PyTorch. It helps debug out-of-memory errors by showing per-line memory usage and reporting which tensors occupy GPU memory.
Use cases
- profile cuda memory usage per line of pytorch code
- debug pytorch out-of-memory errors
- inspect which tensors are occupying gpu memory
- find memory leaks in pytorch training loop
- temporarily move cuda tensors to cpu to free gpu memory
- profile memory usage in jupyter notebook
When to choose
- debugging CUDA OOM errors in PyTorch models
- you need line-by-line GPU memory attribution like line_profiler
- working in Jupyter/IPython and want %mlrun magic profiling
When to avoid
- profiling CPU memory or non-PyTorch frameworks
- you need full GPU utilization or speed profiling rather than memory
- working with frameworks other than PyTorch such as TensorFlow or JAX
Facets
library · maturity active
monitoring benchmarking developer-tools machine-learning deep-learning developer-tools performance python cross-platform pytorch cuda memory-profiler profiling debugging oom jupyter ipython-magic gpu
2 sources
- readme: https://github.com/Stonesjtu/pytorch_memlab · fetched 2026-08-28 · 7547d2b9551e
- registry_pypi: https://pypi.org/pypi/pytorch_memlab/json · fetched 2026-08-29 · c7176e2b1a9b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Stonesjtu/pytorch_memlab | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="Stonesjtu/pytorch_memlab")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem