Bump exllamav2 from 0.0.8 to 0.0.10 & Fix code change (#4782)
This commit is contained in:
parent
131a5212ce
commit
ac9f154bcc
10 changed files with 26 additions and 26 deletions
|
@ -131,7 +131,7 @@ class Exllamav2Model:
|
|||
token, _, _ = ExLlamaV2Sampler.sample(logits, settings, ids, random.random(), self.tokenizer)
|
||||
ids = torch.cat([ids, token], dim=1)
|
||||
|
||||
if i == 0 and self.tokenizer.tokenizer.IdToPiece(int(token)).startswith('▁'):
|
||||
if i == 0 and self.tokenizer.tokenizer.id_to_piece(int(token)).startswith('▁'):
|
||||
has_leading_space = True
|
||||
|
||||
decoded_text = self.tokenizer.decode(ids[:, initial_len:], decode_special_tokens=not state['skip_special_tokens'])[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue