Release v2.3.0
What's changed
Promptolution v2.3.0 removes ExperimentConfig and its string dispatch get_* factories and adds config-driven runs and experiment grids via Hydra as well as a simple optimize() quickstart.
Added features:
promptolution.experiment: config-driven single runs and whole experiment grids via the Hydra CLI, allowing for reproducible runs and research. When called through the CLI, Hydra builds a config from the nested config groups insideconf/and the overrided that the caller provides. Running a sweep then becomes a CLI flag rather than a hand-written loop and a killed job resumes into the same output folder, skipping already completed experiment cells.promptolution.utils.dev_test_splitandpromptolution.utils.evaluate_prompts, split your data
and score prompts on a task- Optimizers generate
initial_promptsfrom the task'stask_descriptionwhen none are given (moved here from the deletedpromptolution.helpers.run_optimization).
Breaking changes:
promptolution.helpers(run_experiment,run_optimization,run_evaluation,get_llm,
get_task,get_optimizer,get_predictor,get_exemplar_selector) andExperimentConfigare
removed. Build components directly (see the README quickstart) or useexperiment.- Every component constructor drops its
configparameter. hydra-coreis now a main dependency; the[experiments]extra keeps the SLURM launcher plugin
and HuggingFacedatasets.
Full Changelog: here