【问题标题】:Are you able to pass uri_file Inputs into an Azure ML Sweep Job?您能否将 uri_file 输入传递到 Azure ML 扫描作业中?
【发布时间】:2022-11-24 11:13:51
【问题描述】:

我最近开始使用 Azure ML python SDKv2。

我希望使用我的数据样本微调模型,并希望将不同的预训练模型作为我微调扫描工作的起点。

我有一个正常的微调管道工作正常,并且一直在使用此指南尝试将我的管道转换为具有扫描步骤,其中包括选择单独的嵌入字典起点(embs 是包含词嵌入字典的注册数据集)。 https://learn.microsoft.com/en-us/azure/machine-learning/how-to-use-sweep-in-pipeline

我尝试像在普通管道中一样使用 Choice 来提供输入选项,并尝试仅传递路径字符串。但是,当我运行时,出现以下问题。

Choice([Input(type = "uri_file", path = "azureml:embsa:1"),
        Input(type = "uri_file", path = "azureml:embsb:1"),
        Input(type = "uri_file", path = "azureml:embsc:1"),
        Input(type = "uri_file", path = "azureml:embsd:1")])

Invalid component job since input x for component job Y expecting data with types UriFile has been assigned literal value.

我假设这是因为 Choice 对象正在做一些不同于仅仅遍历提供的列表的事情,但我不确定我知道下一步要看哪里。

我的问题本质上是,是否可以将已注册的数据集作为 Choice 传递到扫描步骤中?如果是这样,如何实现?

【问题讨论】:

    标签: python azure-machine-learning-service


    【解决方案1】:

    目前不支持,我们在train_model的输入中定义超参数扫描的search_space,调用train_model.sweep()创建一个基于train_model的扫描节点,具体运行设置。

    【讨论】:

      猜你喜欢
      • 2016-05-19
      • 2023-01-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-31
      • 2021-06-01
      • 1970-01-01
      • 2022-11-08
      相关资源
      最近更新 更多