Skip to content

Commit 7daf4bc

Browse files
committed
Update (base update)
[ghstack-poisoned]
1 parent df895d6 commit 7daf4bc

329 files changed

Lines changed: 4541 additions & 12955 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.ci/docker/requirements-ci.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sympy>=1.13.3
66
timm==0.6.13
77
tomli==2.0.1
88
torchsr==1.0.4
9-
transformers==5.3.0
9+
transformers==4.56.1
1010
zstd==1.5.5.1
1111
pandas>=2.2.2; python_version >= '3.10'
1212
pytest==7.2.0

.ci/scripts/unittest-linux-cmake.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,19 @@ set -eux
1111
# Install from a local tosa-tools checkout when available. If absent in this
1212
# checkout layout, clone the pinned upstream tag and install from there.
1313
if ! python -c "import tosa_serializer" >/dev/null 2>&1; then
14-
TOSA_TOOLS_DIR="./examples/arm/arm-scratch/tosa-tools"
15-
if [[ ! -d "${TOSA_TOOLS_DIR}" ]]; then
14+
TOSA_SERIALIZATION_DIR="./examples/arm/arm-scratch/tosa-tools/serialization"
15+
if [[ ! -d "${TOSA_SERIALIZATION_DIR}" ]]; then
1616
TOSA_TOOLS_DIR="$(mktemp -d /tmp/tosa-tools.XXXXXX)"
17-
git clone --depth 1 --branch v2026.05.0 \
17+
git clone --depth 1 --branch v2025.11.2 \
1818
https://git.gitlab.arm.com/tosa/tosa-tools.git "${TOSA_TOOLS_DIR}"
19+
TOSA_SERIALIZATION_DIR="${TOSA_TOOLS_DIR}/serialization"
1920
fi
2021

2122
# NOTE: Will be removed when tosa-tools is installed via pypi
2223
python -m pip install pybind11==2.10.4
2324
CMAKE_POLICY_VERSION_MINIMUM=3.5 BUILD_PYBIND=1 \
2425
python -m pip install --no-dependencies \
25-
"${TOSA_TOOLS_DIR}"
26+
"${TOSA_SERIALIZATION_DIR}"
2627
python -c "import tosa_serializer"
2728
fi
2829

.claude/skills/building/SKILL.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,17 @@ conda activate executorch
2323

2424
**Path B — no conda (fall back to venv):**
2525
```bash
26-
# Find a compatible Python (3.10–3.14).
27-
python3.12 -m venv .executorch-venv # or python3.11, python3.10, python3.13, python3.14
26+
# Find a compatible Python (3.10–3.13). On macOS with only Homebrew Python 3.14+,
27+
# install a compatible version first: brew install python@3.12
28+
python3.12 -m venv .executorch-venv # or python3.11, python3.10, python3.13
2829
source .executorch-venv/bin/activate
2930
pip install --upgrade pip
3031
```
3132

3233
**Then verify (either path):**
3334

3435
Run `python --version` and `cmake --version`. Fix automatically:
35-
- **Python not 3.10–3.14**: recreate the env with a correct Python version.
36+
- **Python not 3.10–3.13**: recreate the env with a correct Python version.
3637
- **cmake missing or < 3.24**: run `pip install 'cmake>=3.24'` inside the env.
3738
- **cmake >= 4.0**: works in practice, no action needed.
3839

.github/workflows/add-unanswered-to-project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
6464
// List of organization logins (lowercased) to exclude members of
6565
const excludedOrgs = new Set([
66-
"meta", "facebook", "pytorch", "arm", "apple", "qualcomm", "nxp", "mediatek", "cadence", "intel", "samsung", "arm ltd.",
66+
"meta", "facebook", "pytorch", "arm", "apple", "qualcomm", "nxp", "mediatek", "cadence", "intel", "samsung",
6767
"@meta", "@facebook", "@pytorch", "@arm", "@apple", "@qualcomm", "@nxp", "@mediatek", "@cadence", "@intel", "@samsung"
6868
]);
6969

.github/workflows/build-wheels-aarch64-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
test-infra-ref: main
3131
with-cuda: disabled
3232
with-rocm: disabled
33-
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
33+
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
3434

3535
build:
3636
needs: generate-matrix

.github/workflows/build-wheels-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
test-infra-ref: main
3131
with-cuda: disabled
3232
with-rocm: disabled
33-
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
33+
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
3434

3535
build:
3636
needs: generate-matrix

.github/workflows/build-wheels-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
test-infra-ref: main
3131
with-cuda: disabled
3232
with-rocm: disabled
33-
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
33+
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
3434

3535
build:
3636
needs: generate-matrix

.github/workflows/build-wheels-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
test-infra-ref: main
3434
with-cuda: disabled
3535
with-rocm: disabled
36-
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
36+
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
3737

3838
build:
3939
needs: generate-matrix

.github/workflows/cuda-perf.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,6 @@ jobs:
144144
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
145145
script: |
146146
set -eux
147-
148-
# OSDC mounts HF_HOME read-only at /mnt/hf_cache; redirect to a writable dir
149-
# (RUNNER_TEMP, or /tmp when RUNNER_TEMP isn't writable inside the container).
150-
export HF_HOME="${RUNNER_TEMP:-/tmp}/hf_cache"
151-
mkdir -p "${HF_HOME}" 2>/dev/null || export HF_HOME=/tmp/hf_cache
152-
mkdir -p "${HF_HOME}"
153-
154147
echo "::group::Setup ExecuTorch"
155148
# OSDC runners can't reach the public PyPI CDN that download.pytorch.org's
156149
# transitive deps resolve to. Pre-install torch's pure-python deps from the
@@ -167,7 +160,8 @@ jobs:
167160
168161
echo "::group::Setup Huggingface"
169162
pip install -U "huggingface_hub[cli]>=1.2.1,<2.0" accelerate "optimum~=2.0.0" "transformers==5.0.0rc1"
170-
export HF_TOKEN="$(printf '%s' "$SECRET_EXECUTORCH_HF_TOKEN" | tr -d '\r\n')"
163+
HF_AUTH_TOKEN="$(printf '%s' "$SECRET_EXECUTORCH_HF_TOKEN" | tr -d '\r\n')"
164+
hf auth login --token "$HF_AUTH_TOKEN"
171165
OPTIMUM_ET_VERSION=$(cat .ci/docker/ci_commit_pins/optimum-executorch.txt)
172166
pip install --no-deps git+https://github.com/huggingface/optimum-executorch.git@${OPTIMUM_ET_VERSION}
173167
echo "::endgroup::"
@@ -225,13 +219,6 @@ jobs:
225219
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
226220
script: |
227221
set -eux
228-
229-
# OSDC mounts HF_HOME read-only at /mnt/hf_cache; redirect to a writable dir
230-
# (RUNNER_TEMP, or /tmp when RUNNER_TEMP isn't writable inside the container).
231-
export HF_HOME="${RUNNER_TEMP:-/tmp}/hf_cache"
232-
mkdir -p "${HF_HOME}" 2>/dev/null || export HF_HOME=/tmp/hf_cache
233-
mkdir -p "${HF_HOME}"
234-
235222
echo "::group::Setup environment"
236223
# OSDC runners can't reach the public PyPI CDN that download.pytorch.org's
237224
# transitive deps resolve to. Pre-install torch's pure-python deps from the

.github/workflows/cuda-windows.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,6 @@ jobs:
9999
script: |
100100
set -eux
101101
102-
# OSDC mounts HF_HOME read-only at /mnt/hf_cache; redirect to a writable dir
103-
# (RUNNER_TEMP, or /tmp when RUNNER_TEMP isn't writable inside the container).
104-
export HF_HOME="${RUNNER_TEMP:-/tmp}/hf_cache"
105-
mkdir -p "${HF_HOME}" 2>/dev/null || export HF_HOME=/tmp/hf_cache
106-
mkdir -p "${HF_HOME}"
107-
108102
echo "::group::Fix libstdc++ GLIBCXX version"
109103
# The executorch pybindings require GLIBCXX_3.4.30 which conda's libstdc++ doesn't have.
110104
# Replace conda's libstdc++ with the system version to fix ImportError.
@@ -132,7 +126,8 @@ jobs:
132126
if [ "${{ matrix.model_name }}" != "dinov2-small-imagenet1k-1-layer" ]; then
133127
echo "::group::Setup Huggingface"
134128
pip install -U "huggingface_hub[cli]>=1.2.1,<2.0" accelerate "optimum~=2.0.0" "transformers==5.0.0rc1"
135-
export HF_TOKEN="$(printf '%s' "$SECRET_EXECUTORCH_HF_TOKEN" | tr -d '\r\n')"
129+
HF_AUTH_TOKEN="$(printf '%s' "$SECRET_EXECUTORCH_HF_TOKEN" | tr -d '\r\n')"
130+
hf auth login --token "$HF_AUTH_TOKEN"
136131
OPTIMUM_ET_VERSION=$(cat .ci/docker/ci_commit_pins/optimum-executorch.txt)
137132
pip install --no-deps git+https://github.com/huggingface/optimum-executorch.git@${OPTIMUM_ET_VERSION}
138133
echo "::endgroup::"

0 commit comments

Comments
 (0)