Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .ci/scripts/download_hf_hub.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Disable HF Xet storage to avoid stalled downloads on CI runners
export HF_HUB_DISABLE_XET=1

Comment on lines 1 to +5
# Function to download files from the Hugging Face Hub
# Arguments:
# 1. model_id: The Hugging Face repository ID (e.g., "organization/model_name")
Expand Down
1 change: 1 addition & 0 deletions .ci/scripts/export_model_artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ if [ -z "${1:-}" ]; then
exit 1
fi

# Disable HF Xet storage to avoid stalled downloads on CI runners
export HF_HUB_DISABLE_XET=1

set -eux
Expand Down
4 changes: 4 additions & 0 deletions .ci/scripts/test_huggingface_optimum_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
import gc
import logging
import math
import os
import shutil
import subprocess
import tempfile
import time
from pathlib import Path
from typing import List

# Disable HF Xet storage to avoid stalled downloads on CI runners
os.environ.setdefault("HF_HUB_DISABLE_XET", "1")

import torch
from datasets import load_dataset

Expand Down
2 changes: 2 additions & 0 deletions .ci/scripts/test_lora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# LICENSE file in the root directory of this source tree.

set -exu
# Disable HF Xet storage to avoid stalled downloads on CI runners
export HF_HUB_DISABLE_XET=1
# shellcheck source=/dev/null
source "$(dirname "${BASH_SOURCE[0]}")/utils.sh"

Expand Down
2 changes: 2 additions & 0 deletions .ci/scripts/test_lora_multimethod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# LICENSE file in the root directory of this source tree.

set -exu
# Disable HF Xet storage to avoid stalled downloads on CI runners
export HF_HUB_DISABLE_XET=1
# shellcheck source=/dev/null
source "$(dirname "${BASH_SOURCE[0]}")/utils.sh"

Expand Down
2 changes: 2 additions & 0 deletions .ci/scripts/test_phi_3_mini.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# LICENSE file in the root directory of this source tree.

set -exu
# Disable HF Xet storage to avoid stalled downloads on CI runners
export HF_HUB_DISABLE_XET=1

BUILD_TYPE=${1:-Debug}
BUILD_DIR=${3:-cmake-out}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/mlx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ jobs:
timeout: 90
script: |
set -eux
# Disable HF Xet storage to avoid stalled downloads on CI runners
export HF_HUB_DISABLE_XET=1

Comment on lines 307 to 311
echo "::group::Install ExecuTorch"
${CONDA_RUN} python install_executorch.py > /dev/null
Expand Down Expand Up @@ -382,6 +384,8 @@ jobs:
timeout: 90
script: |
set -eux
# Disable HF Xet storage to avoid stalled downloads on CI runners
export HF_HUB_DISABLE_XET=1

echo "::group::Install ExecuTorch and configure MLX build"
${CONDA_RUN} python install_executorch.py > /dev/null
Expand Down Expand Up @@ -510,6 +514,8 @@ jobs:
timeout: 90
script: |
set -eux
# Disable HF Xet storage to avoid stalled downloads on CI runners
export HF_HUB_DISABLE_XET=1

MODEL_ID="${{ matrix.model.id }}"
MODEL_NAME="${{ matrix.model.name }}"
Expand Down
Loading