Daryl Lim
docs: update CLAUDE.md and README.md for CUDA-only support
2cbad7c
|
Raw
History Blame
882 Bytes
metadata
title: MADLAD-400 Translation
emoji: 🌍
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 6.8.0
app_file: app.py
pinned: false
license: apache-2.0
short_description: Translate English text to 183 evaluated languages.

MADLAD-400 Translation

Translate English text to 183 evaluated languages (Table 14, Section A.9) using Google's MADLAD-400 3B model.

Requirements

  • Python 3.12
  • CUDA GPU (recommended) or CPU

Setup

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python app.py

The Gradio interface launches at http://localhost:7860.

Tooling

ruff check .             # lint
ruff format .            # format
ty check                 # type check
pytest -m "not slow"     # fast tests
pytest                   # all tests (requires CUDA + model download)