Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hey Since Hydra Does Not Work With

Hey since Hydra does not work with clearml-task does it work with the hyperparameter optimization?

  
  
Posted one year ago
Votes Newest

Answers 20


Hi TrickyFox41

Hey since Hydra does not work with

clearml-task

I should shouldn't it? what does not work ?

  
  
Posted one year ago

--args param.ovveride=value does not work with clearml-task

  
  
Posted one year ago

I tried like that clearml-task --script train.py --args overrides="log.clearml=True train.epochs=200 clearml.save=True" --project mornag-plain-dense --name mornag-plain-dense-training --queue tesla-t4 --skip-task-init

  
  
Posted one year ago

I see TrickyFox41 try the following:
--args overrides="param=value"Notice this will change the Args/overrides argument that will be parsed by hydra to override it's params

  
  
Posted one year ago

It only works with argparse

  
  
Posted one year ago

Yes the task is running on a remote agent with the --docker flag
this is the config on the machine(s) running the agent
`
agent {
venvs_cache: {
max_entries: 50
free_space_threshold_gb: -1
path: ~/.clearml/venvs-cache
}
extra_docker_arguments: [
"--network", "host",
"-v", "/home/ubuntu/.ssh:/root/.ssh:ro",
"-v", "/home/ubuntu/.cache:/root/.cache",
]

docker_internal_mounts {
    sdk_cache: "/clearml_agent_cache"
    apt_cache: "/var/cache/apt/archives"
    ssh_folder: "~/.ssh"
    ssh_ro_folder: "/.ssh"
    pip_cache: "/root/.pip-cache"
    poetry_cache: "/root/.pypoetry-cache"
    vcs_cache: "/root/.clearml/vcs-cache"
    venv_build: "~/.clearml/venvs-builds"
    pip_download: "/root/.clearml/pip-download-cache"
}

}

sdk {
aws {
s3 {
host: "...:443"
key: "..."
secret: "..."
secure: true
}
}
}

api {
web_server: https://...
api_server: https://...
file_server: https://...

credentials {

}

} `

  
  
Posted one year ago

Hmm that should have worked ...
I'm assuming the Task itself is running on a remote agent, correct ?
Can you see the changes in the OmegaConf section ?
what happens when you pass
--args overrides="['dataset.path=abcd']"

  
  
Posted one year ago

Hmm can you try:
--args overrides="['log.clearml=True','train.epochs=200','clearml.save=True']"

  
  
Posted one year ago

i printed cfg in the script and the config has not been overwritten 😢

  
  
Posted one year ago

What do you have under Hydra section? and OmegaConf section

  
  
Posted one year ago

same result. in print(cfg) there are no overrides

  
  
Posted one year ago

So I think there are two bugs here?
--args overrides="key=value" does not work request: add --hydra to override hydra arguments (and if this is added the first one is not needed)Is that correct?

  
  
Posted one year ago

TrickyFox41 are you saying that if you add Task.init inthe code it works, but when you are calling "clearml-task" it does not work? (in both cases editing the Args/overrides ?

  
  
Posted one year ago

I used an env variable to avoid creating and endless loop of init/enqueue (using an argument like clearml.queue that would be captured and forwarded to the agent)

  
  
Posted one year ago

By the way, since if i create the task locally, reset it and enqueue it, it works. This is the workaround that i'm using right now

  
  
Posted one year ago

No luck with --args overrides="['dataset.path=abcd']"

  
  
Posted one year ago

This is what it looks like from the web app

  
  
Posted one year ago

AgitatedDove14 Yes exactly!

  
  
Posted one year ago

image
image

  
  
Posted one year ago
538 Views
20 Answers
one year ago
one year ago
Tags