{"repo":"Lightning-AI/torchmetrics","free":true,"listed":false,"github":"https://github.com/Lightning-AI/torchmetrics","clone":"git clone https://github.com/Lightning-AI/torchmetrics.git","description":"Machine learning metrics for distributed, scalable PyTorch applications.","language":"Python","stars":2459,"topics":["python","data-science","machine-learning","pytorch","deep-learning","metrics","analyses"],"license":"Apache-2.0","category":"machine-learning","readme_excerpt":"Machine learning metrics for distributed, scalable PyTorch applications. What is Torchmetrics • Implementing a metric • Built-in metrics • Docs • Community • License Looking for GPUs? Over 340,000 developers use Lightning Cloud - purpose-built for PyTorch and PyTorch Lightning. - GPUs from $0.19. - Clusters: frontier-grade training/inference clusters. - AI Studio (vibe train): workspaces where AI helps you debug, tune and vibe train. - AI Studio (vibe deploy): workspaces where AI helps you optimize, and deploy models. - Notebooks: Persistent GPU workspaces where AI helps you code and analyze. - Inference: Deploy models as inference APIs. Installation Simple installation from PyPI Other installations Install using conda Install using uv Pip from source Pip from archive Extra dependencies for specialized metrics: Install latest developer version What is TorchMetrics TorchMetrics is a collection of 100+ PyTorch metrics implementations and an easy-to-use API to create custom metrics. It offers: - A standardized interface to increase reproducibility - Reduces boilerplate - Automatic accumulation over batches - Metrics optimized for distributed-training - Automatic synchronization between multiple devices You can use TorchMetrics with any PyTorch model or with PyTorch Lightning to enjoy additional features such as: - Module metrics are automatically placed on the correct device. - Native support for logging metrics in Lightning to reduce even more boilerplate. Using TorchMetrics Mo","default_branch":null,"files":null,"tree":[],"storefront":"/r/Lightning-AI","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Lightning-AI/torchmetrics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}