MCPcopy Create free account
hub / github.com/apple/axlearn / AcceleratorConfig

Class AcceleratorConfig

axlearn/cloud/common/utils.py:376–388  ·  view source on GitHub ↗

Configures job resources, e.g. TPU or GPU. Attributes: instance_type: Instance type, e.g. tpu-v4-8. The format of instance type is ` - `. As an example, a list of accelerator types and user facing names for GCP can be found in `a

Source from the content-addressed store, hash-verified

374
375@config_class
376class AcceleratorConfig(ConfigBase):
377 """Configures job resources, e.g. TPU or GPU.
378
379 Attributes:
380 instance_type: Instance type, e.g. tpu-v4-8. The format of instance type is
381 `<accelerator_type>-<user_facing_name>`. As an example, a list of accelerator types and
382 user facing names for GCP can be found in `axlearn.cloud.gcp.system_characteristics`.
383 num_replicas: Number of replicas, e.g. TPU slices.
384 """
385
386 instance_type: Required[str] = REQUIRED
387 num_replicas: int = 1
388 topology: Optional[str] = None
389
390
391def accelerator_flags(flag_values: flags.FlagValues, **kwargs):

Calls

no outgoing calls