-
Notifications
You must be signed in to change notification settings - Fork 172
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
Revamp submit train script for evals #192
Conversation
UPDATE: This is due to the dockerfile! We should maintain a oe-adapt image rather than a hamish one so either to update. Currently debugging this. Getting a error with the paths (not sure why it's happening / where commands are fun in Beaker jobs)
|
scripts/submit_finetune_job.py
Outdated
if env['name'] == "WANDB_PROJECT": | ||
env['value'] = wandb_project | ||
d['tasks'][0]['envVars'].append({ | ||
'name': 'WANDB_API_KEY', 'value': wandb_api_key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this might expose the wandb key in the beaker config, rather than set in the workspace as a secret.... I would prefer we just have a WANDB KEY secret in the workspace, and the workspace owner sets it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah let me fix this and add instructions.
|
||
|
||
if __name__ == "__main__": | ||
main() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gonna more or less assume this parsing works. would probably be good to test a bit first.
I've tested parsing a decent bit. Was making sure all the values passed and from config are right, both for values after --arg value, and --store_true keys. Maybe should make sure it works for list keys (very niche case, e.g. log to wandb and tensorboard). I have some jobs in the queue for this now. |
(accidentally clicked close) |
We can now use
scripts/submit_finetune_jobs.py
with the config structure.How it works:
configs/train_configs/
)The file overrides from the end. Command line arguments have highest priority, and those over the passed config, and those over the default config.
This allows things like running parameter sweeps via bash script via the following (can even put these in loops)
Run with