Skip to content

Commit bbc070e

Browse files
committed
fix device
1 parent b4d2758 commit bbc070e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bigcodebench/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def __init__(self, name: str, dataset: str, **kwargs):
179179
self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
180180

181181
kwargs = {}
182-
kwargs["device_map"] = "cuda:0"
182+
kwargs["device_map"] = "auto"
183183
kwargs["trust_remote_code"] = self.trust_remote_code
184184
# string to torch dtype
185185
kwargs["torch_dtype"] = getattr(torch, self.dtype)

0 commit comments

Comments
 (0)