Skip to content

Commit 0415b02

Browse files
Merge pull request #1489 from ArmDeveloperEcosystem/main
production publish
2 parents ea22949 + deda2e0 commit 0415b02

Some content is hidden

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

57 files changed

+1049
-708
lines changed

.wordlist.txt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3312,7 +3312,6 @@ WGSL
33123312
WPR
33133313
WebGL
33143314
WebGPU
3315-
WebGPU’s
33163315
Xperf
33173316
andc
33183317
andnot
@@ -3352,7 +3351,6 @@ LastWriteTime
33523351
LiteRT
33533352
OV
33543353
Seeed
3355-
WebGPU’s
33563354
WiseEye
33573355
Yolov
33583356
blp
@@ -3384,7 +3382,7 @@ Dsouza
33843382
FGCT
33853383
GCT
33863384
GCs
3387-
GCs
3385+
GC's
33883386
HNso
33893387
HeapRegionSize
33903388
HugePages
@@ -3400,7 +3398,6 @@ Preema
34003398
Roesch
34013399
Sourcefire
34023400
TPACKET
3403-
WebGPU’s
34043401
Whitepaper
34053402
YGCT
34063403
axion
@@ -3431,7 +3428,6 @@ EOF
34313428
EVCLI
34323429
EVidence
34333430
Evcli
3434-
GC’s
34353431
GenerateMatrix
34363432
ImageCapture
34373433
InputStream
@@ -3456,7 +3452,8 @@ TestOpenCV
34563452
TrustedFirmware
34573453
Veraison
34583454
WeatherForecast
3459-
WebGPU’s
3455+
weatherForecast
3456+
WebGPU's
34603457
Wiredtiger
34613458
androidml
34623459
ar
@@ -3510,4 +3507,5 @@ unutilized
35103507
vLLM
35113508
veraison
35123509
verifier
3513-
vllm
3510+
vllm
3511+
observables

content/install-guides/skopeo.md

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Skopeo
3-
draft: true
43
author_primary: Jason Andrews
54
minutes_to_complete: 10
65
official_docs: https://github.com/containers/skopeo
@@ -24,7 +23,7 @@ Skopeo is a command-line utility that performs various operations on container i
2423

2524
This article explains how to install Skopeo for Ubuntu on Arm.
2625

27-
Skopeo is available for Windows, macOS, and Linux and supports the Arm architecture. Refer to [Installing Skopeo](https://github.com/containers/skopeo/blob/main/install.md) for information about other operating systems and architectures.
26+
Skopeo is available for Windows, macOS, and Linux and supports the Arm architecture. See [Installing Skopeo](https://github.com/containers/skopeo/blob/main/install.md) for further information about other operating systems and architectures.
2827

2928
## What should I consider before installing Skopeo on Arm?
3029

@@ -56,13 +55,13 @@ Confirm the installation by checking the version:
5655
skopeo --version
5756
```
5857

59-
To see the help message:
58+
To see the help message use this command:
6059

6160
```bash
6261
skopeo --help
6362
```
6463

65-
The output is:
64+
The output that you will see should be:
6665

6766
```output
6867
Various operations with container images and container image registries
@@ -72,44 +71,44 @@ Usage:
7271
skopeo [command]
7372
7473
Available Commands:
75-
copy Copy an IMAGE-NAME from one location to another
76-
delete Delete image IMAGE-NAME
77-
generate-sigstore-key Generate a sigstore public/private key pair
78-
help Help about any command
79-
inspect Inspect image IMAGE-NAME
80-
list-tags List tags in the transport/repository specified by the SOURCE-IMAGE
81-
login Login to a container registry
82-
logout Logout of a container registry
83-
manifest-digest Compute a manifest digest of a file
84-
standalone-sign Create a signature using local files
85-
standalone-verify Verify a signature using local files
86-
sync Synchronize one or more images from one location to another
74+
copy Copy an IMAGE-NAME from one location to another.
75+
delete Delete image IMAGE-NAME.
76+
generate-sigstore-key Generate a sigstore public/private key pair.
77+
help Help about any command.
78+
inspect Inspect image IMAGE-NAME.
79+
list-tags List tags in the transport/repository specified by the SOURCE-IMAGE.
80+
login Log in to a container registry.
81+
logout Log out of a container registry.
82+
manifest-digest Compute a manifest digest of a file.
83+
standalone-sign Create a signature using local files.
84+
standalone-verify Verify a signature using local files.
85+
sync Synchronize one or more images from one location to another.
8786
8887
Flags:
89-
--command-timeout duration timeout for the command execution
90-
--debug enable debug output
91-
-h, --help help for skopeo
92-
--insecure-policy run the tool without any policy check
93-
--override-arch ARCH use ARCH instead of the architecture of the machine for choosing images
94-
--override-os OS use OS instead of the running OS for choosing images
95-
--override-variant VARIANT use VARIANT instead of the running architecture variant for choosing images
96-
--policy string Path to a trust policy file
97-
--registries.d DIR use registry configuration files in DIR (e.g. for container signature storage)
98-
--tmpdir string directory used to store temporary files
99-
-v, --version Version for Skopeo
88+
--command-timeout duration Timeout for the command execution.
89+
--debug Enable debug output.
90+
-h, --help Help for skopeo.
91+
--insecure-policy Run the tool without any policy check.
92+
--override-arch ARCH Use ARCH instead of the architecture of the machine for choosing images.
93+
--override-os OS Use OS instead of the running OS for choosing images.
94+
--override-variant VARIANT Use VARIANT instead of the running architecture variant for choosing images.
95+
--policy string Path to a trust policy file.
96+
--registries.d DIR Use registry configuration files in DIR (for example, for container signature storage).
97+
--tmpdir string Directory used to store temporary files.
98+
-v, --version Version for Skopeo.
10099
101100
Use "skopeo [command] --help" for more information about a command.
102101
```
103102

104103
## How do I get started with Skopeo?
105104

106-
Some commands to get you started with Skopeo are demonstrated below.
105+
You can use the commands listed below to get you started with Skopeo.
107106

108107
### How can I check if a container image supports Arm?
109108

110109
To find out if an image is multi-architecture, including Arm, you can inspect the image's manifest.
111110

112-
For example, to check if the dev container available for creating Arm Learning Paths supports the Arm architecture run:
111+
For example, to check if the dev container available for creating Arm Learning Paths supports the Arm architecture, run:
113112

114113
```bash
115114
skopeo inspect --raw docker://docker.io/armswdev/learn-dev-container:latest | jq '.manifests[] | select(.platform.architecture == "arm64")'
@@ -166,7 +165,7 @@ The output confirms that both `arm64` and `amd64` are supported architectures as
166165

167166
## What are some other uses for Skopeo?
168167

169-
Copy an image from a registry to a local directory. This command is similar to `docker pull` and will copy the image from the remote registry to your local directory.
168+
Copy an image from a registry to a local directory. This command is similar to `docker pull` and copies the image from the remote registry to your local directory.
170169

171170
```bash
172171
skopeo copy docker://docker.io/armswdev/uname:latest dir:./uname

content/learning-paths/cross-platform/pytorch-digit-classification-arch-training/_index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
2-
title: Create and train a PyTorch model for digit classification
2+
title: Create and train a PyTorch model for digit classification using the MNIST dataset
33

44
minutes_to_complete: 160
55

6-
who_is_this_for: This is an advanced topic for software developers interested in learning how to use PyTorch to create and train a feedforward neural network for digit classification. You will also learn how to use the trained model in an Android application. Finally, you will apply model optimizations.
6+
who_is_this_for: This is an advanced topic for software developers interested in learning how to use PyTorch to create and train a feedforward neural network for digit classification, and also software developers interested in learning how to use and apply optimizations to the trained model in an Android application.
77

88
learning_objectives:
99
- Prepare a PyTorch development environment.
1010
- Download and prepare the MNIST dataset.
11-
- Create a neural network architecture using PyTorch.
12-
- Train a neural network using PyTorch.
13-
- Create an Android app and loading the pre-trained model.
11+
- Create and train a neural network architecture using PyTorch.
12+
- Create an Android app and load the pre-trained model.
1413
- Prepare an input dataset.
1514
- Measure the inference time.
1615
- Optimize a neural network architecture using quantization and fusing.
17-
- Use an optimized model in the Android application.
16+
- Deploy an optimized model in an Android application.
1817

1918
prerequisites:
20-
- A computer that can run Python3, Visual Studio Code, and Android Studio. The OS can be Windows, Linux, or macOS.
19+
- A machine that can run Python3, Visual Studio Code, and Android Studio.
20+
- For the OS, you can use Windows, Linux, or macOS.
2121

2222

2323
author_primary: Dawid Borycki

content/learning-paths/cross-platform/pytorch-digit-classification-arch-training/_next-steps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# ================================================================================
55

66
next_step_guidance: >
7-
Proceed to Use Keras Core with TensorFlow, PyTorch, and JAX backends to continue exploring Machine Learning.
7+
To continue exploring Machine Learning, you can now learn about using Keras Core with TensorFlow, PyTorch, and JAX backends.
88
99
# 1-3 sentence recommendation outlining how the reader can generally keep learning about these topics, and a specific explanation of why the next step is being recommended.
1010

content/learning-paths/cross-platform/pytorch-digit-classification-arch-training/_review.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,31 @@ review:
1515
question: >
1616
Does the input layer of the model flatten the 28x28 pixel image into a 1D array of 784 elements?
1717
answers:
18-
- "Yes"
19-
- "No"
18+
- "Yes."
19+
- "No."
2020
correct_answer: 1
2121
explanation: >
2222
Yes, the model uses nn.Flatten() to reshape the 28x28 pixel image into a 1D array of 784 elements for processing by the fully connected layers.
2323
- questions:
2424
question: >
25-
Will the model make random predictions if it’s run before training?
25+
Will the model make random predictions if it is run before training?
2626
answers:
27-
- "Yes"
28-
- "No"
27+
- "Yes."
28+
- "No."
2929
correct_answer: 1
3030
explanation: >
31-
Yes, however in such the case the model will produce random outputs, as the network has not been trained to recognize any patterns from the data.
31+
Yes, however in this scenario the model will produce random outputs, as the network has not been trained to recognize any patterns from the data.
3232
- questions:
3333
question: >
34-
Which loss function was used to train the PyTorch model on the MNIST dataset?
34+
Which loss function did you use to train the PyTorch model on the MNIST dataset in this Learning Path?
3535
answers:
36-
- Mean Squared Error Loss
37-
- Cross Entropy Loss
38-
- Hinge Loss
36+
- Mean Squared Error Loss.
37+
- Cross-Entropy Loss.
38+
- Hinge Loss.
3939
- Binary Cross-Entropy Loss
4040
correct_answer: 2
4141
explanation: >
42-
Cross Entropy Loss was used to train the model because it is suitable for multi-class classification tasks like digit classification. It measures the difference between the predicted probabilities and the true class labels, helping the model learn to make accurate predictions.
42+
Cross-Entropy Loss was used to train the model as it is suitable for multi-class classification such as digit classification. It measures the difference between the predicted probabilities and the true class labels, helping the model to learn to make accurate predictions.
4343
4444
# ================================================================================
4545
# FIXED, DO NOT MODIFY

content/learning-paths/cross-platform/pytorch-digit-classification-arch-training/app.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,31 @@ weight: 10
77
layout: "learningpathall"
88
---
99

10-
You are now ready to run the Android application. You can use an emulator or a physical device.
11-
12-
The screenshots below show an emulator.
10+
You are now ready to run the Android application. The screenshots below show an emulator, but you can also use a physical device.
1311

1412
To run the app in Android Studio using an emulator, follow these steps:
1513

1614
1. Configure the Emulator:
17-
* Go to Tools > Device Manager (or click the Device Manager icon on the toolbar).
18-
* Click Create Device to set up a new virtual device (if you haven’t done so already).
19-
* Choose a device model, such as Pixel 4, and click Next.
20-
* Select a system image, such as Android 11, API level 30, and click Next.
21-
* Review the settings and click Finish to create the emulator.
15+
16+
* Go to **Tools** > **Device Manager**, or click the Device Manager icon on the toolbar.
17+
* Click **Create Device** to set up a new virtual device, if you haven’t done so already.
18+
* Choose a device model, such as the Pixel 4, and click **Next**.
19+
* Select a system image, such as Android 11, API level 30, and click **Next**.
20+
* Review the settings, and click **Finish** to create the emulator.
2221

2322
2. Run the App:
24-
* Make sure the emulator is selected in the device dropdown menu in the toolbar (next to the “Run” button).
25-
* Click the Run button (a green triangle). Android Studio will build the app, install it on the emulator, and launch it.
2623

27-
3. View the App on the Emulator: Once the app is installed, it will automatically open on the emulator screen, allowing you to interact with it as if it were running on a real device.
24+
* Make sure the emulator is selected in the device drop-down menu in the toolbar, next to the **Run** button.
25+
* Click the **Run** button, which is a green triangle. Android Studio builds the app, installs it on the emulator, and then launches it.
26+
27+
3. View the App on the Emulator:
28+
29+
* Once the app is installed, it automatically opens on the emulator screen, allowing you to interact with it as if it were running on a real device.
2830

29-
Once the application is started, click the Load Image button. It will load a randomly selected image. Then, click Run Inference to recognize the digit. The application will display the predicted label and the inference time as shown below:
31+
Once the application starts, click the **Load Image** button. It loads a randomly-selected image. Then, click **Run Inference** to recognize the digit. The application displays the predicted label and the inference time as shown below:
3032

31-
![img](Figures/05.png)
33+
![img alt-text#center](Figures/05.png "Figure 7. Digit Recognition 1")
3234

33-
![img](Figures/06.png)
35+
![img alt-text#center](Figures/06.png "Figure 8. Digit Recognition 2")
3436

35-
In the next step you will learn how to further optimize the model.
37+
In the next step of this Learning Path, you will learn how to further optimize the model.

0 commit comments

Comments
 (0)