mirror of
https://github.com/wassname/prob_jsonformer.git
synced 2026-09-09 11:29:57 +08:00
add pad_token_id to generate string
This commit is contained in:
@@ -117,6 +117,7 @@ class Jsonformer:
|
||||
stopping_criteria=[
|
||||
StringStoppingCriteria(self.tokenizer, len(input_tokens[0]))
|
||||
],
|
||||
pad_token_id=self.tokenizer.eos_token_id,
|
||||
)
|
||||
|
||||
# Some models output the prompt as part of the response
|
||||
|
||||
Reference in New Issue
Block a user