如何在私有git仓库中使用MLfLow?

时间:2019-07-15 05:56:44

标签: git gitlab databricks mlflow

当源代码公共存储在git存储库中时,我测试了MLflow个实验。示例命令如下所示

mlflow run  https://github.com/amesar/mlflow-fun.git#examples/hello_world \
 --experiment-id=2019 \
 -Palpha=100 -Prun_origin=GitRun -Plog_artifact=True

但是,当我提供一个内部(私有)git存储库链接而不是public MLflow重定向到登录URL时,执行失败。

git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git fetch -v origin
stderr: 'fatal: unable to update url base from redirection:
asked for: https://gitlab-master.companyname.com/myusername/project_name
/tree/master/models/myclassifier/info/refs?service=git-upload-pack
redirect: https://gitlab-master.company.com/users/sign_in'

有什么办法可以将git帐户的凭证传递给MLflow?

1 个答案:

答案 0 :(得分:0)

您必须在网址中提供个人访问令牌:

POST

您可以在此处生成令牌:https://github.com/settings/tokens