allegroai / clearml

ClearML - Auto-Magical CI/CD to streamline your AI workload. Experiment Management, Data Management, Pipeline, Orchestration, Scheduling & Serving in one MLOps/LLMOps solution
https://clear.ml/docs
Apache License 2.0
5.61k stars 651 forks source link

Ability to ignore requirements when using PipelineDecorator.pipeline #1093

Closed JoshuaMeyers closed 3 months ago

JoshuaMeyers commented 1 year ago

Proposal Summary

additional argument for pipeline decorator allowing access to Task.ignore_requirements("mypkgname").

Motivation

I am running a pipeline using the decorator and a provided docker image. When launching the pipeline, my local environment is synced with the environment in the image. However, because the image is only built periodically, there are sometimes minor differences between my local env and the image env. I would like the option to ignore my local environment.

For normal tasks, I can ignore my local environment using Task.ignore_requirements("mypkgname"). But for the pipeline decorator, I cannot access this logic.

I also cannot use Task.current_task since the logic is run in the decorator so I don't believe I have access to the task before it fails to resolve requirements.

If there is already a solution for this that I've missed, I'm all ears! Thanks in advance

clearml version: 1.12.2 python version: 3.10.11

eugen-ajechiloae-clearml commented 1 year ago

Hi @JoshuaMeyers ! It is indeed not possible to ignore requirements in pipelines. We will add this feature in the future.