[CI][ROCm] Prefetch safetensors weights in AMD CI (#54898)

Signed-off-by: Andreas Karatzas <akaratza@amd.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
Andreas Karatzas
2026-09-02 03:28:39 -05:00
committed by GitHub
co-authored by OpenAI Codex
parent e52407ef4c
commit c6005000d3
5 changed files with 15 additions and 5 deletions
@@ -28,6 +28,7 @@ do
echo "=== RUNNING MODEL: $MODEL_CONFIG ==="
unset WEIGHT_LOADING_TEST_SAFETENSORS_LOAD_STRATEGY
export QUANTIZATION=${array[0]}
export MODEL_NAME=${array[1]}
export REVISION=${array[2]}
@@ -35,6 +36,9 @@ do
if [ ${#array[@]} -gt 3 ]; then
export MIN_CAPABILITY=${array[3]}
fi
if [ ${#array[@]} -gt 4 ]; then
export WEIGHT_LOADING_TEST_SAFETENSORS_LOAD_STRATEGY=${array[4]}
fi
pytest -s weight_loading/test_weight_loading.py || LOCAL_SUCCESS=$?
if [[ $LOCAL_SUCCESS == 0 ]]; then