Skip to content

Commit 4c03eb2

Browse files
m-strzelczykglasnt
andauthored
feat(tpu): Updating TPU samples to use TPUv5e (#4028)
* feat(tpu): Updating TPU samples to use TPUv5e * Fixing test --------- Co-authored-by: Katie McLaughlin <[email protected]>
1 parent ac839ba commit 4c03eb2

10 files changed

+14
-14
lines changed

tpu/createStartupScriptVM.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ async function main(tpuClient) {
5050
// The accelerator type that specifies the version and size of the Cloud TPU you want to create.
5151
// For more information about supported accelerator types for each TPU version,
5252
// see https://cloud.google.com/tpu/docs/system-architecture-tpu-vm#versions.
53-
const tpuType = 'v2-8';
53+
const tpuType = 'v5litepod-4';
5454

5555
// Software version that specifies the version of the TPU runtime to install. For more information,
5656
// see https://cloud.google.com/tpu/docs/runtimes
57-
const tpuSoftwareVersion = 'tpu-vm-tf-2.17.0-pod-pjrt';
57+
const tpuSoftwareVersion = 'v2-tpuv5-litepod';
5858

5959
async function callCreateTpuVMStartupScript() {
6060
// Create a node

tpu/createTopologyVM.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async function main(tpuClient) {
5151

5252
// Software version that specifies the version of the TPU runtime to install. For more information,
5353
// see https://cloud.google.com/tpu/docs/runtimes
54-
const tpuSoftwareVersion = 'tpu-vm-tf-2.17.0-pod-pjrt';
54+
const tpuSoftwareVersion = 'v2-tpuv5-litepod';
5555

5656
// The version of the Cloud TPU you want to create.
5757
// Available options: TYPE_UNSPECIFIED = 0, V2 = 2, V3 = 4, V4 = 7

tpu/createVM.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ async function main(tpuClient) {
4949
// The accelerator type that specifies the version and size of the Cloud TPU you want to create.
5050
// For more information about supported accelerator types for each TPU version,
5151
// see https://cloud.google.com/tpu/docs/system-architecture-tpu-vm#versions.
52-
const tpuType = 'v2-8';
52+
const tpuType = 'v5litepod-4';
5353

5454
// Software version that specifies the version of the TPU runtime to install. For more information,
5555
// see https://cloud.google.com/tpu/docs/runtimes
56-
const tpuSoftwareVersion = 'tpu-vm-tf-2.14.1';
56+
const tpuSoftwareVersion = 'v2-tpuv5-litepod';
5757

5858
async function callCreateTpuVM() {
5959
// Create a node

tpu/queuedResources/createQueuedResource.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ async function main(tpuClient) {
4949
// The zone in which to create the node.
5050
// For more information about supported TPU types for specific zones,
5151
// see https://cloud.google.com/tpu/docs/regions-zones
52-
const zone = `${region}-f`;
52+
const zone = `${region}-a`;
5353

5454
// The accelerator type that specifies the version and size of the node you want to create.
5555
// For more information about supported accelerator types for each TPU version,
5656
// see https://cloud.google.com/tpu/docs/system-architecture-tpu-vm#versions.
57-
const tpuType = 'v2-8';
57+
const tpuType = 'v5litepod-4';
5858

5959
// Software version that specifies the version of the node runtime to install. For more information,
6060
// see https://cloud.google.com/tpu/docs/runtimes
61-
const tpuSoftwareVersion = 'tpu-vm-tf-2.14.1';
61+
const tpuSoftwareVersion = 'v2-tpuv5-litepod';
6262

6363
async function callCreateQueuedResource() {
6464
// Create a node

tpu/queuedResources/deleteQueuedResource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function main(tpuClient) {
3636
const queuedResourceName = 'queued-resource-1';
3737

3838
// The zone of your queued resource.
39-
const zone = 'us-central1-f';
39+
const zone = 'us-central1-a';
4040

4141
async function callDeleteTpuVM(nodeName) {
4242
const request = {

tpu/queuedResources/forceDeleteQueuedResource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function main(tpuClient) {
3636
const queuedResourceName = 'queued-resource-1';
3737

3838
// The zone of your queued resource.
39-
const zone = 'us-central1-f';
39+
const zone = 'us-central1-a';
4040

4141
async function callForceDeleteQueuedResource() {
4242
const request = {

tpu/queuedResources/getQueuedResource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function main(tpuClient) {
3636
const queuedResourceName = 'queued-resource-1';
3737

3838
// The zone of your queued resource.
39-
const zone = 'us-central1-f';
39+
const zone = 'us-central1-a';
4040

4141
async function callGetQueuedResource() {
4242
const request = {

tpu/queuedResources/getQueuedResourcesList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async function main(tpuClient) {
3333
const projectId = await tpuClient.getProjectId();
3434

3535
// The zone from which the Queued Resources are retrived.
36-
const zone = 'us-central1-f';
36+
const zone = 'us-central1-a';
3737

3838
async function callGetQueuedResourcesList() {
3939
const request = {

tpu/test/forceDeleteQueuedResource.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const forceDeleteQueuedResource = require('../queuedResources/forceDeleteQueuedR
2323

2424
describe('TPU queued resource force deletion', async () => {
2525
const queuedResourceName = 'queued-resource-1';
26-
const zone = 'us-central1-f';
26+
const zone = 'us-central1-a';
2727
const projectId = 'project_id';
2828
let tpuClientMock;
2929

tpu/test/queuedResource.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const deleteQueuedResource = require('../queuedResources/deleteQueuedResource.js
2727
describe('TPU queued resource', () => {
2828
const queuedResourceName = 'queued-resource-1';
2929
const nodeName = 'node-name-1';
30-
const zone = 'us-central1-f';
30+
const zone = 'us-central1-a';
3131
const projectId = 'project_id';
3232
let tpuClientMock;
3333

0 commit comments

Comments
 (0)