You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.5 kB

2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # 如何在启智平台上进行模型训练—GPGPU示例
  2. ## 1.启智集群和智算集群的GPGPU训练样例
  3. ###### 启智集群的示例代码:
  4. - 推理任务示例请参考示例中[inference.py](./inference.py)的代码注释
  5. ## 2. 在云脑上获取数据集,预训练模型,输出路径
  6. 安装c2net包
  7. ```
  8. pip install c2net
  9. ```
  10. 使用c2net包
  11. ```
  12. #导入包
  13. from c2net.context import prepare,upload_output
  14. #初始化导入数据集和预训练模型到容器内
  15. c2net_context = prepare()
  16. #获取代码路径,数据集路径,预训练模型路径,输出路径
  17. code_path = c2net_context.code_path
  18. dataset_path = c2net_context.dataset_path
  19. pretrain_model_path = c2net_context.pretrain_model_path
  20. output_path = openi_context.output_path
  21. #回传结果
  22. upload_output()
  23. ```
  24. ## 3.[创建GPU训练示例任务界面教程](./Example_Picture/快速创建GPU训练任务.md)
  25. ## 4.FAQ
  26. ### 4.1 关于启智平台公共库[c2net](https://openi.pcl.ac.cn/OpenIOSSG/c2net-pypi):
  27. 主要使用的方法有以下几个:
  28. ```
  29. prepare 准备数据集,模型,输出路径
  30. upload_output 将训练镜像的输出结果拷贝回启智平台
  31. ```
  32. ### 4.2 解决参数报错问题:
  33. 请在代码中加入 `args, unknown = parser.parse_known_args()`,可忽略掉 `--ckpt_url`,`--data_url`, `--multi_date_url`等参数报错问题
  34. ## 对于示例代码有任何问题,欢迎在本项目中提issue。

No Description