Ross ROSS = Recommend OSS · open-source software intelligence for agents

Stonesjtu/pytorch_memlab

Profiling and inspecting memory in pytorch observed · 2026-08-28

github.com/Stonesjtu/pytorch_memlab · Python · MIT (permissive) 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

Full methodology

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

Member repositories

RepositoryRoleHealth v2
Stonesjtu/pytorch_memlabmain94

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