{"adoption": {"forks": 39, "observed_at": "2026-08-28T04:03:29.703185+00:00", "stars": 1077}, "canonical_url": "https://ross.abutalabs.com/products/pytorch_memlab", "card": {"archived": false, "artifact_type": "library", "description": "Profiling and inspecting memory in pytorch", "domain": ["machine-learning", "deep-learning", "developer-tools", "performance"], "enriched": true, "function": ["monitoring", "benchmarking", "developer-tools"], "health_score": 97, "homepage": null, "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["Stonesjtu/pytorch_memlab"], "name": "Stonesjtu/pytorch_memlab", "platform": ["python", "cross-platform"], "pushed_at": "2026-08-12T14:57:59+00:00", "repo": "Stonesjtu/pytorch_memlab", "stars": 1077, "tags": ["pytorch", "cuda", "memory-profiler", "profiling", "debugging", "oom", "jupyter", "ipython-magic", "gpu"], "topics": ["pytorch", "cuda-memory", "memory-profiler"], "urls": [], "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"], "what_it_is": "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.", "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"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/pytorch_memlab", "repo": "Stonesjtu/pytorch_memlab", "role": "main", "score": 94}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.703185+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T06:53:13.429644+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7547d2b9551ec39c53f526816de79985e51aed9e2fc01b30aa3872be077464a3", "fetched_at": "2026-08-28T04:03:29.703185+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Stonesjtu/pytorch_memlab"}, {"content_hash": "c7176e2b1a9b6675e491a9218c01d157c5523c2a2e51b0c2cfe0cc46e9b1437e", "fetched_at": "2026-08-29T12:54:40.732451+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytorch_memlab/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.703185+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T06:53:13.429644+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7547d2b9551ec39c53f526816de79985e51aed9e2fc01b30aa3872be077464a3", "fetched_at": "2026-08-28T04:03:29.703185+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Stonesjtu/pytorch_memlab"}, {"content_hash": "c7176e2b1a9b6675e491a9218c01d157c5523c2a2e51b0c2cfe0cc46e9b1437e", "fetched_at": "2026-08-29T12:54:40.732451+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytorch_memlab/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T06:53:13.429644+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7547d2b9551ec39c53f526816de79985e51aed9e2fc01b30aa3872be077464a3", "fetched_at": "2026-08-28T04:03:29.703185+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Stonesjtu/pytorch_memlab"}, {"content_hash": "c7176e2b1a9b6675e491a9218c01d157c5523c2a2e51b0c2cfe0cc46e9b1437e", "fetched_at": "2026-08-29T12:54:40.732451+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytorch_memlab/json"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.703185+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.703185+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.703185+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T06:53:13.429644+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7547d2b9551ec39c53f526816de79985e51aed9e2fc01b30aa3872be077464a3", "fetched_at": "2026-08-28T04:03:29.703185+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Stonesjtu/pytorch_memlab"}, {"content_hash": "c7176e2b1a9b6675e491a9218c01d157c5523c2a2e51b0c2cfe0cc46e9b1437e", "fetched_at": "2026-08-29T12:54:40.732451+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytorch_memlab/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.703185+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.703185+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T06:53:13.429644+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7547d2b9551ec39c53f526816de79985e51aed9e2fc01b30aa3872be077464a3", "fetched_at": "2026-08-28T04:03:29.703185+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Stonesjtu/pytorch_memlab"}, {"content_hash": "c7176e2b1a9b6675e491a9218c01d157c5523c2a2e51b0c2cfe0cc46e9b1437e", "fetched_at": "2026-08-29T12:54:40.732451+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytorch_memlab/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.703185+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.703185+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.703185+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T06:53:13.429644+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7547d2b9551ec39c53f526816de79985e51aed9e2fc01b30aa3872be077464a3", "fetched_at": "2026-08-28T04:03:29.703185+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Stonesjtu/pytorch_memlab"}, {"content_hash": "c7176e2b1a9b6675e491a9218c01d157c5523c2a2e51b0c2cfe0cc46e9b1437e", "fetched_at": "2026-08-29T12:54:40.732451+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytorch_memlab/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.703185+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:03:29.703185+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T06:53:13.429644+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7547d2b9551ec39c53f526816de79985e51aed9e2fc01b30aa3872be077464a3", "fetched_at": "2026-08-28T04:03:29.703185+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Stonesjtu/pytorch_memlab"}, {"content_hash": "c7176e2b1a9b6675e491a9218c01d157c5523c2a2e51b0c2cfe0cc46e9b1437e", "fetched_at": "2026-08-29T12:54:40.732451+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytorch_memlab/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T06:53:13.429644+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7547d2b9551ec39c53f526816de79985e51aed9e2fc01b30aa3872be077464a3", "fetched_at": "2026-08-28T04:03:29.703185+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Stonesjtu/pytorch_memlab"}, {"content_hash": "c7176e2b1a9b6675e491a9218c01d157c5523c2a2e51b0c2cfe0cc46e9b1437e", "fetched_at": "2026-08-29T12:54:40.732451+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytorch_memlab/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T06:53:13.429644+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7547d2b9551ec39c53f526816de79985e51aed9e2fc01b30aa3872be077464a3", "fetched_at": "2026-08-28T04:03:29.703185+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Stonesjtu/pytorch_memlab"}, {"content_hash": "c7176e2b1a9b6675e491a9218c01d157c5523c2a2e51b0c2cfe0cc46e9b1437e", "fetched_at": "2026-08-29T12:54:40.732451+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytorch_memlab/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T06:53:13.429644+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7547d2b9551ec39c53f526816de79985e51aed9e2fc01b30aa3872be077464a3", "fetched_at": "2026-08-28T04:03:29.703185+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Stonesjtu/pytorch_memlab"}, {"content_hash": "c7176e2b1a9b6675e491a9218c01d157c5523c2a2e51b0c2cfe0cc46e9b1437e", "fetched_at": "2026-08-29T12:54:40.732451+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pytorch_memlab/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 97, "longevity": 100, "rhythm": 87}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2658, "days_push": 21, "days_rel": 86, "gap_med": 0, "n_releases_24m": 2}, "score": 94, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}