mirror of
https://github.com/wassname/prob_jsonformer.git
synced 2026-09-10 12:37:35 +08:00
, skip_special_tokens=True
This commit is contained in:
@@ -38,7 +38,7 @@ def _choice_tree(
|
||||
|
||||
next_choices = get_valid_next_choices(choices_tokens, current_tokens)
|
||||
if len(next_choices) == 0:
|
||||
s = tokenizer.decode(current_tokens)
|
||||
s = tokenizer.decode(current_tokens, skip_special_tokens=True)
|
||||
r = dict(prob=prob, choice=s)
|
||||
yield r
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user