CLI and Python API to summarize long text documents using HuggingFace transformer models.
Process arbitrary-length text documents locally using open-source transformer models.
textsum is a Python package and command-line tool for summarizing long text documents using HuggingFace transformers. It is designed for analysts and developers who need to process batches of public records, policy documents, or municipal reports without sending data to third-party APIs.
The tool wraps HuggingFace transformer models into simple Python code, a terminal interface, and an optional Gradio web UI. It handles document chunking, batch processing, and memory optimizations like 8-bit quantization and ONNX runtime integration.
It suits data engineers, civic tech researchers, and IT staff who require local document processing for sensitive records. It is less suitable for non-technical staff who expect a fully managed SaaS interface without managing Python environments or GPU drivers.
Summarize entire directories of text files via a single CLI command with options to skip completed items.
Reduce GPU VRAM consumption using 8-bit quantization, TensorFloat32, or Optimum ONNX runtime.
Load any compatible text-to-text or summarization model directly from the HuggingFace Hub.
Launch a local web application to test models interactively in your browser.
textsum is free and open source under the Apache-2.0 license. The primary cost involved is the computing infrastructure required to host and execute large transformer models on local GPUs or cloud servers.
879 open remote AI-training roles, updated November 15, 2026; most pay $20–$175 an hour. Zekai lists them free; the application goes to the employer’s platform.
Yes, you can pass any HuggingFace text-to-text or summarization model path to the Summarizer class or CLI flag.
Initial execution downloads HuggingFace models to local cache, after which subsequent runs operate completely offline.
See Zekai first in Google