Skip to content
Agents tracked: 442 Downloads (7d): 202M down 19.3% GitHub stars: 10.4M Releases (7d): 693 Agent status: 1 with issuesSince last limit reset: Claude 28d · Codex 1d Updated Oct 21, 2026

TorchMetrics

Metrics for PyTorch models, from Lightning AI.

ML and data science PyPI Apache-2.0

Used in agent projects
4
0.2% of 1,622 Python repos built with AI coding agents; 32 counting our dependency samples
Gid Score
48 /100
#1658 of 3,794 tools, #99 in ml and data science · ranking
Rank in ml and data science
#71 of 262
by use in those projects
Downloads
2.7M
PyPI, last 7 days, torchmetrics
GitHub stars
2,477
554 forks · last push Oct 7, 2026

How TorchMetrics is used

TorchMetrics is a dependency in 4 of the 6,211 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,980); counting those, it appears in 32 projects, and what it is used with below comes from all of them. Projects that use it most often also use NumPy (96.9%), scikit-learn (93.8%), PyTorch (90.6%).

TorchMetrics popularity over time

Top tools by Gid Score

TorchMetrics: downloads per weekPyPI, torchmetrics 2,714,098
TorchMetrics: GitHub starsLightning-AI/torchmetrics 2,477

Gid Score 48: downloads 73, use in agent projects 34, GitHub stars 27, downloads trend 51 (each 0-100). How it is calculated.

Often used with TorchMetrics

NumPy96.9% of TorchMetrics projects · 16.6× more than average
scikit-learn93.8% of TorchMetrics projects · 43.8× more than average
PyTorch90.6% of TorchMetrics projects · 59.9× more than average
tqdm90.6% of TorchMetrics projects · 51.6× more than average
Matplotlib84.4% of TorchMetrics projects · 31.4× more than average
pandas84.4% of TorchMetrics projects · 19.6× more than average
PyYAML81.2% of TorchMetrics projects · 13.7× more than average
SciPy81.2% of TorchMetrics projects · 44.7× more than average

From all 32 projects in our scan that use TorchMetrics, including the dependency samples.

Install

Alternatives to TorchMetrics

All ml and data science

In our scan, none of the most used tools in ML and data science does the same job as TorchMetrics: they are add-ons, companions or tools for a different task.

More in ML and data science: NumPy pandas scikit-learn SciPy PyTorch Sentence Transformers Hugging Face Transformers NetworkX

Is TorchMetrics right for your project? Ask AgentGid →