资源下载 ======== .. contents:: 本节目录 :depth: 3 命令: ``download`` 可以用 ``download`` 命令下载相关文件。 ``--help`` 命令可看到有 ``training`` ``serving`` 子命令, 分别代表训练任务、验证任务、模型服务。目前CLI仅支持 `下载训练任务结果文件`_ 。 .. code-block:: shell anyctl download --help .. code-block:: text Usage: anyctl download [OPTIONS] COMMAND [ARGS]... Download remote task results of training or serving. Options: --help Show this message and exit. Commands: serving Get serving task's results. training Get training task's results. 下载训练任务结果文件 ---------------------- 命令: ``training`` +---------------------------+----------+-------------+-------------------------------------------------------------------+ | 参数及缩写 | 是否必须 | 默认值 | 说明 | +===========================+==========+=============+===================================================================+ | task_id | True | | 训练任务ID | +---------------------------+----------+-------------+-------------------------------------------------------------------+ | -\-save-path, -s | True | | 文件保存路径 | +---------------------------+----------+-------------+-------------------------------------------------------------------+ | -\-async-download | False | False | 是否以异步模式下载 | +---------------------------+----------+-------------+-------------------------------------------------------------------+ 使用示例: .. code-block:: shell anyctl download training TRAIxxx -s D:\anyctl-test\download\train_result [ --async-download] 如果需要配置远程地址和用户信息请参考 :ref:`set_host_user_info` 。 运行后会有以下提示信息: .. code-block:: shell DOWNLOADING... Resource compress {'data': 'COMPxxx', 'message': '文件打包请求已记录,请稍候'} Resource compress state {'data': False, 'message': '文件正在打包,请稍候'} Resource compress state {'data': True, 'message': '文件打包完成'} [SUCCESS] DOWNLOAD! D:\anyctl-test\download\train_result\downloads_FILExxx.zip # 提示下载成功,并返回文件存储路径 下载模型服务文件 ------------------- 命令: ``serving`` *CLI暂不支持此功能*