GGUF / ggml conversion of google/madlad400-7b-mt-bt for use with CrispStrobe/CrispASR.
MADLAD-400 7B MT BT is Google's 7.2B-parameter T5-based multilingual translation model fine-tuned with Back-Translation (BT) on over 450 languages. The back-translation training significantly improves fluency, domain robustness, and translation quality across underrepresented and high-resource language pairs alike. Distributed under the Apache 2.0 license.
| File | Size | Notes |
|---|---|---|
madlad400-7b-mt-bt-f16.gguf |
~14.5 GB | Full precision baseline (reference quality) |
madlad400-7b-mt-bt-q8_0.gguf |
~7.6 GB | High fidelity 8-bit quantization |
madlad400-7b-mt-bt-q4_k.gguf |
~4.1 GB | Recommended for general use |
madlad400-7b-mt-bt-ref.gguf |
~1.5 MB | Per-stage verification archive |
# 1. Build CrispASR
git clone https://github.com/CrispStrobe/CrispASR
cd CrispASR
cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
cmake --build build -j
# 2. Pull model
huggingface-cli download cstr/madlad400-7b-mt-bt-GGUF madlad400-7b-mt-bt-q4_k.gguf --local-dir .
# 3. Translate (uses <2xx> language tags)
./build/bin/crispasr --backend madlad -m madlad400-7b-mt-bt-q4_k.gguf \
--text "Hello world, how are you today?" \
-sl en -tl de
# English → Japanese
./build/bin/crispasr --backend madlad -m madlad400-7b-mt-bt-q4_k.gguf \
--text "Machine learning is changing the world." \
-sl en -tl ja
# French → Portuguese
./build/bin/crispasr --backend madlad -m madlad400-7b-mt-bt-q4_k.gguf \
--text "Bonjour le monde!" \
-sl fr -tl pt
MADLAD-400 supports over 450 languages using <2xx> target language tags (ISO 639 codes). This includes all major world languages plus many low-resource languages. See the original model card for the full language list.
Text → SentencePiece tokenizer (256K vocab, shared encoder-decoder)
→ <2xx> target language tag prepended to source text
→ T5 encoder (32 layers, d=1024)
→ T5 decoder (32 layers, d=1024) with cross-attention
→ Greedy decode → translated text
Converted and verified with CrispASR per-stage parity test against PyTorch reference outputs:
crispasr-diff madlad madlad400-7b-mt-bt-q4_k.gguf --ref madlad400-7b-mt-bt-ref.gguf
cstr/madlad400-3b-mt-GGUF — MADLAD-400 3B MTcstr/madlad400-7b-mt-GGUF — MADLAD-400 7B MT (standard)cstr/madlad400-10b-mt-GGUF — MADLAD-400 10B MTcstr/m2m100-418m-GGUF — M2M-100, 100 languages, any-to-anygoogle/madlad400-7b-mt-bt — original PyTorch model@misc{kudugunta2023madlad400,
title={MADLAD-400: A Multilingual And Document-Level Large Audited Dataset},
author={Sneha Kudugunta and Isaac Caswell and Biao Zhang and Xavier Garcia and Christopher A. Choquette-Choo and Katherine Lee and Derrick Xin and Aditya Kusupati and Romi Stella and Ankur Bapna and Orhan Firat},
year={2023},
eprint={2309.04662},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
google/madlad400-7b-mt-bt