gcloud_beta_compute_tpus_create (1)
NAME
- gcloud beta compute tpus create - create a new Cloud TPU
SYNOPSIS
-
gcloud beta compute tpus create (TPU : --zone=ZONE) --network=NETWORK --range=RANGE --version=VERSION [--accelerator-type=ACCELERATOR_TYPE; default="v2-8"] [--async] [--description=DESCRIPTION] [--preemptible] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) Create a new Cloud TPU.
POSITIONAL ARGUMENTS
-
-
- Tpu resource - The Cloud TPU you want to create. The arguments in this group can be used to specify the attributes of this resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways. To set the [project] attribute: provide the argument [tpu] on the command line with a fully specified name; provide the argument [--project] on the command line; set the property [core/project]. This must be specified.
-
- TPU
-
ID of the tpu or fully qualified identifier for the tpu. This positional must be
specified if any of the other arguments in this group are specified.
- --zone=ZONE
-
The compute/zone of the Cloud TPU.
If not specified, will use default compute/zone.
- Tpu resource - The Cloud TPU you want to create. The arguments in this group can be used to specify the attributes of this resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways. To set the [project] attribute: provide the argument [tpu] on the command line with a fully specified name; provide the argument [--project] on the command line; set the property [core/project]. This must be specified.
-
REQUIRED FLAGS
-
- --network=NETWORK
-
Specifies the network that this TPU will be a part of.
- --range=RANGE
-
CIDR Range for the TPU.
The IP range that the TPU will select an IP address from. Must be in CIDR notation and a /29 range, for example 192.168.0.0/29. Errors will occur if the CIDR range has already been used for a currently existing TPU, the CIDR range conflicts with any networks in the user's provided network, or the provided network is peered with another network that is using that CIDR range.
- --version=VERSION
-
TensorFlow version for the TPU, such as 1.6. For a list of available
TensorFlow versions please see www.tensorflow.org/versions
OPTIONAL FLAGS
-
- --accelerator-type=ACCELERATOR_TYPE; default="v2-8"
-
TPU accelerator type for the TPU. If not specified, this defaults to
v2-8.
For a list of available accelerator types run:
gcloud beta compute tpus accelerator-types list
- --async
-
Display information about the operation in progress, without waiting for the
operation to complete.
- --description=DESCRIPTION
-
Specifies a text description of the TPU.
- --preemptible
-
If provided, the TPU will be preemptible and time-limited. It may be preempted
to free up resources for standard TPUs, and will only be able to run for a
limited amount of time.
Preemptible TPUs cannot be restarted.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
API REFERENCE
This command uses the tpu/v1 API. The full documentation for this API can be found at: cloud.google.com/tpu
EXAMPLES
The following command creates a TPU with ID my-tpu and CIDR range 10.240.0.0/29 in the default user project, network and compute/region (with other defaults supplied by API):
-
$ gcloud beta compute tpus create my-tpu --range 10.240.0.0/29 \
--network default
The following command creates a TPU with ID my-tpu with explicit values for all required and optional parameters:
-
$ gcloud beta compute tpus create my-tpu \
--zone us-central1-a \
--range '10.240.0.0/29' \
--accelerator-type 'v2-8' \
--network my-tf-network \
--description 'My TF Node' \
--version '1.1'
NOTES
This command is currently in BETA and may change without notice. These variants are also available:
- $ gcloud compute tpus create $ gcloud alpha compute tpus create