$npx skillfedfor your agent

torcheval

A library for providing a simple interface to create new metrics and an easy-to-use toolkit for metric computations and checkpointing.

With conditionsPyPI Artificial IntelligenceReleased Aug 2023376.7K downloads / moBSD-3Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — torcheval-0.0.7-py3-none-any.whl
v0.0.7 · released 2023-08-24 · Python >=3.7 · 1 runtime deps: typing-extensions

Yes, with conditions. Install if you are training models in distributed settings and want to avoid manual metric synchronization logic, or if you prefer a unified metric interface across single and multi-GPU scenarios. Avoid if you require stable APIs and backward compatibility guarantees, as the package is pre-alpha and may introduce breaking changes. The low install friction and active maintenance are favorable, but verify that the available metrics match your evaluation needs.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >= 3.7 and PyTorch >= 1.11
  • Low install friction with a single runtime dependency.
  • The package is actively maintained with recent commits, though it remains in pre-alpha status with an API that may change and is not guaranteed to be backward compatible.

License · maintenance · safety

BSD-3 (permissive) — BSD-3 licensed under a permissive license, allowing commercial and private use with minimal restrictions beyond attribution and liability disclaimers.

last release 2023-08-24 (1086 days) · last repo commit 2026-08-14 · 247 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 376,719 downloads/mo, #7,128 on PyPI

Verify before relying

pip install torcheval

from torcheval.metrics import MulticlassAccuracy

metric = MulticlassAccuracy()
metric.update(outputs, target)
result = metric.compute()
  • Whether the pre-alpha status and lack of stable release significantly impacts production readiness beyond API instability
  • Performance characteristics and overhead of metric computation compared to manual implementations
  • Completeness of the metric collection relative to common evaluation needs
  • Whether typing-extensions dependency introduces any compatibility constraints
Same gist for agents: .md · .json

What it is and what it does

TorchEval is a metrics library that abstracts away the complexity of computing model evaluation metrics across different training scenarios. It offers both functional interfaces for immediate computation and class-based interfaces that defer computation, the latter being especially useful for accumulating data across multiple batches or synchronizing metrics in distributed settings.

The library is designed to work on CPU, single GPU, and multi-process or multi-GPU configurations. Its main value lies in simplifying metric synchronization and computation in distributed training, where manual metric aggregation across ranks is error-prone. However, it is currently in pre-alpha (Development Status :: 2 - Pre-Alpha), meaning the API may change and backward compatibility is not guaranteed.

Use it for

  • Compute metrics during training loops with deferred computation across batches using class-based interfaces
  • Synchronize and aggregate metrics across multiple GPUs or processes in distributed training without manual rank communication
  • Evaluate model performance on CPU or GPU with a consistent interface that handles device placement automatically
  • Build custom metrics by extending the class-based interface or using functional metric primitives
  • Checkpoint and restore metric state during long training runs using the class-based metric API

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, with conditions.

Install if you are training models in distributed settings and want to avoid manual metric synchronization logic, or if you prefer a unified metric interface across single and multi-GPU scenarios. Avoid if you require stable APIs and backward compatibility guarantees, as the package is pre-alpha and may introduce breaking changes. The low install friction and active maintenance are favorable, but verify that the available metrics match your evaluation needs.

Install

torcheval on PyPI

Before you install

Low install friction with a single runtime dependency. The package is actively maintained with recent commits, though it remains in pre-alpha status with an API that may change and is not guaranteed to be backward compatible.

Requires Python >= 3.7 and PyTorch >= 1.11

License in practice

BSD-3 licensed under a permissive license, allowing commercial and private use with minimal restrictions beyond attribution and liability disclaimers.

Quickstart

pip install torcheval

from torcheval.metrics import MulticlassAccuracy

metric = MulticlassAccuracy()
metric.update(outputs, target)
result = metric.compute()

Verify before relying

  • Whether the pre-alpha status and lack of stable release significantly impacts production readiness beyond API instability
  • Performance characteristics and overhead of metric computation compared to manual implementations
  • Completeness of the metric collection relative to common evaluation needs
  • Whether typing-extensions dependency introduces any compatibility constraints

Package facts

LicenseBSD-3 permissive
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
typing-extensions
MaintenanceActively maintained 1,086 days since the last release
Last repo commit
First released
Downloads376,719 / month, #7,128 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 2 - Pre-AlphaIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.7Topic :: Scientific/Engineering :: Artificial Intelligence

Evidence: torcheval-0.0.7-py3-none-any.whl

Tags

Capabilities
pytorch model metricsevaluation metrics for pytorchdistributed training metricsmulticlass accuracy pytorchmetric computation pytorchmodel evaluation toolkitpytorch metric library
Topics
distributed-trainingmodel-evaluation
PyPI keywords
pytorchevaluationmetrics

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “pytorch model metrics”

  • torchevalTorchEval provides a collection of PyTorch model metrics with both…
  • torchmetricsTorchmetrics provides a collection of PyTorch metrics implementations…
  • tracemlTraceML tracks metrics, parameters, artifacts, and data references…

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also torchmetrics · torch · torchinfo · torchrunx · torch-ema · mmengine · pytorch-ignite · torchrl