You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/tensorflow-gcp/background.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Getting started with TensorFlow on Google Axion C4A (Arm Neoverse-V2)
2
+
title: Get started with TensorFlow on Google Axion C4A
3
3
4
4
weight: 2
5
5
@@ -22,8 +22,6 @@ With support for neural networks, natural language processing (NLP), and compute
22
22
23
23
To learn more, visit the [official TensorFlow website](https://www.tensorflow.org/).
24
24
25
-
## Recap and next steps
25
+
## Next steps
26
26
27
-
You’ve learned about Google Axion C4A Arm-based VMs and the fundamentals of TensorFlow. These technologies provide a powerful, cost-effective foundation for running machine learning workloads in the cloud.
28
-
29
-
You’re ready to provision your own Arm-based VM and start building and benchmarking TensorFlow models on Google Cloud. Great job—let’s get started!
27
+
Now that you understand Google Axion C4A Arm-based VMs and TensorFlow fundamentals, you can provision your own VM and start benchmarking machine learning workloads on Google Cloud.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/tensorflow-gcp/baseline.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Test TensorFlow baseline performance on Google Axion C4A Arm virtual machines
2
+
title: Test TensorFlow baseline performance on Google Axion C4A
3
3
weight: 5
4
4
5
5
### FIXED, DO NOT MODIFY
@@ -10,7 +10,7 @@ layout: learningpathall
10
10
11
11
This section helps you confirm that TensorFlow is installed and working correctly on your Google Axion C4A Arm virtual machine (VM). You'll run tests to check that your CPU can perform TensorFlow operations and basic neural network training.
12
12
13
-
###Check available devices
13
+
## Check available devices
14
14
15
15
List the hardware devices TensorFlow can use, such as CPU or GPU. On most VMs, only the CPU is available:
You have now verified that TensorFlow is working on your Arm-based VM and can perform both basic computations and neural network training. Great job—your environment is ready for benchmarking!
88
+
TensorFlow is working correctly on your Arm-based VM for both basic computations and neural network training. Your environment is ready for benchmarking.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/tensorflow-gcp/benchmarking.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,11 @@ layout: learningpathall
8
8
9
9
## Benchmark TensorFlow models
10
10
11
-
This section benchmarks multiple TensorFlow models—ResNet50, MobileNetV2, and InceptionV3—using dummy input data. You'll measure average inference time and throughput for each model running on the CPU of your Arm-based Google Cloud Platform (GCP) VM.
11
+
This section benchmarks multiple TensorFlow models - ResNet50, MobileNetV2, and InceptionV3 - using dummy input data. You'll measure average inference time and throughput for each model running on the CPU of your Arm-based Google Cloud Platform (GCP) VM.
12
12
13
13
TensorFlow Keras (`tf.keras`) is TensorFlow's high-level API for building, training, and benchmarking deep learning models. It provides access to predefined architectures such as ResNet, MobileNet, and Inception, making it easy to evaluate model performance on different hardware setups.
14
14
15
-
###Activate your virtual environment
15
+
## Activate your virtual environment
16
16
17
17
Enable your isolated Python environment where TensorFlow is installed:
These packages are likely already installed from previous steps. NumPy supports efficient numerical operations, while TensorFlow handles deep learning workloads.
35
35
36
-
###Create the benchmark script
36
+
## Create the benchmark script
37
37
38
38
Use an editor to create a Python script named `tf_cpu_benchmark.py` that will run TensorFlow model benchmarking tests.
39
39
@@ -74,7 +74,7 @@ for name, constructor in models.items():
74
74
75
75
This script creates model instances without pretrained weights for fair CPU testing, generates random image data for inference, includes a warm-up phase to stabilize model performance, and measures inference time over 50 runs to calculate average performance and throughput.
76
76
77
-
###Run the benchmark
77
+
## Run the benchmark
78
78
79
79
Execute the benchmarking script:
80
80
@@ -98,11 +98,11 @@ InceptionV3 average inference time per batch: 0.8971 seconds
98
98
InceptionV3 throughput: 35.67 images/sec
99
99
```
100
100
101
-
### Understand the results
101
+
##Interpret the results
102
102
103
103
The benchmark provides key performance metrics. Average inference time per batch measures how long it takes to process one batch of input data, with lower values indicating faster performance. Throughput shows how many images the model can process per second, with higher values indicating better efficiency.
104
104
105
-
###Performance summary
105
+
## Performance summary
106
106
107
107
The following table shows results from running the benchmark on a `c4a-standard-4` (4 vCPU, 16 GB memory) aarch64 VM in Google Cloud Platform (GCP) using SUSE Linux Enterprise Server (SLES):
108
108
@@ -112,6 +112,6 @@ The following table shows results from running the benchmark on a `c4a-standard-
112
112
| MobileNetV2 | 0.2909 | 110.02 |
113
113
| InceptionV3 | 0.8971 | 35.67 |
114
114
115
-
The results demonstrate strong performance for lightweight convolutional neural networks (CNNs) like MobileNetV2, achieving over 110 images/sec on the aarch64 platform. Medium-depth models like InceptionV3 maintain balanced performance between accuracy and latency. Heavier architectures such as ResNet50 show longer inference times but deliver stable throughput, confirming that TensorFlow workloads run efficiently on Arm processors and provide a cost-effective alternative for AI inference tasks.
115
+
The results show strong performance for lightweight CNNs like MobileNetV2, achieving over 110 images/sec on the aarch64 platform. Medium-depth models like InceptionV3 maintain balanced performance between accuracy and latency. Heavier architectures such as ResNet50 show longer inference times but deliver stable throughput.
116
116
117
-
You have successfully benchmarked TensorFlow models on your Arm-based VM. This demonstrates the efficiency and scalability of Arm platforms for deep learning workloads—great job!
117
+
You have successfully benchmarked TensorFlow models on your Arm-based VM. This demonstrates the efficiency and scalability of Arm platforms for deep learning workloads - great job!
0 commit comments