use AutoTokenizer to enable more models (#9446)
This commit is contained in:
parent
ece5805572
commit
0ecb9efb05
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ index 00000000..74010da3
|
||||||
+ self._device = device
|
+ self._device = device
|
||||||
+ self.model = model.to(device)
|
+ self.model = model.to(device)
|
||||||
+
|
+
|
||||||
+ self.tokenizer = LlamaTokenizer.from_pretrained(pretrained, trust_remote_code=True)
|
+ self.tokenizer = AutoTokenizer.from_pretrained(pretrained, trust_remote_code=True)
|
||||||
+
|
+
|
||||||
+ # setup for automatic batch size detection
|
+ # setup for automatic batch size detection
|
||||||
+ if batch_size == 'auto':
|
+ if batch_size == 'auto':
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue