Skip to content

Commit 265f1f2

Browse files
committed
tilng
1 parent 82a238f commit 265f1f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

benchmarks/base_classes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,10 @@ def __init__(self, pretrained_model_name_or_path, dtype, tiling, **kwargs):
377377
self.dtype = getattr(torch, dtype)
378378
model = self.model_class.from_pretrained(pretrained_model_name_or_path, torch_dtype=self.dtype, **kwargs).eval()
379379
model = model.to("cuda")
380+
self.tiling = False
380381
if tiling:
381382
model.enable_tiling()
382-
self.tiling = True
383+
self.tiling = True
383384
self.model = model
384385
self.model_class_name = str(self.model.__class__.__name__)
385386
self.pretrained_model_name_or_path = pretrained_model_name_or_path

0 commit comments

Comments
 (0)