Stay organized with collections Save and categorize content based on your preferences.
Frequently Asked Questions - Cloud TPUThis document contains a list of frequently asked questions about Cloud TPUs. It is broken up into sections:
Run sudo lsof -w /dev/accel*
on the Cloud TPU VM to print the process ID and other information about the process using the TPU.
For more information, see Add a persistent disk to a TPU VM
What storage options are supported/recommended for training with TPU VM?For more information, see Cloud TPU storage options.
JAX FAQs How do I know if the TPU is being used by my program?There are a few ways to double check JAX is using the TPU:
Use the jax.devices()
function. For example:
assert jax.devices()[0].platform == 'tpu'
Profile your program and verify the profile contains TPU operations. For more information, see Profiling JAX programs
For more information, see JAX FAQ
Pytorch FAQs How do I know if the TPU is being used by my program?You can run following python commands:
>>> import torch_xla.core.xla_model as xm
>>> xm.get_xla_supported_devices(devkind="TPU")
And verify if you can see any TPU devices.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-02 UTC.
[[["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 2025-07-02 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4