代码之家  ›  专栏  ›  技术社区  ›  deltascience

华生机器学习部署时间过长

  •  0
  • deltascience  · 技术社区  · 6 年前

    我用华生机器学习服务培训了一个模型。培训过程已完成,因此我运行以下命令行来部署它:

    bx ml store training-runs model-XXXXXXX
    

    我得到带有模型ID的输出

    Starting to store the training-run 'model-XXXXXX' ...
    OK
    Model store successful. Model-ID is '93sdsdsf05-3ea4-4d9e-a751-5bcfbsdsd3391'.
    

    然后我使用以下方法部署它:

    bx ml deploy 93sdsdsf05-3ea4-4d9e-a751-5bcfbsdsd3391 "my-test-model"
    

    问题是我收到了一个没完没了的信息说:

    Checking if content upload is complete ...
    Checking if content upload is complete ...
    Checking if content upload is complete ...
    Checking if content upload is complete ...
    Checking if content upload is complete ...
    

    当我签入cos result bucket时,模型大小为~25MB,因此部署的时间不应该太长。我是不是错过了什么?

    1 回复  |  直到 6 年前
        1
  •  0
  •   deltascience    6 年前

    使用部署同一模型 Python Client API :

    from watson_machine_learning_client import WatsonMachineLearningAPIClient
    
    client = WatsonMachineLearningAPIClient(wml_credentials)
    deployment_details = client.deployments.create( model_id, "model_name")
    

    这很快就向我展示了部署中的错误。奇怪的是,使用 command line interface (CLI) .

    推荐文章