ray - 无法将多个 GPU 与 Ray 一起使用
问题描述
我正在使用 带有 2 个 GPU的异步 Hyperband 调度程序https://ray.readthedocs.io/en/latest/tune-schedulers.html?highlight=hyperband 。我的机器配置有 2 个 GPU 和 12 个 GPU。但是,一次只能进行一次试验,而一次可以同时进行 2 次试验。
我指定
ray.init(num_gpus=torch.cuda.device_count())
"resources_per_trial": {
"cpu": 4,
"gpu": int(args.cuda)}
解决方案
推荐阅读
- jquery - 在移动 boostrap 4 上禁用模式
- javascript - 使用 JavaScript 在文本区域中添加文本
- cordova - framework7 V1中的滑动滑块在第一张和最后一张图像之后和之前创建空白页
- haskell - 如何在递归 IO 操作中使用累加器
- git - Git 在目录 (cd) 中和使用 `work-tree` 参数有什么区别?
- css - 无法居中 CSS 形状和文本
- vue.js - 为什么我的计算未定义
- reactjs - redux-form 多个同名表单;如何不覆盖同步错误
- c# - 更改 Objectlistview 中的列大小
- ios - 指针的自定义对象数组都指向同一个对象