Reputation
Badges 1
21 × Eureka!im running them with python my_script.py -m my_parameter=value_1,value_2,value_3
(using hydra multirun)
I guess one solution would be to write a clearml https://hydra.cc/docs/advanced/plugins/overview/ for hydra, like the one with ray.
I leave it here though for now (end of POC)
it doesnt happen with all the tasks of the multirun as you can see in the photo
I find this error if I try to run any of the runs generatedclearml_agent: ERROR: Could not find task id=a270d2a56feb475181ef3c9c82111b7f (for host: some_secret_host) Exception: __init__() got an unexpected keyword argument 'types'
it also happens with other configuration values like this one which is a boolean. I think it happens in general with configuration values that are passed in your run command as flags (using the override syntax of hydra)
my bad :man-facepalming: the hydra error is because the data config folder is not commited (gitignore)
basically running_locally()
ok, I think I have everything I need. Will give it a try.
if you are doing logs i imagine these are done using Logger.report_scalar
if so. iteration is an argument of that method
waiting now for the run...
but I still have the problem if I try to run locally for debugging purposes clearml-agent execute --id ...
indeed, im looking at their corresponding multirun outputs folder and the logs terminate before without error and the only plots saved are those in clearml. So as you say, it seems hydra kills these
each of those runs finished producing 10 plots each but in clearml only 1, a few, or none got uploaded
im trying to use https://clear.ml/docs/latest/docs/webapp/applications/apps_aws_autoscaler .
In the setup, I have to provide a personal access token (PAC) from git.
The agents when setting up the env to run the tasks from the queue cannot clone the repo using the pac
cloning: git@gitlab.com:<redacted>.git Using user/pass credentials - replacing ssh url 'git@gitlab.com:<redacted>.git' with https url '
` <redacted>.git'
Host key verification failed.
fatal: Could not read from remote repos...
or if you could point me to the part of the package that sets up the enviroment to figure out what=s worng, please
when adding a custom column to the table view from a param value. Maybe it happens because that param is not relevant for all the tasks in the table? it shouldnt through an error though, just show an empty value for the runs where is not relevant.
1.- The script im running uses qiskit.providers
but as installed by when you install qiskit. If you try to install the submodules independently, it doesnt work. How do I use the full environment instead? cannot find this in the documentation. Also, I cannot configure the agents it seems because im using the aws autoscaler service so I dont spin them explicitly.
2.- My workflow would be that I usually, locally I run multiple sequential experiments using hydra multirun. What I want is th...
ok, yes, but this will install the package of the branch specified there.
So If im working on my own branch and want to run an experiment, I would have to manually put in the git path my current branch name. I guess I can add some logic to get the current branch from the env. Thank you
dont think will be reproducible with the hydra example. It was just that I launched like 50 jobs and some of them because of the parameters maybe failed (strangely with no error).
But is ok for now I guess, will debug wether those experiments that failed would failed if ran independently as well
ok, yes I mean the branch im working on. I can assume I;ve pushed it. So ill be using something like
def get_package_url() -> str: repo = Repo(Path(__file__).parent) branch_name = repo.active_branch.name remote_url = repo.remote().url return f"git+ssh://{remote_url.replace(':', '/')}@{branch_name}"
andTask.add_requirements("my_package", "@ {get_package_url()}")
it is supposed to replace the provided user psw in the url of the repo
actually I really need help with this, ive been struggling for 2 days to make the aws autoscaler work.
what I want:
do a multirun with hydra where each of the runs get executed remotely
my implementation (iterated over several using create_function_task
, etc:
` @hydra.main(config_path="configs", config_name="ou_cvae")
def main(config: DictConfig):
curr_dir = Path(file).parent
if config.clearml.enabled:
# Task.force_requirements_env_freeze(requirements_file=str(cur...
found the env freeze. For the second workflow all I would need I guess then would be and env variable that would tell me whether this is being currently run by an agent or not
Im using the latest version of clearml and clearml-agenst and im seeing the same error
yes, the remote task is working 🙂