unitxt
Load any mixture of text to text data in one line of code
What it is and what it does
Unitxt is a Python library designed for evaluating AI model performance in a unified, modular way. It provides a large catalog of pre-built benchmarks and datasets that can be loaded and formatted for any model, supporting text, tables, vision, speech, and code evaluation. The library works model-agnostically with HuggingFace, OpenAI, WatsonX, and custom inference engines, and emphasizes reproducibility through shareable, composable components.
You use Unitxt either through its command-line interface for quick benchmark runs or programmatically by loading datasets, defining tasks with metrics, and running inference and evaluation. It handles data preparation, formatting for chat APIs, and metric computation in one workflow, reducing the boilerplate needed to benchmark models at scale.
Use it for:
- Evaluate a custom LLM against standard benchmarks like MMLU Pro or GPQA without writing dataset loaders
- Run multi-task evaluation across different domains in a single command-line call
- Load and format datasets in chat API format for any model without manual preprocessing
- Build reproducible evaluation pipelines with modular, shareable task and template components
- Compare model performance across text, code, and structured data tasks using unified metrics
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Unitxt provides a unified framework for evaluating AI model performance across text, tables, vision, speech, and code using a modular catalog of benchmarks and datasets.
Yes. Unitxt is actively maintained, has no known vulnerabilities, and offers low-friction installation. It solves a real problem—standardizing AI model evaluation across diverse data types and models—with a permissive license suitable for enterprise use. Install it if you need to benchmark models against established datasets or build reproducible evaluation workflows.
Install
unitxt on PyPI
pip
pip install unitxtuv
uv add unitxtpoetry
poetry add unitxtInstalling unitxt
Before you install
Low friction installation with four runtime dependencies (datasets, evaluate, scipy, diskcache). Actively maintained with a recent release and no known vulnerabilities.
License in practice
Apache License 2.0 permits commercial use, modification, and distribution with attribution; suitable for enterprise adoption.
Quickstart
pip install unitxt
from unitxt import load_dataset
dataset = load_dataset(
card="cards.gpqa.diamond",
split="test",
format="formats.chat_api",
)
Verify before relying
- Whether the catalog contains thousands of datasets as implied by 'thousands of datasets' claim in description
- Performance characteristics and memory footprint when evaluating large-scale benchmarks
- Specific model provider integrations beyond HuggingFace, OpenAI, and WatsonX mentioned
Package facts
| License | Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — datasets, evaluate, scipy, diskcache |
| Maintenance | actively maintained — 79 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 92,135/month — #13,476 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: unitxt-1.26.10-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
lm-evalUnified framework for evaluating generative…
permissive · top 5,000 on PyPI
azure-ai-evaluationEvaluates generative AI application outputs…
permissive · top 15,000 on PyPI
mtebMTEB evaluates text and multimodal embeddings…
permissive · top 5,000 on PyPI
deepevalDeepEval is an LLM evaluation framework that…
permissive · top 5,000 on PyPI
clip-benchmarkEvaluates CLIP-like vision-language models on…
permissive · top 15,000 on PyPI
terminal-benchTerminal-Bench provides a benchmark suite and…
unclear · top 15,000 on PyPI
seqevalseqeval evaluates the performance of sequence…
permissive · top 15,000 on PyPI
arckitLoad, visualize, and evaluate solutions on the…
permissive · top 15,000 on PyPI
seqio-nightlySeqIO provides task-based data pipelines for…
permissive · top 15,000 on PyPI
nvidia-lm-evalEvaluates language models against standardized…
permissive · top 15,000 on PyPI