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
| 374 | |
| 375 | @config_class |
| 376 | class 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 | |
| 391 | def accelerator_flags(flag_values: flags.FlagValues, **kwargs): |
no outgoing calls