Registry / ai-ml / unitxt

unitxt

JSON →
library1.26.10pypypi✓ verified 85d ago

Unitxt is a library by IBM to load any mixture of text-to-text data in one line of code. It provides a unified interface for handling various text datasets, with support for multi-task learning. Current version is 1.26.10, requires Python >=3.8, and is released under an active development cadence (frequent minor releases).

pip install unitxt
INSTALL
IMPORT
SIG · UNITXT
U
unitxt
ai-mlpythonv1.26.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

load_dataset
from unitxt import load_dataset
from unitxt.api import load_dataset
old import path deprecated in v1.20

Load the WNLI dataset using a card and template item.

from unitxt import load_dataset dataset = load_dataset("card=cards.wnli,template_item=0")
Debug
Known issues
breakingIn v1.20, the API was restructured: `from unitxt import load_dataset` is the correct import. `from unitxt.api import load_dataset` is removed.
fix
Use `from unitxt import load_dataset`.
affects: >=1.20
gotchaDataset loading syntax uses a string with card and template_item, not separate arguments. Common mistake: passing card as a positional argument.
fix
Use `load_dataset("card=cards.wnli,template_item=0")` with a single string.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'unitxt.api'
Import path changed in v1.20.
fix
Replace `from unitxt.api import load_dataset` with `from unitxt import load_dataset`.
TypeError: load_dataset() takes 1 positional argument but 2 were given
Using `load_dataset("cards.wnli", 0)` instead of a single string.
fix
Use `load_dataset("card=cards.wnli,template_item=0")`.
Upgrade
Version history
1.26.10latest on PyPI · released May 27, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources