allenai / allenai/allenact

Rename "gpu_ids" parameter to "worker_devices".

未关闭
#146 2 条评论 0 个 reaction 已指派 1 人 已被 @jordis-ai2 认领 在 GitHub 查看
enhancement
主要语言
Python
星标
383
派生
59
PR 合并指标
30 天内没有已合并 PR

描述

## Problem

Currently the devices workers use is set by a `"gpu_ids"` dictionary entry in the `machine_params` method of a config file. This is a bit strange as these devices can (e.g. for debugging) be cpus.

## Solution

Let's rename `"gpu_ids"` to something more evocative (e.g. `"worker_devices"` or `"distributed_devices"`).

## Dependencies

None.

## Warnings

This will be a breaking change.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。