qmetrics.net

T5

Unified text-to-text Transformer library for NLP tasks

T5 screenshot

The T5 library loads data, trains, fine-tunes, evaluates, and decodes text-to-text Transformer models, with released checkpoints from the original research.

Overview

T5 (Text-To-Text Transfer Transformer) is a research codebase accompanying work on a unified text-to-text framework for transfer learning in NLP. The bundled t5 Python library supports reproducing paper experiments, fine-tuning released checkpoints, and building on shared modules for training and evaluation.

The data stack defines Task objects that wire data sources, text preprocessors, SentencePiece tokenization, and metric functions, including mixtures for multi-task training. Integrations cover TensorFlow Datasets, text-line files, and TensorFlow Datasets-based corpora such as C4 for unsupervised pre-training.

Model access includes a Mesh TensorFlow path for large-scale TPU training and an experimental Hugging Face PyTorch shim for single-GPU fine-tuning. Command-line flows cover pre-training, fine-tuning with gin configs, evaluation, decoding from input files, and SavedModel export for serving.

New users are directed toward T5X in JAX and Flax for active development; the TensorFlow MeshTF stack in this tree is no longer actively developed. A free Colab tutorial is offered as the quickest hands-on entry point.

Key features

  • Text-to-text Task and Mixture API
  • TFDS and text-line data sources
  • Fine-tuning released checkpoints
  • Gin-configured training and eval
  • Beam, greedy, and sample decoding
  • SavedModel export for serving
  • Mesh TensorFlow and experimental PyTorch shim
  • Released pre-trained model configs

Use cases

  • Fine-tuning T5 on custom text tasks
  • Reproducing NLP benchmark experiments
  • Multi-task mixture training
  • Batch inference from text inputs
  • Exporting models for ML serving

Similar software

Transformers

Shared model definitions for multimodal ML workloads

Transformers is a Python library that defines pretrained text, vision, audio, and multimodal models once in PyTorch for shared inference and training across the ecosystem.

★ 169.4k⟳ todayApache-2.0

scikit-learn

Python toolkit for classical machine learning

scikit-learn provides algorithms and utilities for classification, regression, clustering, and model selection in Python. It builds on NumPy and SciPy.

★ 68.4k⟳ yesterdayBSD-3-Clause

Ultralytics

YOLO computer-vision models for detection, segmentation, and pose

Ultralytics provides the ultralytics Python package and YOLO CLI for training and running models on detection, segmentation, classification, pose, depth, and tracking tasks.

★ 63.8k⟳ yesterdayAGPL-3.0

Supervision

Reusable Python toolkit for computer vision workflows

Supervision from Roboflow supplies Python utilities to load data, annotate images and video, track objects, and evaluate models across popular detection libraries.

★ 51.7k⟳ todayMIT

AirLLM

Layer-streaming inference for huge models on small GPUs

AirLLM loads one transformer layer at a time so very large language models can infer or fine-tune on GPUs with only a few gigabytes of VRAM.

★ 43.5k⟳ yesterdayApache-2.0

DeepSpeed

PyTorch distributed training and inference optimizations

DeepSpeed is a Python library that speeds large-model training and inference with ZeRO memory optimizations, parallelism modes, and MoE support. Install via pip with JIT-built CUDA ops.

★ 43.4k⟳ todayApache-2.0