Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automated hyperparameter selection #313

Open
viswavi opened this issue Aug 30, 2023 · 0 comments
Open

Add automated hyperparameter selection #313

viswavi opened this issue Aug 30, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@viswavi
Copy link
Collaborator

viswavi commented Aug 30, 2023

Our current Prompt2Model pipeline uses a fixed set of hyperparameters for all tasks (shown here).

To robustly handle different tasks, we want to implement automated hyperparameter selection by computing metrics on the validation splits of the retrieved and generated datasets for various configurations of a given model. Once put in place, our architecture diagram will look like this (unimplemented components are in blue):
Prompt-to-deployment architecture

There are two primary design decisions required in implementing this component:

  1. What is the space of hyperparameters to choose from? We could define a default space of parameters (e.g. learning rate between 1e-3 and 1e-6, optimizer should be one of AdamW, Adam, or SGD w/ momentum). If we wanted to be more exploratory, we could even ask an LLM to suggest a space of parameters to consider for this task. We could also include the choice of base model to finetune as a hyperparameter (e.g. try the top-5 model architectures returned by the model retriever, and choose the one with the best validation metrics)
  2. How do we select the best hyperparameters on the validation data? To avoid doing extra work, we could use a library like Hyperopt to do this. As a simple, hand-rolled option, we could also just do "random search" where we sample random configurations from the given space of hyperparameters and choose the configuration with the greatest validation metrics.
@viswavi viswavi added enhancement New feature or request good first issue Good for newcomers labels Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant