Skip to main content
Perform a self-test on the specified machine.

Signature

VastAI.self_test_machine(
    machine_id: Any,
    debugging: bool = False,
    ignore_requirements: bool = False,
    test_image: Optional[str] = None,
    support_bundle_dir: Optional[str] = None,
    no_support_bundle: bool = False
)

Parameters

machine_id
Any
required
Machine ID
debugging
bool
Enable debugging output
ignore_requirements
bool
Ignore the minimum system requirements and run the self test regardless
test_image
Optional[str]
Use a custom self-test image for testing custom self-test images. Overrides VAST_SELF_TEST_IMAGE and CUDA mapping.
support_bundle_dir
Optional[str]
Directory for failure diagnostic bundles (default: /tmp)
no_support_bundle
bool
Do not create a diagnostic tarball when the self-test fails

Returns

Any

Example

from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.self_test_machine(machine_id="value")
print(result)