Views
No views yet
| Service | GPU share | Context | Parallel seqs | Accuracy (colocated) |
|---|---|---|---|---|
| Qwen3-MT | 0.38 (~12 GB) | 2048 | 8 | 64/64 translation suite, chrF 71.7 |
| PaddleOCR-VL | 0.48 (~15 GB) | 8192 | 8 | 12/12 multilingual, 85/85 fields |
--gpu-memory-utilization against the full 32GB, not remaining memory.1hf download mohameddalii/ocr-mt-5090 --local-dir ./ocr-mt-5090
2cd ocr-mt-50901python3 -m venv .venv && source .venv/bin/activate
2uv pip install -r requirements.txt
3# Blackwell: if CUDA tensors fail, reinstall torch with cu128+
4# uv pip install torch --index-url https://download.pytorch.org/whl/cu128
5
6bash scripts/prefetch.sh # optional, caches both models
7bash scripts/serve_both.sh # MT then OCR; leaves both in the foreground waithttp://127.0.0.1:18000/v1http://127.0.0.1:18100/v11python python/ocr.py scan.png
2python python/translate.py --from English --to Arabic "The total is 12 dollars."1cd /workspace
2hf download mohameddalii/ocr-mt-5090 --local-dir /workspace/ocr-mt-5090
3bash /workspace/ocr-mt-5090/vast/install_vast.shPaddleOCR-VL (10100→18000) and Qwen3-MT (10200→18100) to /etc/portal.yaml, starts MT, waits, then starts OCR.vast-capabilities direct_url plus $OPEN_BUTTON_TOKEN.| Variable | Default | Role |
|---|---|---|
MT_GPU_UTIL | 0.38 | Qwen GPU fraction |
OCR_GPU_UTIL | 0.48 | OCR GPU fraction |
MT_PORT / OCR_PORT | 18100 / 18000 | bind ports |
HF_HOME | ./.hf_home | model cache |
VENV / MT_VENV / OCR_VENV | .venv | python env |
scripts/serve_both.sh start both (MT first)
scripts/serve_mt.sh
scripts/serve_ocr.sh
scripts/prefetch.sh
python/ocr_engine.py parallel crops + OCR: prompt
python/mt_engine.py glossary + copy-spans
python/ocr.py / translate.py
vast/install_vast.sh supervisor + portal