Skip to content

runtime

Runtime probes for the local MLX environment.

import mlx_atomistic.runtime

class PlatformBoundaryReport
def __init__(product_runtime: str, runtime: RuntimeInfo, reference_engine_policy: dict[str, str], sections: tuple[PlatformBoundarySection, ...])

Traceable summary of the local mini-platform boundary.

Parameters

NameTypeDefaultDescription
product_runtimestr
runtimeRuntimeInfo
reference_engine_policydict[str, str]
sectionstuple[PlatformBoundarySection, ...]

Methods

def to_dict() -> dict[str, Any]

Return a JSON-safe platform-boundary report.

Returns

  • dict[str, Any]
class PlatformBoundarySection
def __init__(name: str, status: str, local_concepts: tuple[str, ...], responsibility: str, vendor_references: tuple[str, ...] = ())

One local platform-boundary concept group.

Parameters

NameTypeDefaultDescription
namestr
statusstr
local_conceptstuple[str, ...]
responsibilitystr
vendor_referencestuple[str, ...]()

Methods

def to_dict() -> dict[str, Any]

Return a JSON-safe section summary.

Returns

  • dict[str, Any]
class ReadinessReport
def __init__(name: str, status: str, blockers: tuple[str, ...] = (), warnings: tuple[str, ...] = (), metadata: dict[str, Any] | None = None)

JSON-safe readiness status shared by platform gates.

Parameters

NameTypeDefaultDescription
namestr
statusstr
blockerstuple[str, ...]()
warningstuple[str, ...]()
metadatadict[str, Any] | NoneNone

Methods

def to_dict() -> dict[str, Any]

Return a JSON-safe readiness report.

Returns

  • dict[str, Any]
class RuntimeInfo
def __init__(mlx_version: str, default_device: str, metal_available: bool)

Small, display-friendly summary of the active MLX runtime.

Parameters

NameTypeDefaultDescription
mlx_versionstr
default_devicestr
metal_availablebool

Methods

def to_dict() -> dict[str, Any]

Return a JSON-safe runtime summary.

Returns

  • dict[str, Any]
def get_platform_boundary_report(*, runtime_info: RuntimeInfo | None = None) -> PlatformBoundaryReport

Return the local platform-boundary contract without importing reference engines.

Parameters

NameTypeDefaultDescription
runtime_infoRuntimeInfo | NoneNone

Returns

  • PlatformBoundaryReport
def get_runtime_info() -> RuntimeInfo

Return basic information about MLX and the default device.

Returns

  • RuntimeInfo