early-nest-89176
11/03/2025, 12:03 PMflaky-plumber-70709
11/03/2025, 1:03 PMCONDA_DEPENDENCY_RESOLVER and CONDA_USE_FAST_INIT . The former defaults to conda but mamba in my experience has been a lot faster (not sure if this is still true).
https://github.com/Netflix/metaflow/blob/1e5ccee/metaflow/metaflow_config.py#L482-L488flaky-plumber-70709
11/03/2025, 1:07 PMMain improvements over the standard Conda decorator in Metaflow
This decorator improves several aspects of the included Conda decorator:
it allows you to mix and match Conda packages and Pypi packages.
it supports a wider range of Pypi package sources (repositories, source tarballs, etc)
it supports a command line tool allowing you to:
retrieve and re-hydrate any environment used by any previously executed step thereby enabling an easy way to inspect artifacts created in that environment
resolve environments using standard requirements.txt of environment.yml files
inspect packages present in any environment previously resolved
it supports "named environments" which enables easy environment sharing and saving.
it is generally more performant and efficient in terms of parallel resolution and downloading of packages
it supports conda, mamba and micromamba
it's a drop in replacement and gives you a lot more levers to pull to optimize the env bootstrapping, and comes with a nice CLI that gives you the ability to build environments and persist them, the named environments bit aboveflaky-plumber-70709
11/03/2025, 1:09 PMearly-nest-89176
11/03/2025, 1:18 PMreqs = requirements_txt_parser("requirements.txt")
@pypi_base(python="3.12", packages=reqs)
class Exmpleflow(DecisionFlow):
@step
def model_start(self):
self.next(self.end)
Note that bootstrapping is not always multiple minutes long. Seems to be around "peak load", when other flows are running at the same time.
I would really like to know if I can improve the infrastructure/networking, if they are causing a bottleneck. And perhaps more logging during the bootstrapping process could highlight any bottleneckflaky-plumber-70709
11/03/2025, 1:51 PMCONDA_DEPENDENCY_RESOLVER and CONDA_USE_FAST_INIT to see of that helps things
• try uv : https://docs.metaflow.org/scaling/dependencies/uv
• install https://pypi.org/project/metaflow-netflixext/
netlixext exposes a ton of things that could help in this case:
https://github.com/Netflix/metaflow-nflx-extensions?tab=readme-ov-file#configuration
and Romain is pretty responsive on here for that tooflaky-plumber-70709
11/03/2025, 1:52 PMancient-application-36103
11/03/2025, 3:27 PMdry-beach-38304
11/03/2025, 4:05 PMdry-beach-38304
11/03/2025, 4:08 PMflaky-plumber-70709
11/03/2025, 4:40 PMearly-nest-89176
11/07/2025, 8:07 AMancient-application-36103
11/07/2025, 3:47 PM