mlflow 运行 git-uri 克隆到特定目录

mlflow run git-uri clone to specific directory

我正在使用带有 GitHub uri 的 mlflow 运行。

当我运行使用下面的命令时

mlflow run <git-uri>

该命令设置了一个 conda 环境,然后 将 Git 存储库克隆到 temp 目录中,但我需要将其设置在 具体目录

我检查了整个文档,但找不到。没有这样的选项可以一次性完成吗?

对于非本地 URI,MLflow 使用 Python 的 tempfile.mkdtemp 函数(source code), that creates the temporary directory. You may have some control over it by setting the TMPDIR environment variable as described in Python docs(它还列出了 TMPTEMP,但它们在 MacOS 上对我不起作用)- 但它只会为临时目录和文件设置“基本路径”,directory/file 名称仍然是随机的。