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

Lightning-AI/torchmetrics

Machine learning metrics for distributed, scalable PyTorch applications. observed · 2026-08-28

github.com/Lightning-AI/torchmetrics · homepage · Python · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

90/100

  • Activity 98
  • Release rhythm 74
  • 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: 18
  • age_days: 2080
  • days_rel: 177
  • days_push: 13
  • n_releases_24m: 18

Full methodology

Adoption not part of the score

2461 stars · 517 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

TorchMetrics is a PyTorch-native library of machine learning metrics that work in distributed and scalable training pipelines. It provides 100+ built-in metrics (classification, regression, retrieval, multimodal, etc.) with a simple API for defining custom metrics.

Use cases

  • compute accuracy, F1, and ROC-AUC during PyTorch training
  • evaluate model metrics across distributed multi-GPU training
  • implement a custom metric that accumulates batch statistics
  • track validation metrics with PyTorch Lightning
  • calculate image segmentation or object detection metrics
  • evaluate retrieval and ranking quality for recommendation models

When to choose

  • you train models in PyTorch or PyTorch Lightning and need reliable, well-tested metrics
  • you need metrics that aggregate correctly across distributed workers
  • you want a broad catalog of metrics with a consistent API

When to avoid

  • you work in TensorFlow, JAX, or scikit-learn ecosystems with their own metric tooling
  • you need only simple numpy-based evaluation without PyTorch

Facets

library · maturity stable

machine-learning benchmarking data-science machine-learning deep-learning data-science python pytorch metrics distributed-computing model-evaluation

3 sources

Member repositories

RepositoryRoleHealth v2
Lightning-AI/torchmetricsmain90

For agents

markdown · JSON · MCP: product_card(name="Lightning-AI/torchmetrics")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem