Skip to content

PlatformDevice

Source code in docs_src/capo_ecs/types/platform_device.py
class PlatformDevice(TypedDict, closed=True):
    id: "capo_ecs.types.string.String"
    """<p>The ID for the GPU or Neuron device on the container instance. For GPUs, the available GPU IDs can also be obtained on the container instance in the <code>/var/lib/ecs/gpu/nvidia_gpu_info.json</code> file. For Neuron devices, the ID corresponds to the device index (for example, <code>0</code> for <code>/dev/neuron0</code>).</p>"""
    type: "capo_ecs.types.platform_device_type.PlatformDeviceType"
    """<p>The type of device that's available on the container instance. The supported values are <code>GPU</code> and <code>NEURON_DEVICE</code>.</p>"""

id instance-attribute

id: String

The ID for the GPU or Neuron device on the container instance. For GPUs, the available GPU IDs can also be obtained on the container instance in the /var/lib/ecs/gpu/nvidia_gpu_info.json file. For Neuron devices, the ID corresponds to the device index (for example, 0 for /dev/neuron0).

type instance-attribute

The type of device that's available on the container instance. The supported values are GPU and NEURON_DEVICE.