#236236th of 433 in ML frameworks and libraries
torchmetrics
PyTorch metrics library with automatic accumulation and multi-device sync
Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts torchmetrics on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.torchmetrics is on your watch list. Its new releases and problems show there.
- Stars
- 2.5k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Last release
- Mar 2026
- Language
- Python
2,420 on 27 Apr 20262,485 on 23 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Lightning AI is hiring: 49 open roles
Overview
TorchMetrics is a Python library of 100+ metric implementations for PyTorch, covering audio, classification, detection, retrieval, image, multimodal, nominal, regression, segmentation and text. Metrics are stateful modules that accumulate over batches and synchronize across devices in DDP, with functional versions as well. Custom metrics are written by subclassing Metric and implementing update and compute.
Who it is for: PyTorch and Lightning users evaluating models, including in distributed training
Strengths
- Module metrics accumulate over batches and sync across GPUs and nodes automatically
- Both stateful module and stateless functional APIs for most metrics
- Custom metrics need only add_state, update and compute on a Metric subclass
- Built-in .plot method for most module metrics; works with plain PyTorch or Lightning
Weaknesses
- PyTorch only; no support for other tensor frameworks
- Audio, image and text metrics need extra pip dependency groups
- Plotting requires a separate optional install (torchmetrics[visual])
- README notes the Lightning framework is Patent Pending, alongside Apache-2.0
What it needs
- GPU optional
- Needs PyTorch
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in ML frameworks and libraries
See all 433| Rank | Project | Score |
|---|---|---|
| #234 | thunderkittensHeader-only CUDA library of tile primitives for writing fast GPU kernels | 52 out of 100 |
| #235 | deepopenPython SDK for non-generative text classification, scoring and routing decisions | 52 out of 100 |
| #237 | mlj.jlJulia toolbox with a common interface for tuning and evaluating ML models | 52 out of 100 |
| #238 | minisomNumPy-based Python library for training Self Organizing Maps | 52 out of 100 |
| #239 | spacy-transformersspaCy components that run Hugging Face transformer models inside pipelines | 52 out of 100 |