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
I Got A Quick Question Of Using Custom Conf For Clearml Agent, I Tried This Line

I got a quick question of using custom conf for clearml agent, i tried this line
clearml-agent --config-file ~/clearml-iris.conf
clearml-agent --config-file ~/clearml-iris.conf init but it seems not working because the task use the default server.

  
  
Posted 3 years ago
Votes Newest

Answers 23


i’m setting the environment variable in the python script like this
os.environ['CLEARML_CONFIG_FILE'] = str(Path.home()/f"clearml-{socket.getfqdn()}.conf")then task.init

  
  
Posted 3 years ago

before i renamed it, i can log the experiment successfully, i basically add task.init to the python script then just run that script

  
  
Posted 3 years ago

then i run the second one, it basically outputs the same as just init

  
  
Posted 3 years ago

but basically i create it by init and rename it

  
  
Posted 3 years ago

oh i see, i’m trying it now

  
  
Posted 3 years ago

when i run this one clearml-agent --config-file ~/clearml-iris.conf it output the help info

  
  
Posted 3 years ago

i just tried, but is still open result on public server.

  
  
Posted 3 years ago

i was trying to copy the content of that file

  
  
Posted 3 years ago

not actually

  
  
Posted 3 years ago

Oh, I see

  
  
Posted 3 years ago

OK

  
  
Posted 3 years ago

Hi PompousHawk82 ,
Did the clearml-iris.conf file got created?

  
  
Posted 3 years ago

What you're missing, is that the ClearML Agent --config-file switch only tells the ClearML Agent which config file to use, but it won't affect any task running locally with ClearML SDK (only tasks executed by the ClearML Agent with the --config-file switch)

  
  
Posted 3 years ago

i only want to use clearml agent to change the conf file

  
  
Posted 3 years ago

Well, theoretically it should work if you set it before importing clearml, but it seems strange to do that in code - what's your use-case?

  
  
Posted 3 years ago

To make ClearML SDK load an alternative config file, you need to set the environment variable CLEARML_CONFIG_FILE=<path-to-config-file>

  
  
Posted 3 years ago

How exactly did you run the task?

  
  
Posted 3 years ago

i tried to add environment right before importing clearml, but it doesn’t work as expected
os.environ['CLEARML_CONFIG_FILE'] = str(Path.home()/f"clearml-{socket.getfqdn()}.conf") from clearml import Task Task.init(project_name="Alfred", task_name="finalized", auto_connect_frameworks={'pytorch': False})

  
  
Posted 3 years ago

It only works that we set the CLEARML_CONFIG_FILE before script running

  
  
Posted 3 years ago

But are you trying to run the task remotely using the agent?

  
  
Posted 3 years ago

Did you use it to run a task?

  
  
Posted 3 years ago

yes

  
  
Posted 3 years ago

i’m not sure if i use the command correctly

  
  
Posted 3 years ago
525 Views
23 Answers
3 years ago
one year ago
Tags