taps.run.config¶
LoggingConfig
¶
RunConfig
¶
Bases: BaseModel
Run configuration.
Parameters:
-
dir_format
(str
, default:'runs/{name}_{executor}_{timestamp}'
) –Run directory format (supports "{name}", "{timestamp}", and "{executor}" for formatting).
-
env_vars
(Dict[str, str] | None
, default:None
) –Environment variables to set during benchmarking.
Config
¶
Bases: BaseSettings
Application benchmark configuration.
Parameters:
-
app
(AppConfig
) –Application configuration.
-
engine
(EngineConfig
, default:EngineConfig(executor=ProcessPoolConfig(name='process-pool', max_processes=4, context=None), filter=None, transformer=None, task_record_file_name='tasks.jsonl')
) –Engine configuration.
-
logging
(LoggingConfig
, default:LoggingConfig(level='INFO', file_level=None, file_name='log.txt')
) –Logging configuration.
-
run
(RunConfig
, default:RunConfig(dir_format='runs/{name}_{executor}_{timestamp}', env_vars=None)
) –Run configuration.
-
version
(str
, default:'0.2.2.dev1'
) –TaPS version (do not alter).
from_toml
classmethod
¶
Load a configuration from a TOML file.
Source code in taps/run/config.py
write_toml
¶
Write the configuration to a TOML file.
Source code in taps/run/config.py
make_run_dir
¶
Create and return the run directory path created from the config.