A Python library for translating between 200 languages using Hugging Face transformer models like mBART-50, m2m100, and NLLB-200.
DL Translate is a Python library that enables machine translation between up to 200 languages using state-of-the-art transformer models from Hugging Face. It solves the problem of needing a simple, offline-capable translation tool without relying on external APIs, providing a local alternative to services like Google Translate.
Python developers, data scientists, and researchers who need to integrate translation functionality into their applications or workflows, especially those requiring offline operation or customization beyond standard cloud APIs.
Developers choose DL Translate for its offline capability, ease of use compared to raw transformer implementations, and flexibility in model selection, offering a free, self-contained alternative to proprietary translation services with support for a wide range of languages.
Library for translating between 200 languages. Built on 🤗 transformers.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
After downloading models, it operates entirely without internet, providing privacy and reliability for applications in disconnected environments.
Supports mBART-50, m2m100, and NLLB-200 models, allowing users to choose based on language coverage (50 to 200 languages) and performance needs.
Abstracts away the complexity of Hugging Face transformers with an intuitive interface, including auto-complete for language codes via dlt.lang variables.
Configurable batch sizes and progress bars enable efficient translation of large texts, with automatic GPU acceleration to speed up processing.
Models like NLLB-200 are multi-gigabyte in size, requiring significant disk space and RAM/VRAM, which can be prohibitive for lightweight deployments.
First-time loading involves downloading large models over the internet, taking considerable time and bandwidth before any translation can occur.
Different models use different language codes, and the convenience of dlt.lang is limited to default models, adding complexity when switching or customizing.
DL Translate is an open-source alternative to the following products: