Skip to content

Commit 860fa37

Browse files
authored
Update autoround.py
1 parent a9e9a38 commit 860fa37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

neural_compressor/torch/algorithms/weight_only/autoround.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ def convert(self, model: torch.nn.Module, *args, **kwargs):
268268
if tokenizer is not None:
269269
delattr(model.orig_model, "tokenizer")
270270
elif pipe is None:
271+
tokenizer = "Placeholder"
271272
self.dataset = CapturedDataloader(model.args_list, model.kwargs_list)
272273
model = model.orig_model
273274
if pipe is not None:

0 commit comments

Comments
 (0)