[ROCm][CI] Force native compile caches onto local disk (#49763)

Signed-off-by: aarushjain29 <Aarushi.Jain2@amd.com>
Co-authored-by: Andreas Karatzas <akaratza@amd.com>
This commit is contained in:
Aarushi Jain
2026-07-24 23:14:37 -05:00
committed by GitHub
co-authored by Andreas Karatzas
parent 70052fb924
commit d9cd774198
@@ -400,10 +400,10 @@ initialize_native_environment() {
native_root="/tmp/vllm-native-${job_id}" native_root="/tmp/vllm-native-${job_id}"
TMPDIR="/tmp/vllm-${job_id_suffix}/tmp" TMPDIR="/tmp/vllm-${job_id_suffix}/tmp"
VLLM_RPC_BASE_PATH="/tmp" VLLM_RPC_BASE_PATH="/tmp"
: "${TORCHINDUCTOR_CACHE_DIR:=${native_root}/cache/torchinductor}" TORCHINDUCTOR_CACHE_DIR="${native_root}/cache/torchinductor"
: "${TRITON_CACHE_DIR:=${native_root}/cache/triton}" TRITON_CACHE_DIR="${native_root}/cache/triton"
: "${VLLM_CACHE_ROOT:=${native_root}/cache/vllm}" VLLM_CACHE_ROOT="${native_root}/cache/vllm"
: "${XDG_CACHE_HOME:=${native_root}/cache/xdg}" XDG_CACHE_HOME="${native_root}/cache/xdg"
: "${HF_HOME:=/home/buildkite-agent/huggingface}" : "${HF_HOME:=/home/buildkite-agent/huggingface}"
: "${HF_HUB_DOWNLOAD_TIMEOUT:=300}" : "${HF_HUB_DOWNLOAD_TIMEOUT:=300}"
: "${HF_HUB_ETAG_TIMEOUT:=60}" : "${HF_HUB_ETAG_TIMEOUT:=60}"
@@ -419,6 +419,8 @@ initialize_native_environment() {
"${XDG_CACHE_HOME}" \ "${XDG_CACHE_HOME}" \
"${HF_HOME}" || return 1 "${HF_HOME}" || return 1
echo "Native compile caches: VLLM_CACHE_ROOT=${VLLM_CACHE_ROOT} TORCHINDUCTOR_CACHE_DIR=${TORCHINDUCTOR_CACHE_DIR}"
if [[ "${VLLM_CI_REQUIRE_PERSISTENT_HF_CACHE:-0}" == "1" ]]; then if [[ "${VLLM_CI_REQUIRE_PERSISTENT_HF_CACHE:-0}" == "1" ]]; then
if ! command -v findmnt >/dev/null 2>&1; then if ! command -v findmnt >/dev/null 2>&1; then
echo "findmnt is required to verify the native Hugging Face cache mount" >&2 echo "findmnt is required to verify the native Hugging Face cache mount" >&2