File tree Expand file tree Collapse file tree
ML-Frameworks/pytorch-aarch64 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6666 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6767
6868 - name : Run smoke tests
69- run : docker run --rm toolsolutions-pytorch:latest ./test.sh
69+ run : docker run --rm toolsolutions-pytorch:latest ./test-examples.sh
70+
71+ - name : Run unit tests
72+ run : docker run --rm toolsolutions-pytorch:latest ./run_unit_tests.sh
7073
7174 # This job adds a check named "Precommit-status" that represents overall
7275 # workflow status and can be used in branch rulesets
Original file line number Diff line number Diff line change 11ComputeLibrary /
22pytorch /
3+ ! pytorch /test
4+ ! pytorch /test /**
5+ ! pytorch /.ci /docker /requirements-ci.txt
36* .log
47. * _build_container_id
Original file line number Diff line number Diff line change @@ -103,8 +103,9 @@ RUN pip install "$(basename "$TORCH_WHEEL")" --no-deps \
103103RUN pip install "$(basename " $TORCH_AO_WHEEL")" --no-deps \
104104 && rm "$(basename " $TORCH_AO_WHEEL")"
105105
106- # Setup Examples
106+ # Setup Examples and tests
107107COPY examples/ /home/$DOCKER_USER/
108+ COPY pytorch/test /home/$DOCKER_USER/pytorch/test
108109
109110# Move build into final image as a single layer.
110111FROM ${DOCKER_IMAGE_MIRROR}ubuntu:22.04
Original file line number Diff line number Diff line change 1+ #! /bin/bash -e
2+
3+ # *******************************************************************************
4+ # Copyright 2025 Arm Limited and affiliates.
5+ # SPDX-License-Identifier: Apache-2.0
6+ #
7+ # Licensed under the Apache License, Version 2.0 (the "License");
8+ # you may not use this file except in compliance with the License.
9+ # You may obtain a copy of the License at
10+ #
11+ # http://www.apache.org/licenses/LICENSE-2.0
12+ #
13+ # Unless required by applicable law or agreed to in writing, software
14+ # distributed under the License is distributed on an "AS IS" BASIS,
15+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+ # See the License for the specific language governing permissions and
17+ # limitations under the License.
18+ # *******************************************************************************
19+
20+ OMP_NUM_THREADS=16 python pytorch/test/test_mkldnn.py
21+ OMP_NUM_THREADS=16 python pytorch/test/test_transformers.py
Original file line number Diff line number Diff line change 3131
3232# Check an example with some of the flags from REAMDE.md > "General optimization
3333# guidelines" There is no verbatim example for this
34- LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libtcmalloc.so.4 IDEEP_CACHE_MATMUL_REORDERS=1 \
35- LRU_CACHE_CAPACITY=256 DNNL_DEFAULT_FPMATH_MODE=BF16 ${examples[0]}
34+ LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libtcmalloc.so.4 DNNL_DEFAULT_FPMATH_MODE=BF16 ${examples[0]}
Original file line number Diff line number Diff line change 44certifi == 2024.8.30
55charset-normalizer ~= 3.4.0
66datasets ~= 3.4.1
7+ expecttest == 0.3.0 # From unit tests
78filelock ~= 3.16.1
89fsspec == 2024.9.0
910huggingface_hub == 0.27.0
You can’t perform that action at this time.
0 commit comments