seqio-nightly
SeqIO: Task-based datasets, preprocessing, and evaluation for sequence models.
What it is and what it does
SeqIO is a library for building scalable data pipelines for sequence models, originally extracted from the T5 project. It abstracts the common pattern of combining a data source (TFDS, text files, TFRecord, or custom functions), applying preprocessing steps, defining output features with vocabularies and tokenization, and registering evaluation metrics into named Tasks that can be composed into Mixtures. The library uses tf.data.Dataset internally but is framework-agnostic: you can convert the output to numpy iterators for use with jax, or other frameworks with a single line of code.
SeqIO is designed for sequence-based modalities—text and audio are natural fits, and images work when represented as sequences. It handles the boilerplate of task definition and dataset construction, letting you focus on defining what your data looks like and how to preprocess it. Tasks are typically registered globally so they can be referenced by name in model configs and training scripts.
Use it for:
- Build machine translation pipelines combining TFDS datasets with language-pair-specific preprocessing and evaluation metrics
- Define text-to-text tasks with separate input and target features, vocabularies, and custom postprocessors for evaluation
- Create reusable task mixtures that combine multiple datasets for multi-task learning with a single registry lookup
- Preprocess raw text or audio data from files or TFRecord formats into tokenized sequences ready for model training
- Evaluate model outputs using task-specific metrics by defining postprocessors that convert detokenized predictions back to evaluation format
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
SeqIO provides task-based data pipelines for sequence models, combining raw data sources, preprocessing, vocabularies, and evaluation metrics into reusable registered tasks that output tf.data.Dataset instances compatible with JAX, PyTorch, and other frameworks.
Yes, if you are building NLP or sequence-model training pipelines and want a structured, reusable way to define tasks and datasets. The library is actively maintained, has low install friction, and is permissively licensed. However, this is a nightly build (0.0.18.dev20250227); verify that the development version is appropriate for your use case. The 11 runtime dependencies add significant install time and disk space.
Install
seqio-nightly on PyPI
pip
pip install seqio-nightlyuv
uv add seqio-nightlypoetry
poetry add seqio-nightlyInstalling seqio-nightly
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with recent releases; last commit 2026-07-02. Depends on 11 runtime packages including jax, tensorflow-text, and tfds-nightly, which may require system-level dependencies or compilation time on first install.
License in practice
Apache 2.0 permissive license allows commercial and private use with minimal restrictions; you must retain license notices and may not hold the authors liable.
Quickstart
pip install seqio-nightly
import seqio
seqio.TaskRegistry.add(
"my_task",
seqio.TfdsDataSource(tfds_name="dataset_name"),
preprocessors=[seqio.preprocessors.tokenize],
output_features={
'inputs': seqio.Feature(seqio.SentencePieceVocabulary('/path/to/vocab')),
'targets': seqio.Feature(seqio.SentencePieceVocabulary('/path/to/vocab'))
}
)
dataset = seqio.get_dataset("my_task")
Requires TensorFlow and jax as runtime dependencies; initial install of these packages may require compilation or system libraries.
Verify before relying
- Whether the nightly build (0.0.18.dev20250227) is suitable for production use versus requiring a stable release
- Specific Python version compatibility, as requires_python is unspecified in the metadata
Package facts
| License | Apache 2.0 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 11 — absl-py, clu, editdistance, jax, jaxlib, numpy, packaging, pyglove, sentencepiece, tensorflow-text, tfds-nightly |
| Maintenance | actively maintained — 533 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 216,891/month — #9,370 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: seqio_nightly-0.0.18.dev20250227-py3-none-any.whl
Keywords: sequence, preprocessing, nlp, machinelearning
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
seqioSeqIO builds scalable data pipelines for…
permissive · top 15,000 on PyPI
tfds-nightlyProvides a library of ready-to-use public…
permissive · top 15,000 on PyPI
tensorflow-datasetsProvides access to many public datasets as…
permissive · top 5,000 on PyPI
tb-nightlyTensorBoard is a web-based visualization suite…
permissive · top 15,000 on PyPI
tf2crfProvides a Conditional Random Field (CRF) layer…
permissive · top 15,000 on PyPI
unitxtUnitxt provides a unified framework for…
permissive · top 15,000 on PyPI
torchtexttorchtext provides text datasets, preprocessing…
permissive · top 15,000 on PyPI
tensorboard-data-serverProvides fast data loading and serving for…
permissive · top 5,000 on PyPI
keras-hubKerasHub provides Keras 3 implementations of…
permissive · top 15,000 on PyPI
tensorflow-textTensorFlow Text provides text preprocessing…
permissive · top 5,000 on PyPI