Skip to content

kawsarahmd/google-cloud-tpu-experiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Cloud TPU Experiment Repository

Welcome to the Google Cloud TPU Experiment Repository. This repository is dedicated to experiments using JAX/Flax on Google Cloud TPUs, which leverage the exceptional processing power of TPUs to accelerate deep learning tasks.

Overview

This repository contains experiments conducted with the JAX/Flax library, chosen for its superior performance in a TPU environment. The experiments focus on demonstrating the speed and efficiency of JAX/Flax on TPUs compared to other environments.

TPU Restart Command Example

To restart your TPU VM, use the following bash command:

gcloud compute tpus tpu-vm stop tpu-vm-name --zone=us-central2-b && \
gcloud compute tpus tpu-vm start tpu-vm-name --zone=us-central2-b

TPU Memory Clean

If your script crashes unexpectedly and you need to clear the TPU memory, run the following Bash command:

sudo lsof $(ls /dev/accel*) | awk '{print $2}' | tail -n +2 | xargs sudo kill -9

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •