autointent.advisor.detect_hardware#

autointent.advisor.detect_hardware(*, vram_budget_gb=None, mps_budget_ratio=MPS_DEFAULT_BUDGET_RATIO)#

Detect the local hardware, with optional manual overrides.

Parameters:
  • vram_budget_gb (float | None) – when set, overrides the detected VRAM (use for shared-GPU machines where part of the device is taken).

  • mps_budget_ratio (float) – fraction of total RAM treated as the MPS “VRAM” budget on Apple Silicon.

Returns:

HardwareProfile reflecting current machine state.

Return type:

HardwareProfile