|
@ -10,15 +10,6 @@ seed(19920921) |
|
|
|
|
|
|
|
|
NUM_JOBS = 5 |
|
|
NUM_JOBS = 5 |
|
|
|
|
|
|
|
|
# reference to the current studio |
|
|
|
|
|
# if you run outside of Lightning, you can pass the Studio name |
|
|
|
|
|
# studio = Studio() |
|
|
|
|
|
|
|
|
|
|
|
# use the jobs plugin |
|
|
|
|
|
# studio.install_plugin("jobs") |
|
|
|
|
|
# job_plugin = studio.installed_plugins["jobs"] |
|
|
|
|
|
|
|
|
|
|
|
# do a sweep over learning rates |
|
|
|
|
|
|
|
|
|
|
|
# Define the ranges or sets of values for each hyperparameter |
|
|
# Define the ranges or sets of values for each hyperparameter |
|
|
# alpha_values = list(np.round(np.linspace(2, 4, 21), 4)) |
|
|
# alpha_values = list(np.round(np.linspace(2, 4, 21), 4)) |
|
@ -81,7 +72,7 @@ cd ~/colors && python newmain.py fit \ |
|
|
--model.bias true \ |
|
|
--model.bias true \ |
|
|
--model.loop true \ |
|
|
--model.loop true \ |
|
|
--model.transform tanh \ |
|
|
--model.transform tanh \ |
|
|
--model.dropout 0 \ |
|
|
--model.dropout 0.5 \ |
|
|
--trainer.min_epochs 10 \ |
|
|
--trainer.min_epochs 10 \ |
|
|
--trainer.max_epochs {me} \ |
|
|
--trainer.max_epochs {me} \ |
|
|
--trainer.log_every_n_steps 3 \ |
|
|
--trainer.log_every_n_steps 3 \ |
|
@ -100,13 +91,16 @@ cd ~/colors && python newmain.py fit \ |
|
|
# --lr_scheduler.init_args.cooldown 10 \ |
|
|
# --lr_scheduler.init_args.cooldown 10 \ |
|
|
# --lr_scheduler.init_args.verbose true |
|
|
# --lr_scheduler.init_args.verbose true |
|
|
""" |
|
|
""" |
|
|
# job_name = f"color2_{bs}_{a}_{lr:2.2e}" |
|
|
|
|
|
# job_plugin.run(cmd, machine=Machine.T4, name=job_name) |
|
|
|
|
|
print(f"Running {params}: {cmd}") |
|
|
print(f"Running {params}: {cmd}") |
|
|
try: |
|
|
try: |
|
|
|
|
|
studio = Studio("colors-animate-jobs") |
|
|
|
|
|
studio.install_plugin("jobs") |
|
|
|
|
|
job_plugin = studio.installed_plugins["jobs"] |
|
|
|
|
|
job_name = f"color-animate-{idx}-{s}" |
|
|
|
|
|
job_plugin.run(cmd, machine=Machine.T4, name=job_name) |
|
|
|
|
|
|
|
|
# Run the command and wait for it to complete |
|
|
# Run the command and wait for it to complete |
|
|
# subprocess.run(test_cmd, shell=True, check=True) |
|
|
# subprocess.run(cmd, shell=True, check=True) |
|
|
subprocess.run(cmd, shell=True, check=True) |
|
|
|
|
|
except KeyboardInterrupt: |
|
|
except KeyboardInterrupt: |
|
|
print("Interrupted by user") |
|
|
print("Interrupted by user") |
|
|
sys.exit(1) |
|
|
sys.exit(1) |
|
|