Download scripts/r5_ref/ref_setup_env_paddle_cpu.sh from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 914 Bytes
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_ref/ref_setup_env_paddle_cpu.sh
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_ref/ref_setup_env_paddle_cpu.sh
-
curl -L -o ref_setup_env_paddle_cpu.sh https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_ref/ref_setup_env_paddle_cpu.sh
914 Bytes
| # R5 REF: a CPU build of the same PaddlePaddle version (3.0.0) for the smoke tests on ZEN4 nodes. The CUDA wheel (.venv_ref_paddle) cannot be | |
| # imported on a node without libcuda.so.1 (ImportError seen on 21 Nov 2026), so the smoke tests of the Python code run with the CPU build; the | |
| # H100 job uses the CUDA wheel. Binary wheels only. Run inside the CPU allocation. | |
| set -u | |
| unset HF_TOKEN HUGGING_FACE_HUB_TOKEN | |
| C=/path/to/TURKIC_OCR_CODE | |
| D=/path/to/TURKIC_OCR_DATA | |
| UV=uv | |
| $UV venv --python 3.11 $C/.venv_ref_paddle_cpu | |
| $UV pip install --only-binary :all: --python $C/.venv_ref_paddle_cpu/bin/python 'paddlepaddle==3.0.0' 'numpy<2' shapely scikit-image pyclipper lmdb tqdm rapidfuzz opencv-python-headless cython Pillow pyyaml requests albumentations albucore packaging editdistance | |
| $UV pip freeze --python $C/.venv_ref_paddle_cpu/bin/python > $D/outputs/r5/ref/pip_freeze_ref_paddle_cpu.txt | |
| echo done | |