-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcmsis-executorch-simple.csolution.yml
More file actions
65 lines (60 loc) · 2.26 KB
/
Copy pathcmsis-executorch-simple.csolution.yml
File metadata and controls
65 lines (60 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Copyright 2026 Arm Limited and/or its affiliates.
# SPDX-License-Identifier: Apache-2.0
#
# A minimal ExecuTorch-on-Ethos-U85 example for the Corstone-320 (SSE-320) FVP.
# The model is exported from PyTorch in a venv (no Docker) and converted to a
# .pte as a build step. The `mlops:` node makes CMSIS-Toolbox emit
# `cmsis-executorch-simple.cbuild-mlops.yml`, which the export script consumes
# to drive Vela -- see model/export_model.py.
solution:
created-for: CMSIS-Toolbox@2.14.1
cdefault:
compiler: AC6
packs:
# Pinned exactly: the pack's C++ runtime and the Python exporter pinned in
# requirements-executorch.txt must be the same ExecuTorch version, or the
# .pte fails to load. `cbuild --packs` fetches it from the public index.
- pack: PyTorch::ExecuTorch@1.4.0
- pack: ARM::CMSIS
- pack: ARM::CMSIS-NN
- pack: ARM::CMSIS-Compiler
- pack: ARM::Cortex_DFP
target-types:
# Corstone-320 with an Ethos-U85 NPU, simulated on the Arm FVP.
- type: SSE-320-U85
board: SSE-320
device: SSE-320-FVP
variables:
- Board-Layer: $SolutionDir()$/board/Corstone-320/Board-U85.clayer.yml
- AI-Layer: $SolutionDir()$/ai_layer/ai_layer.clayer.yml
target-set:
- set:
images:
- project-context: cmsis-executorch-simple.Debug
debugger:
name: Arm-FVP
model: FVP_Corstone_SSE-320
config-file: board/Corstone-320/fvp_config.txt
args: "--simlimit 60 "
build-types:
- type: Debug
debug: on
optimize: debug
projects:
- project: ./cmsis-executorch-simple.cproject.yml
# MLOps information: exported to cmsis-executorch-simple.cbuild-mlops.yml when
# building with `cbuild ... --active SSE-320-U85`. Retarget the NPU here and
# the export script (model/export_model.py) picks it up automatically.
# https://open-cmsis-pack.github.io/cmsis-toolbox/build-overview/#mlops-information
mlops:
description: TinyCNN int8 image classifier for Ethos-U85
npu:
type: Ethos-U85
vela:
system: Ethos_U85_SYS_DRAM_Mid # system-config from the Vela config
memory: Shared_Sram # memory-mode from the Vela config
model:
clayer: $AI-Layer$
name: TinyCNN
simulator:
target: SSE-320-U85