Skip to content

Commit fdb56cf

Browse files
committed
updates
1 parent a906f77 commit fdb56cf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/models/test_modeling_common.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,9 +1748,7 @@ def test_wrong_device_map_raises_error(self, device_map, msg_substring):
17481748
with tempfile.TemporaryDirectory() as tmpdir:
17491749
model.save_pretrained(tmpdir)
17501750
with self.assertRaises(ValueError) as err_ctx:
1751-
_ = self.model_class.from_pretrained(
1752-
"hf-internal-testing/unet2d-sharded-dummy-subfolder", subfolder="unet", device_map=device_map
1753-
)
1751+
_ = self.model_class.from_pretrained(tmpdir, device_map=device_map)
17541752

17551753
assert msg_substring in str(err_ctx.exception)
17561754

0 commit comments

Comments
 (0)