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
6 changes: 6 additions & 0 deletions backends/arm/requirements-arm-ethos-u.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright 2025 Arm Limited and/or its affiliates.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

ethos-u-vela @ git+https://gitlab.arm.com/artificial-intelligence/ethos-u/ethos-u-vela@d37febc1715edf0d236c2ff555739a8a9aadcf9a
6 changes: 6 additions & 0 deletions backends/arm/requirements-arm-models-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright 2025 Arm Limited and/or its affiliates.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

diffusers[torch] == 0.33.1
9 changes: 9 additions & 0 deletions backends/arm/requirements-arm-tosa.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright 2025 Arm Limited and/or its affiliates.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

ml_dtypes == 0.5.1
flatbuffers == 24.3.25

tosa-tools @ git+https://git.gitlab.arm.com/tosa/tosa-reference-model.git@v2025.07.0
4 changes: 1 addition & 3 deletions backends/arm/scripts/install_models_for_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@
# LICENSE file in the root directory of this source tree.

set -e

# Install diffusers for Stable Diffusion model test
pip install "diffusers[torch]==0.33.1"
pip install -r backends/arm/requirements-arm-models-test.txt
34 changes: 0 additions & 34 deletions backends/arm/scripts/install_reference_model.sh

This file was deleted.

15 changes: 5 additions & 10 deletions examples/arm/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ else
echo "[main] Error: only x86-64 & aarch64/arm64 architecture is supported for now!"; exit 1;
fi

# Vela
vela_repo_url="https://gitlab.arm.com/artificial-intelligence/ethos-u/ethos-u-vela"
vela_rev="d37febc1715edf0d236c2ff555739a8a9aadcf9a"

# MLSDK dependencies
mlsdk_manifest_dir="ml-sdk-for-vulkan-manifest"
vulkan_sdk_bin_dir="${vulkan_sdk_base_dir}/${vulkan_sdk_version}/${ARCH}/bin"
Expand Down Expand Up @@ -377,8 +373,8 @@ function setup_toolchain() {
tar xf "${toolchain_dir}.tar.xz"
}

function setup_vela() {
pip install ethos-u-vela@git+${vela_repo_url}@${vela_rev}
function setup_ethos_u_tools() {
CMAKE_POLICY_VERSION_MINIMUM=3.5 BUILD_PYBIND=1 pip install --no-dependencies -r $et_dir/backends/arm/requirements-arm-ethos-u.txt
}

function prepend_env_in_setup_path() {
Expand Down Expand Up @@ -526,12 +522,11 @@ if [[ $is_script_sourced -eq 0 ]]; then
create_setup_path
fi

# Setup the tosa_reference_model
$et_dir/backends/arm/scripts/install_reference_model.sh ${root_dir}
# Setup the tosa_reference_model and dependencies
CMAKE_POLICY_VERSION_MINIMUM=3.5 BUILD_PYBIND=1 pip install --no-dependencies -r $et_dir/backends/arm/requirements-arm-tosa.txt

# Setup vela and patch in codegen fixes
if [[ "${enable_vela}" -eq 1 ]]; then
setup_vela
setup_ethos_u_tools
fi

echo "[main] Update path by running 'source ${setup_path_script}.sh'"
Expand Down
Loading