Skip to content

Commit 8791306

Browse files
committed
review Introduction to TinyML
1 parent 7f6ae9a commit 8791306

File tree

7 files changed

+42
-31
lines changed

7 files changed

+42
-31
lines changed

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ learning_objectives:
1414
- Understand the benefits of deploying AI models on Arm-based edge devices.
1515
- Select Arm-based devices for TinyML.
1616
- Install and configure a TinyML development environment.
17-
- Perform best practices for ensuring optimal performance on constrained edge devices.
17+
- Apply best practices for ensuring optimal performance on constrained edge devices.
1818

1919

2020
prerequisites:
2121
- Basic knowledge of machine learning concepts.
2222
- A Linux host machine or VM running Ubuntu 22.04 or higher.
23-
- 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).
23+
- 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).
2424

2525

2626
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,14 +1,14 @@
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

77
# Do not modify these elements
88
layout: "learningpathall"
99
---
1010

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

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

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
```
5050

@@ -59,6 +59,8 @@ pkill -f buck
5959

6060
## Next Steps
6161

62-
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/)
62+
Your next steps depends on the hardware you have.
63+
64+
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/).
6365

64-
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/)
66+
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: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,26 @@ layout: "learningpathall"
1010

1111
## Corstone-300 FVP Setup for ExecuTorch
1212

13-
Navigate to the Arm examples directory in the ExecuTorch repository.
13+
Navigate to the Arm examples directory in the ExecuTorch repository and configure the Fixed Virtual Platform (FVP).
14+
1415
```bash
1516
cd $HOME/executorch/examples/arm
1617
./setup.sh --i-agree-to-the-contained-eula
1718
```
1819

20+
Set the environment variables for the FVP.
21+
1922
```bash
2023
export FVP_PATH=${pwd}/ethos-u-scratch/FVP-corstone300/models/Linux64_GCC-9.3
2124
export PATH=$FVP_PATH:$PATH
2225
```
23-
Test that the setup was successful by running the `run.sh` script.
26+
27+
Confirm the installation was successful by running the `run.sh` script.
2428

2529
```bash
2630
./run.sh
2731
```
2832

29-
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.
33+
You will see a number of examples run on the FVP.
34+
35+
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)