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
Sure, try to run the clearml-agent withclearml-agent daemon -O
https://clear.ml/docs/latest/docs/clearml_agent/clearml_agent_daemon
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
Thank you very much, didnt know about that 🙂
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 ?
Is there a way to specify this on a per task basis? I am running clearml-agent in docker mode btw.
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.