Skip to content

Commit 89645ca

Browse files
authored
Merge branch 'main' into tinyml-review
2 parents c84a666 + 30cabba commit 89645ca

File tree

55 files changed

+265
-220
lines changed

Some content is hidden

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

55 files changed

+265
-220
lines changed

.wordlist.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3558,4 +3558,17 @@ threadCount
35583558
threadNum
35593559
useAPL
35603560
vvenc
3561-
workspaces
3561+
workspaces
3562+
ETDump
3563+
ETRecord
3564+
FAISS
3565+
IVI
3566+
PDFs
3567+
Powertrain
3568+
SpinTheCubeInGDI
3569+
TaaS
3570+
cloudsdk
3571+
highcpu
3572+
proj
3573+
sln
3574+
uploader

content/install-guides/cmake.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This article provides quick instructions to install CMake for Arm Linux distribu
3434

3535
### How do I download and install CMake for Windows on Arm?
3636

37-
Confirm you are using a Windows on Arm device such as Windows Dev Kit 2023 or a laptop such as Lenovo ThinkPad X13s or Surface Pro 9 with 5G.
37+
Confirm you are using a Windows on Arm device such as the Lenovo ThinkPad X13s or Surface Pro 9 with 5G.
3838

3939
### How do I download and install CMake for Arm Linux distributions?
4040

content/install-guides/windows-perf-vs-extension.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ The WindowsPerf GUI extension is composed of several key features, each designed
4141
- **Output Logging**: All commands executed through the GUI are logged, ensuring transparency and supporting performance analysis.
4242
- **Sampling UI**: Customize your sampling experience by selecting events, setting frequency and duration, choosing programs for sampling, and comprehensively analyzing results. See screenshot below.
4343

44-
![Sampling preview #center](../_images/wperf-vs-extension-sampling-preview.png "Sampling settings UI Overview")
44+
![Sampling preview #center](/install_guides/_images/wperf-vs-extension-sampling-preview.png "Sampling settings UI Overview")
4545

4646

4747
- **Counting Settings UI**: Build a `wperf stat` command from scratch using the configuration interface, then view the output in the IDE or open it with Windows Performance Analyzer (WPA). See screenshot below.
4848

4949

50-
![Counting preview #center](../_images/wperf-vs-extension-counting-preview.png "Counting settings UI Overview")
50+
![Counting preview #center](/install_guides/_images/wperf-vs-extension-counting-preview.png "Counting settings UI Overview")
5151

5252
## Before you begin
5353

@@ -69,7 +69,7 @@ To install the WindowsPerf Visual Studio Extension from Visual Studio:
6969
4. Click on the search bar (Ctrl+L) and type `WindowsPerf`.
7070
5. Click on the **Install** button and restart Visual Studio.
7171

72-
![WindowsPerf install page #center](../_images/wperf-vs-extension-install-page.png)
72+
![WindowsPerf install page #center](/install_guides/_images/wperf-vs-extension-install-page.png)
7373

7474
### Installation from GitHub
7575

content/learning-paths/embedded-and-microcontrollers/introduction-to-tinyml-on-arm/Overview-1.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ weight: 2
66
layout: learningpathall
77
---
88

9-
This Learning Path is about TinyML. It serves as a starting point for learning how cutting-edge AI technologies may be put on even the smallest of devices, making Edge AI more accessible and efficient. You will learn how to setup on your host machine and target device to facilitate compilation and ensure smooth integration across all devices.
9+
This Learning Path is about TinyML. It serves as a starting point for learning how cutting-edge AI technologies may be used on even the smallest devices, making Edge AI more accessible and efficient. You will learn how to set up your host machine and target device to facilitate compilation and ensure smooth integration across devices.
1010

1111
In this section, you get an overview of the domain with real-life use-cases and available devices.
1212

1313
## Overview
14-
TinyML represents a significant shift in machine learning deployment. Unlike traditional machine learning, which typically depends on cloud-based servers or high-powered hardware, TinyML is tailored to function on devices with limited resources, constrained memory, low power, and less processing capabilities. TinyML has gained popularity because it enables AI applications to operate in real-time, directly on the device, with minimal latency, enhanced privacy, and the ability to work offline. This shift opens up new possibilities for creating smarter and more efficient embedded systems.
14+
TinyML represents a significant shift in machine learning deployment. Unlike traditional machine learning, which typically depends on cloud-based servers or high-performance hardware, TinyML is tailored to function on devices with limited resources, constrained memory, low power, and less processing capabilities. TinyML has gained popularity because it enables AI applications to operate in real-time, directly on the device, with minimal latency, enhanced privacy, and the ability to work offline. This shift opens up new possibilities for creating smarter and more efficient embedded systems.
1515

1616
### Benefits and applications
1717

@@ -42,7 +42,7 @@ TinyML is being deployed across multiple industries, enhancing everyday experien
4242

4343
### Examples of Arm-based devices
4444

45-
There are many Arm-based off-the-shelf devices you can use for TinyML projects. Some of them are listed below, but the list is not exhaustive.
45+
There are many Arm-based devices you can use for TinyML projects. Some of them are listed below, but the list is not exhaustive.
4646

4747
#### Raspberry Pi 4 and 5
4848

@@ -64,6 +64,6 @@ The Arduino Nano, equipped with a suite of sensors, supports TinyML and is ideal
6464

6565
In addition to hardware, there are software platforms that can help you build TinyML applications.
6666

67-
Edge Impulse platform offers a suite of tools for developers to build and deploy TinyML applications on Arm-based devices. It supports devices like Raspberry Pi, Arduino, and STMicroelectronics boards.
67+
Edge Impulse offers a suite of tools for developers to build and deploy TinyML applications on Arm-based devices. It supports devices like Raspberry Pi, Arduino, and STMicroelectronics boards.
6868

6969
Now that you have an overview of the subject, move on to the next section where you will set up an environment on your host machine.

content/learning-paths/embedded-and-microcontrollers/introduction-to-tinyml-on-arm/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ learning_objectives:
1818
prerequisites:
1919
- Basic knowledge of machine learning concepts.
2020
- A Linux host machine or VM running Ubuntu 22.04 or higher.
21-
- A [Grove Vision AI Module](https://wiki.seeedstudio.com/Grove-Vision-AI-Module/) **or** an Arm license to run the Corstone-300 Fixed Virtual Platform (FVP).
21+
- A [Grove Vision AI Module](https://wiki.seeedstudio.com/Grove-Vision-AI-Module/) or an Arm license to run the Corstone-300 Fixed Virtual Platform (FVP).
2222

2323

2424
author_primary: Dominica Abena O. Amanfo

content/learning-paths/embedded-and-microcontrollers/introduction-to-tinyml-on-arm/_next-steps.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ further_reading:
99
title: TinyML Brings AI to Smallest Arm Devices
1010
link: https://newsroom.arm.com/blog/tinyml
1111
type: blog
12+
- resource:
13+
title: Arm Compiler for Embedded
14+
link: https://developer.arm.com/Tools%20and%20Software/Arm%20Compiler%20for%20Embedded
15+
type: documentation
16+
- resource:
17+
title: Arm GNU Toolchain
18+
link: https://developer.arm.com/Tools%20and%20Software/GNU%20Toolchain
19+
type: documentation
1220

1321

1422

content/learning-paths/embedded-and-microcontrollers/introduction-to-tinyml-on-arm/build-model-8.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
# User change
3-
title: "Build a Simple PyTorch Model"
3+
title: "Build a simple PyTorch model"
44

55
weight: 7 # 1 is first, 2 is second, etc.
66

@@ -10,7 +10,7 @@ layout: "learningpathall"
1010

1111
## Define a small neural network using Python
1212

13-
With our environment ready, you can create a simple program to test the setup.
13+
With the development environment ready, you can create a simple PyTorch model to test the setup.
1414

1515
This example defines a small feedforward neural network for a classification task. The model consists of 2 linear layers with ReLU activation in between.
1616

content/learning-paths/embedded-and-microcontrollers/introduction-to-tinyml-on-arm/env-setup-5.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ weight: 3
88
layout: "learningpathall"
99
---
1010

11-
In this section, you will prepare a development environment to compile the model. These instructions have been tested on Ubuntu 22.04, 24.04 and on Windows Subsystem for Linux (WSL).
11+
In this section, you will prepare a development environment to compile a machine learning model. These instructions have been tested on Ubuntu 22.04, 24.04 and on Windows Subsystem for Linux (WSL).
1212

1313
## Install dependencies
1414

@@ -27,7 +27,7 @@ Create a Python virtual environment using `python venv`.
2727
python3 -m venv $HOME/executorch-venv
2828
source $HOME/executorch-venv/bin/activate
2929
```
30-
The prompt of your terminal now has (executorch) as a prefix to indicate the virtual environment is active.
30+
The prompt of your terminal now has `(executorch)` as a prefix to indicate the virtual environment is active.
3131

3232

3333
## Install Executorch
@@ -40,11 +40,11 @@ git clone https://github.com/pytorch/executorch.git
4040
cd executorch
4141
```
4242

43-
Run a few commands to set up the ExecuTorch internal dependencies.
43+
Run the commands below to set up the ExecuTorch internal dependencies.
44+
4445
```bash
4546
git submodule sync
4647
git submodule update --init
47-
4848
./install_requirements.sh
4949
./install_executorch.sh
5050
```
@@ -70,6 +70,8 @@ executorch 0.6.0a0+3eea1f1
7070

7171
## Next Steps
7272

73-
If you don't have the Grove AI vision board, use the Corstone-300 FVP proceed to [Environment Setup Corstone-300 FVP](/learning-paths/microcontrollers/introduction-to-tinyml-on-arm/env-setup-6-fvp/)
73+
Your next steps depends on the hardware you have.
74+
75+
If you have the Grove Vision AI Module proceed to [Set up the Grove Vision AI Module V2](/learning-paths/embedded-and-microcontrollers/introduction-to-tinyml-on-arm/setup-7-grove/).
7476

75-
If you have the Grove board proceed to [Setup on Grove - Vision AI Module V2](/learning-paths/embedded-and-microcontrollers/introduction-to-tinyml-on-arm/setup-7-grove/)
77+
If you don't have the Grove Vision AI Module, you can use the Corstone-300 FVP instead, proceed to [Set up the Corstone-300 FVP](/learning-paths/microcontrollers/introduction-to-tinyml-on-arm/env-setup-6-fvp/).

content/learning-paths/embedded-and-microcontrollers/introduction-to-tinyml-on-arm/env-setup-6-FVP.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ Test that the setup was successful by running the `run.sh` script for Ethos-U85,
2929
./examples/arm/run.sh --target=ethos-u85-256
3030
```
3131

32-
You will see a number of examples run on the FVP. This means you can proceed to the next section [Build a Simple PyTorch Model](/learning-paths/embedded-and-microcontrollers/introduction-to-tinyml-on-arm/build-model-8/) to test your environment setup.
32+
You will see a number of examples run on the FVP.
33+
34+
This confirms the installation, and you can proceed to the next section [Build a Simple PyTorch Model](/learning-paths/embedded-and-microcontrollers/introduction-to-tinyml-on-arm/build-model-8/).

content/learning-paths/embedded-and-microcontrollers/introduction-to-tinyml-on-arm/setup-7-Grove.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,16 @@ weight: 6 # 1 is first, 2 is second, etc.
88
layout: "learningpathall"
99
---
1010
## Before you begin
11-
Only follow this part of the tutorial if you have the board. Due to its constrained environment, we'll focus on lightweight, optimized tools and models (which will be introduced in the next learning path).
1211

12+
This section requires the Grove Vision AI Module. Due to its constrained environment, we'll focus on lightweight, optimized tools and models.
1313

1414
### Compilers
1515

16-
The examples can be built with [Arm Compiler for Embedded](https://developer.arm.com/Tools%20and%20Software/Arm%20Compiler%20for%20Embedded) or [Arm GNU Toolchain](https://developer.arm.com/Tools%20and%20Software/GNU%20Toolchain).
16+
The examples can be built with Arm Compiler for Embedded or Arm GNU Toolchain.
1717

18-
19-
Use the install guides to install the compilers on your **host machine**:
18+
Use the install guides to install each compiler on your host machine:
2019
- [Arm Compiler for Embedded](/install-guides/armclang/)
21-
- [Arm GNU Toolchain](/install-guides/gcc/arm-gnu)
22-
20+
- [Arm GNU Toolchain](/install-guides/gcc/arm-gnu/)
2321

2422
## Board Setup
2523

@@ -30,7 +28,6 @@ Hardware overview : [Image credits](https://wiki.seeedstudio.com/grove_vision_ai
3028
1. Download and extract the latest Edge Impulse firmware
3129
Grove Vision V2 [Edge impulse Firmware](https://cdn.edgeimpulse.com/firmware/seeed-grove-vision-ai-module-v2.zip).
3230

33-
3431
2. Connect the Grove - Vision AI Module V2 to your computer using the USB-C cable.
3532

3633
![Board connection](Connect.png)
@@ -39,12 +36,10 @@ Grove Vision V2 [Edge impulse Firmware](https://cdn.edgeimpulse.com/firmware/see
3936
Ensure the board is properly connected and recognized by your computer.
4037
{{% /notice %}}
4138

42-
3. In the extracted Edge Impulse firmware, locate and run the installation scripts to flash your device.
43-
44-
```console
45-
./flash_linux.sh
46-
```
39+
3. In the extracted Edge Impulse firmware, locate and run the `flash_linux.sh` script to flash your device.
4740

41+
```console
42+
./flash_linux.sh
43+
```
4844

49-
## Next Steps
50-
1. Go to [Build a Simple PyTorch Model](/learning-paths/embedded-and-microcontrollers/introduction-to-tinyml-on-arm/build-model-8/) to test your environment setup.
45+
Continue to the next page to build a simple PyTorch model.

0 commit comments

Comments
 (0)