Stay organized with collections
Save and categorize content based on your preferences.
Preemptible TPUs
Preemptible TPUs cost much less than non-preemptible TPUs. The
Cloud TPU service might preempt (shut down) these TPUs at any
time, if it requires additional TPU resources.
Pricing for preemptible TPUs is significantly lower than for normal TPUs.
For details, see the pricing page. You are not
charged for TPUs if they are preempted in the first minute after you create
them.
Quota for preemptible TPUs is generally higher, and is separate from the quota
for normal TPUs. See the quota page.
Detecting if a TPU has been preempted
You use the following gcloud command to check whether the
Cloud TPU service has preempted your TPU:
List your available TPUs:
gcloudcomputetpustpu-vmlist
--zone=us-central1-b
The output of the command displays the details of the TPUs created in your
project. If a
TPU has been preempted, the status changes from READY to PREEMPTED.
Designing your machine learning application to run on preemptible TPUs
Make sure your application is resilient to restarts of the VM and TPU, by saving
model checkpoints regularly and by configuring your application to restore the
most recent checkpoint on restart.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-01 UTC."],[],[]]