GpuAllocation

class oci.generative_ai.models.GpuAllocation(**kwargs)

Bases: object

GPU allocation details for an underlying capacity allocation.

Methods:

__init__(**kwargs)

Initializes a new GpuAllocation object with values from keyword arguments.

Attributes:

available_gpus

[Required] Gets the available_gpus of this GpuAllocation.

used_gpus

[Required] Gets the used_gpus of this GpuAllocation.

__init__(**kwargs)

Initializes a new GpuAllocation object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • used_gpus (int) – The value to assign to the used_gpus property of this GpuAllocation.

  • available_gpus (int) – The value to assign to the available_gpus property of this GpuAllocation.

property available_gpus

[Required] Gets the available_gpus of this GpuAllocation. The number of available GPUs in this allocation.

Returns

The available_gpus of this GpuAllocation.

Return type

int

property used_gpus

[Required] Gets the used_gpus of this GpuAllocation. The number of used GPUs in this allocation.

Returns

The used_gpus of this GpuAllocation.

Return type

int