Skip to content

Commit 2ac9219

Browse files
committed
specified device_map=auto
1 parent b57731b commit 2ac9219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tensor_parallel/test_tensor_parallel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def _test_model_dense_forward_impl(rank, mode):
234234

235235
# Load non-TP model and move to same device as TP model
236236
device = model_tp.device
237-
model = AutoModelForCausalLM.from_pretrained(model_id, dtype="auto")
237+
model = AutoModelForCausalLM.from_pretrained(model_id, dtype="auto", device_map="auto")
238238
model = model.to(device)
239239

240240
if mode == "eval":

0 commit comments

Comments
 (0)