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
Hello Everyone, Quick Question: How Can I Specify That I Want To Run My Task With

Hello everyone,
quick question: How can I specify that I want to run my task with python -O flag remotely?

  
  
Posted one year ago
Votes Newest

Answers 7


Hi ReassuredTiger98
I think it used to be the default and then it was removed, it has no real affect on performance but it remove all asserts ... what is your use case ? do you see any performance gains ?

  
  
Posted one year ago

I don't know actually. But Pytorch documentation says it can make a difference: https://pytorch.org/docs/stable/distributions.html#torch.distributions.distribution.Distribution.set_default_validate_args

  
  
Posted one year ago

I am running clearml-agent in docker mode btw.

Try -e PYTHONOPTIMIZE=1 in the docker args section, should do the same 🙂
https://docs.python.org/3/using/cmdline.html#envvar-PYTHONOPTIMIZE

  
  
Posted one year ago

Sure, try to run the clearml-agent with
clearml-agent daemon -Ohttps://clear.ml/docs/latest/docs/clearml_agent/clearml_agent_daemon

  
  
Posted one year ago

Is there a way to specify this on a per task basis? I am running clearml-agent in docker mode btw.

  
  
Posted one year ago

Thank you very much, didnt know about that 🙂

  
  
Posted one year ago

The default behavior mimics Python’s assert statement: validation is on by default, but is disabled if Python is run in optimized mode (via python -O). Validation may be expensive, so you may want to disable it once a model is working.

  
  
Posted one year ago
739 Views
7 Answers
one year ago
one year ago
Tags