Daryl Lim
docs: migrate setup instructions from pip/venv to uv
03230b5
|
Raw
History Blame
985 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 22 production-ready languages.

MADLAD-400 Translation

Translate English text to 22 production-ready languages (BLEU 35+ both directions, Section A.10) using Google's MADLAD-400 3B model.

Requirements

  • uv (Python package manager)
  • Python 3.12
  • CUDA GPU (recommended) or CPU

Setup

uv venv --python 3.12
source .venv/bin/activate
uv 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"     # 45 fast tests
pytest                   # all 55 tests (slow require CUDA + model download)