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
In Pipelines. Is It Possible To Inject A Requierment.Txt Such That The Executing Node Will Install Before Running Tasks?

In Pipelines.

Is it possible to inject a requierment.txt such that the executing node will install before running tasks?

  
  
Posted one year ago
Votes Newest

Answers 28


and just making sure - by pipeline we're talking about the ClearML pipelines, correct?
https://clear.ml/docs/latest/docs/references/sdk/automation_controller_pipelinecontroller

  
  
Posted one year ago

nice! Thank you

  
  
Posted one year ago

if a==True: import torch else: import tensorflow

  
  
Posted one year ago

The one sitting in the repository

  
  
Posted one year ago

I'm sorry. I think I wrote something wrong. I'll elaborate:
The SDK detects all the packages that are used during the run - The Agent will install a venv with those packages.
I think there is also an option to specify a requirements file directly in the agent.

Is there a reason you want to install packages from a requirements file instead of just using the automatic detection + agent?

  
  
Posted one year ago

we have a diff name for this file in the repo

  
  
Posted one year ago

Have you run experiments with the SDK? i.e added Task.init()

  
  
Posted one year ago

the only way any computer could figure this out is by running it

  
  
Posted one year ago

I think I am missing something

  
  
Posted one year ago

it's an undecidable problem

  
  
Posted one year ago

consider this case:

  
  
Posted one year ago

now the question how to make the production stuff to work

  
  
Posted one year ago

And the pipeline runs with agents or locally?

  
  
Posted one year ago

I have a simple pipline that works

  
  
Posted one year ago

the question how does ClearML know to create env and what files does it copy to the task

Either automatically detecting the packages in requirements.txt OR using the packages listed in the task itself

  
  
Posted one year ago

based on what reqeuirment.txt manifest?

  
  
Posted one year ago

so it looks for requirement.txt?

  
  
Posted one year ago

how this is possible?

  
  
Posted one year ago

or how can I add some libraries I'd like it to pip install in the new environment

  
  
Posted one year ago

from clearml import PipelineController

  
  
Posted one year ago

Task.add_requirements

  
  
Posted one year ago

locally and remotely

  
  
Posted one year ago

PIP Mode

By default, ClearML Agent works in PIP Mode, in which it uses

as the package manager. When ClearML runs, it will create a virtual environment (or reuse an existing one, see

). Task dependencies (Python packages) will be installed in the virtual environment.

how does it know what are the dependencies of a task?

  
  
Posted one year ago

the question how does ClearML know to create env and what files does it copy to the task
/homes/yossi/.clearml/venvs-builds/3.7/

  
  
Posted one year ago

if this was possible we wouldn't need pip

  
  
Posted one year ago

Hi AverageRabbit65 , can you elaborate on what you're trying to do?
ClearML-Agent will automatically create a venv and install everything

  
  
Posted one year ago

Yep Correct

  
  
Posted one year ago
509 Views
28 Answers
one year ago
one year ago
Tags