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
Another Questions Related To

Another questions related to requirements.txt We use pip install with git commit. Eg:

mylib @ 

When I do task.add_requirements("requirements.txt")
I get

# Python 3.10.8 | packaged by conda-forge | (main, Nov 22 2022, 08:26:04) [GCC 10.4.0]

mylib
Pillow == 9.2.0
PyYAML == 6.0
azure_storage_blob == 12.16.0
boto3 == 1.21.21
clearml == 1.11.0
ml_collections == 0.1.1
numpy == 1.23.5
onnxruntime == 1.14.1
onnxruntime_gpu == 1.14.1
opencv_python == 4.7.0.72
tensorboard == 2.9.0
torch == 1.13.0

Does this mean that clearml do not support this kind of requirement ?

  
  
Posted one year ago
Votes Newest

Answers 10


@<1576381444509405184:profile|ManiacalLizard2> can you try putting it in the repository's requirements.txt instead of adding it in code?

  
  
Posted one year ago

that format is correct as I can run pip install -r requirements.txt
using the exact same file

  
  
Posted one year ago

it is actually in the repo root folder.

  
  
Posted one year ago

is task.add_requirements("requirements.txt") redundant ?
Is ClearML always look for a requirements.txt in the repo root ?

  
  
Posted one year ago

and in the train.py , I have task.add_requirements("requirements.txt")

  
  
Posted one year ago

Hi @<1576381444509405184:profile|ManiacalLizard2> , I think the correct format is PACKAGE @ git+ None

  
  
Posted one year ago

(I use ssh key to access to our git server in our private network)

  
  
Posted one year ago

interesting, the issue happen with mamba venv. Now I use a python native venv and it is detecting correctly

  
  
Posted one year ago

but then it still missing a bunch of library in the Taks (that succeed) > Execution > INSTALLED PACKAGES
So when I do a clone of that task, and try to run the clone, the task fail because it is missing python package 😞

  
  
Posted one year ago

Ok. Found the solution.
The importance is to use this:

Task.add_requirements("requirements.txt")
task = Task.init(project_name='hieutest', task_name='foo',reuse_last_task_id=False)

And not:

task = Task.init(project_name='hieutest', task_name='foo',reuse_last_task_id=False)
task.add_requirements("requirements.txt")
  
  
Posted one year ago
961 Views
10 Answers
one year ago
one year ago
Tags