acoustic-carpenter-78188
11/07/2023, 2:31 PM# my_ml_model.py
from my_lib import train_wf # <- Shared python function following the workflow DSL
from flytekit import workflow
@workflow
def wf(dataset: dict, processing_config: dict) -> dict:
return train_wf(dataset=dataset, processing_config=processing_config)
But then the naming of workflow is somehow not that practical because it is based on the folder structure. Renaming the workflow would make our life much easier.
Goal: What should the final outcome look like, ideally?
Having a simple way to rename a workflow with a property or similar. I believe tasks can be renamed easily using .with_overrides(name="my_name") in the workflow DSL. It'd be great to have something similar.
It would allow us to browse models from the search bar and see the list of experiments by date. Without compromising on the project folder structure.
We could also integrate an ML experiment tracking tool pointing to the flyte executions.
Describe alternatives you've considered
Being very new to flyte I went back to the docs and read the launch plan concepts once again https://docs.flyte.org/en/latest/concepts/launchplans.html#what-do-launch-plans-provide.
The key feature seemed to be around fixed inputs and scheduling when I first read it. But perhaps it could solve the use case above by
1. Defining a shared workflow (training_pipeline.wf)
2. Defining a launch plan for each model, calling the workflow with relevant "default" inputs (dataset and processing config)
3. Create a new version of the launch plan for each experiment (this sounds a bit heavy)
Propose: Link/Inline OR Additional context
Slack conversation https://flyte-org.slack.com/archives/CP2HDHKE1/p1698914388559349
Are you sure this issue hasn't been raised already?
☑︎ Yes
Have you read the Code of Conduct?
☑︎ Yes
flyteorg/flyte