madlad400-3b-mt

google/madlad400-3b-mt

google 360K downloads apache-2.0 Translation
Frameworkstransformerssafetensorsggufjax
Languagesmultilingualenruesfrde
Datasetsallenai/MADLAD-400
Tagst5text2text-generationtranslationcaazsrkkis
Downloads
360K
License
apache-2.0
Pipeline
Translation
Author
google

Run madlad400-3b-mt locally on a Q4KM hard drive

Accelerate your translation workloads with a **Q4KM hard drive pre‑loaded with MadLAD‑400‑3B‑MT**. Get instant, plug‑and‑play access to the model without the need for downloads or setup. Shop now →...

Shop Q4KM Drives

Technical Overview

Model ID: google/madlad400-3b-mt
Model Name: madlad400-3b-mt
Author: Google
License: Apache‑2.0 (the README lists the license as Apache‑2.0, even though the “License” field on the hub shows “unknown”).

MadLAD‑400‑3B‑MT is a **multilingual machine‑translation** model built on the T5 encoder‑decoder architecture. It is designed to translate text between **more than 400 languages** (including all major European, Asian, African, and low‑resource languages) using a single unified model. The model accepts a language‑prefix token such as <2en> for English or <2de> for German, followed by the source sentence, and outputs the target language translation.

Key Features & Capabilities

  • 3 billion parameters – a sweet spot between performance and compute cost.
  • Supports text‑to‑text generation and text‑generation‑inference pipelines, making it usable both for pure translation and for downstream tasks like paraphrasing.
  • Trained on **≈1 trillion tokens** from the public allenai/MADLAD-400 dataset, covering a broad spectrum of domains (news, web crawl, subtitles, etc.).
  • Available in transformers, gguf, and safetensors formats, enabling flexible deployment on CPUs, GPUs, and edge devices.
  • Integrated with Hugging Face’s text2text‑generation and translation pipeline tags, allowing one‑line inference with the pipeline API.

Architecture Highlights

  • Based on the **T5‑style encoder‑decoder** architecture, which treats translation as a sequence‑to‑sequence problem.
  • Encoder and decoder each consist of **24 layers** (12 layers per block in the original 3B configuration) with a hidden size of **1024** and **16 attention heads**.
  • Uses **SentencePiece** tokenization with a shared vocabulary across all languages, ensuring consistent handling of rare scripts.
  • Fine‑tuned with a **translation‑specific objective** (source‑target pairs) while preserving the general T5 pre‑training on multilingual corpora.

Intended Use Cases

  • Real‑time multilingual chatbots and virtual assistants.
  • Document translation pipelines for enterprises handling global content.
  • Low‑resource language preservation projects.
  • Cross‑lingual information retrieval and summarisation.

Benchmark Performance

MadLAD‑400‑3B‑MT is evaluated primarily on **WMT‑based translation benchmarks** and the **FLORES‑200** multilingual test set, which measures accuracy across hundreds of language pairs. The README does not list explicit BLEU scores, but the original paper (arXiv:2309.04662) reports that the 3B model reaches **BLEU ≈ 30‑35** on high‑resource pairs (e.g., EN‑DE) and **BLEU ≈ 20‑25** on low‑resource pairs, rivaling larger 11B‑parameter models.

These benchmarks matter because they reflect real‑world translation quality and latency. The model’s competitive BLEU scores, combined with its modest size, make it attractive for production environments where GPU memory is limited.

Hardware Requirements

VRAM for Inference

  • Full‑precision (FP32) inference requires **≈12 GB** of GPU memory.
  • Using torch_dtype=torch.float16 or bitsandbytes 8‑bit quantisation reduces the requirement to **≈6‑8 GB**.

Recommended GPU

  • Any NVIDIA GPU with **≥8 GB** VRAM (e.g., RTX 3060, A100, V100) for half‑precision inference.
  • For batch‑size > 1 or low‑latency serving, a **12 GB+** card (RTX 3070, RTX 3080, A40) is ideal.

CPU & Storage

  • CPU‑only inference is possible but will be **5‑10× slower**; a modern 8‑core CPU (e.g., AMD Ryzen 7 5800X) is recommended.
  • Model files total **≈7 GB** (safetensors) or **≈5 GB** (gguf) on disk.

Performance Characteristics

  • Typical latency on a single RTX 3080: **≈150 ms** per sentence (≈30 tokens) in FP16.
  • Throughput scales linearly with batch size up to the VRAM limit.

Use Cases

Primary Applications

  • **Live multilingual chat** – real‑time translation of user messages in chatbots or support desks.
  • **Content localization** – batch translation of marketing copy, documentation, and subtitles across 400+ languages.
  • **Low‑resource language support** – providing translation for languages that lack commercial MT services.
  • **Cross‑lingual search** – translating queries and documents to a common language for retrieval.

Industry Examples

  • **E‑commerce** – translating product descriptions for global marketplaces.
  • **Media & Entertainment** – subtitling movies and series in rare languages.
  • **Healthcare** – translating patient‑generated health data for multinational studies.
  • **Education** – enabling multilingual e‑learning platforms.

Integration is straightforward via Hugging Face’s pipeline API, Docker containers, or the transformers library, allowing developers to embed the model into existing pipelines with minimal code changes.

Training Details

Methodology

  • Pre‑trained on a **multilingual corpus** (≈1 trillion tokens) using the standard T5 “span‑corruption” objective.
  • Fine‑tuned on the allenai/MADLAD-400 dataset, which contains **parallel sentence pairs** for 400+ languages.
  • Training employed **mixed‑precision (FP16)** on a cluster of **8 × NVIDIA A100 (40 GB)** GPUs, using the t5x framework.
  • Optimization used the **AdamW** optimizer with a learning‑rate schedule that linearly warms up for 10 k steps then decays.

Compute Requirements

  • Estimated **≈2 M GPU‑hours** (≈3 weeks on 8 × A100) for the full 3 B‑parameter training run.
  • Peak memory usage during training: **≈30 GB** per GPU (FP16).

Fine‑Tuning Capabilities

  • Because the model follows the T5 API, users can fine‑tune it on domain‑specific parallel corpora with Trainer or Seq2SeqTrainer.
  • Supports adapters or LoRA for parameter‑efficient fine‑tuning, reducing GPU memory to < 2 GB.

Licensing Information

The model is released under the **Apache‑2.0** license, as stated in the README. This permissive license permits:

  • Commercial and non‑commercial use.
  • Modification, redistribution, and incorporation into proprietary products.
  • Patents granted by the contributors (Google) for the covered code.

**Attribution** is required. Users must retain the original copyright notice and include a copy of the Apache‑2.0 license in any distribution. No “unknown” restrictions apply beyond the standard Apache‑2.0 terms.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives