aihwkit.experiments.runners.cloud module
Base class for an Experiment Runner.
- class aihwkit.experiments.runners.cloud.CloudRunner(api_url=None, api_token=None, verify=True)[source]
Bases:
RunnerRunner that executes Experiments in the AIHW Composer cloud.
Class that allows executing Experiments in the cloud.
- get_cloud_experiment(id_)[source]
Return a single cloud experiment by id.
- Parameters:
id – the identifier of the cloud experiment.
id_ (str)
- Returns:
A
CloudExperiment.- Return type:
- list_cloud_experiments()[source]
Return a list of cloud experiments.
- Returns:
A list of
CloudExperiments.- Return type:
List[CloudExperiment]
- run(experiment, name='', device='gpu', **_)[source]
Run a single Experiment.
Starts the execution of an Experiment in the cloud. Upon successful invocation, this method will return a
CloudExperimentobject that can be used for inspecting the status of the remote execution.Note
Please be aware that the
experimentis subjected to some constraints compared to local running of experiments.- Parameters:
experiment (BasicTraining) – the experiment to be executed.
name (str) – an optional name for the experiment.
device (str) – the desired device.
_ (Any) – extra arguments for the runner.
- Returns:
A
CloudExperimentwhich represents the remote experiment.- Return type: