Skip to content

Commit a26c72d

Browse files
committed
changed model to TinySentiment
1 parent 91d69be commit a26c72d

File tree

3 files changed

+275
-56
lines changed

3 files changed

+275
-56
lines changed

content/learning-paths/embedded-and-microcontrollers/training-inference-pytorch/_index.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
---
2-
title: Deploying DistilBERT on Arm - Training and Inference with PyTorch and ExecuTorch
2+
title: Deploy a Tiny Sentiment Classifier on Arm - Training and Inference with PyTorch and ExecuTorch
33

44
minutes_to_complete: 120
55

66
who_is_this_for: This topic is for machine learning engineers, embedded AI developers, and researchers interested in deploying TinyML models for NLP on Arm-based edge devices using PyTorch and ExecuTorch.
77

88
learning_objectives:
9-
- Fine-tune a DistilBERT model for sentiment analysis using PyTorch.
9+
- Train a custom CNN-based sentiment classifier for TinyML.
1010
- Optimize and convert the model using ExecuTorch for Arm-based edge devices.
1111
- Deploy and run inference on the Corstone-320 FVP and Raspberry Pi 5.
1212

13-
1413
prerequisites:
1514
- Basic knowledge of machine learning concepts.
1615
- It is advised to complete The Learning Path [Introduction to TinyML on Arm using PyTorch and ExecuTorch](/learning-paths/embedded-and-microcontrollers/introduction-to-tinyml-on-arm) before starting this learning path.
@@ -28,7 +27,7 @@ armips:
2827
- Cortex-A
2928
tools_software_languages:
3029
- tinyML
31-
- Transformers
30+
- CNN
3231
- PyTorch
3332
- ExecuTorch
3433
- Raspberry Pi

content/learning-paths/embedded-and-microcontrollers/training-inference-pytorch/env-setup-1.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ layout: learningpathall
77
---
88

99
## Overview
10-
#TODO: Add intro on Distil
10+
In this course, you will learn how to train and run inference using a Tiny Sentiment Classifier. You'll deploy the model on the Arm Corstone-320 FVP and optionally on a Raspberry Pi 5 for sentiment analysis. You'll gain hands-on experience with PyTorch, ExecuTorch, and Edge Impulse to bring AI-powered sentiment analysis to embedded systems.
11+
12+
We will train a lightweight convolutional neural network (CNN)-based sentiment classifier using synthetic text data. This model is optimized for small devices, using embedding layers and 1D convolutions for efficient text classification.
1113

12-
In this course, you will learn how to train and run inference using DistilBERT. You'll deploy the model on the Arm Corstone-320 FVP and optionally on a Raspberry Pi 5 for sentiment analysis.
1314

1415
## Environment Setup
1516
Setup your development environment for TinyML by following the first 3 chapters of the [Introduction to TinyML on Arm using PyTorch and ExecuTorch](/learning-paths/embedded-and-microcontrollers/introduction-to-tinyml-on-arm) Learning Path (LP).
@@ -25,8 +26,8 @@ The prompt of your terminal now has `(executorch)` as a prefix to indicate the v
2526
Run the commands below to install the dependencies.
2627

2728
```bash
28-
pip install transformers datasets torch
29+
pip install argparse json
2930
```
30-
You are now ready to fine-tune the model
31+
You are now ready to build the model
3132

3233

0 commit comments

Comments
 (0)