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
Can You Please Tell Me How To Make The Agent Use The Docker Env By Default? Instead Of Creating Venv It Already Has All The Necessary Environment And Libraries Installed

Can you please tell me how to make the agent use the docker env by default? instead of creating venv

it already has all the necessary environment and libraries installed

  
  
Posted one year ago
Votes Newest

Answers 13


i found 🙂

CLEARML_AGENT_SKIP_PYTHON_ENV_INSTALL

  
  
Posted one year ago

@<1523701205467926528:profile|AgitatedDove14>
Can you please tell me how to return the folder where the script should run?

Traceback (most recent call last):
  File "/root/.clearml/venvs-builds/3.7/code/train.py", line 12, in <module>
    from src.utils.profiler.time_profiler import TimeProfiler
ModuleNotFoundError: No module named 'src'

/root/.clearml/venvs-builds/3.7/code/ -> /src/project

  
  
Posted one year ago

Hi @<1523702932069945344:profile|CheerfulGorilla72> , I think you need to map out the relevant folders for the docker. You can add docker arguments to the task using Task.set_base_docker

  
  
Posted one year ago

i added the required dependencies but don't feel like doing /srv/project:/root/.clearml/venvs-builds/3.7/code

although okay, if it helps to start working, then you can do it like that ...

  
  
Posted one year ago

cp does't work

cp: target '/root/.clearml/venvs-builds/3.7/code' is not a directory
  
  
Posted one year ago

@<1523701205467926528:profile|AgitatedDove14>
Thanks a lot!

and if there is no venv and I want to use what is there by default in the docker?

and you can make it so that the version of python (to 3.10) would not be switched, but the one that is the default remains?

  
  
Posted one year ago

like this?

export CLEARML_AGENT_SKIP_PYTHON_ENV_INSTALL="True"

upd: it's work!!!
Thanks a lot!

  
  
Posted one year ago

Can you please tell me how to return the folder where the script should run?

add it to the python path

PYTHONPATH="/src/project"
  
  
Posted one year ago

@<1523701070390366208:profile|CostlyOstrich36>

  
  
Posted one year ago

See the CLEARML_AGENT_SKIP_PIP_VENV_INSTALL and CLEARML_AGENT_SKIP_PYTHON_ENV_INSTALL env vars here None

  
  
Posted one year ago

i use:

export CLEARML_AGENT_EXTRA_DOCKER_ARGS=" -v /srv:/root/srv  -v /srv:/srv  -v /var/run/docker.sock:/var/run/docker.sock -v /home/user/mlbox/clearml.conf:/root/clearml.conf  --network=host  --ipc host  --hostname=\$(hostname)"
  
  
Posted one year ago

add it to the python path

PYTHONPATH="/src/project"

this allowed the script to run!
but now he does not see the folders that are in the /src/project folder"

can you please tell me how to make it so that he can see

this is for hydra launch

Current working directory ('os.getcwd()') : /root/.clearml/venvs-builds/3.7/code
Check that the config directory '/root/.clearml/venvs-builds/3.7/code/conf' exists and readable
  
  
Posted one year ago

Hi @<1523702932069945344:profile|CheerfulGorilla72>
the agent is Always inherits from the docker system installed environment
If you have a custom venv inside the docker that is Not activated by default you can set the agent to use it:
None

CLEARML_AGENT_SKIP_PIP_VENV_INSTALL
  
  
Posted one year ago