mlos_bench.environments.script_env module¶
Base scriptable benchmark environment.
- class mlos_bench.environments.script_env.ScriptEnv(*, name: str, config: dict, global_config: dict | None = None, tunables: TunableGroups | None = None, service: Service | None = None)¶
Bases:
Environment
Base Environment that runs scripts for setup/run/teardown.
- Attributes:
parameters
Key/value pairs of all environment parameters (i.e., const_args and tunable_params).
tunable_params
Get the configuration space of the given environment.
Methods
new
(*, env_name, class_name, config[, ...])Factory method for a new environment with a given config.
pprint
([indent, level])Pretty-print the environment configuration.
run
()Execute the run script for this environment.
setup
(tunables[, global_config])Set up a new benchmark environment, if necessary.
status
()Check the status of the benchmark environment.
teardown
()Tear down the benchmark environment.