#!/bin/bash # 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