aihwkit.experiments.runners.i_cloud module
Base class for an Experiment Runner.
- class aihwkit.experiments.runners.i_cloud.InferenceCloudRunner(api_url=None, api_token=None, verify=False)[source]
Bases:
RunnerRunner that executes Experiments in the AIHW Composer cloud.
Class that allows executing Experiments in the cloud.
- Parameters:
api_url (str | None) –
api_token (str | None) –
verify (bool) –
- 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, analog_info, noise_model_info, 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 (BasicInferencing) – the experiment to be executed.
analog_info (Dict) – analog information,
noise_model_info (Dict) – noise model information,
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: