Add skip_special_tokens checkbox for Dolly model (#1218)
This commit is contained in:
parent
a9c7ef4159
commit
b937c9d8c2
9 changed files with 35 additions and 15 deletions
|
@ -61,6 +61,7 @@ class Handler(BaseHTTPRequestHandler):
|
|||
'custom_stopping_strings': body.get('custom_stopping_strings', []),
|
||||
'truncation_length': int(body.get('truncation_length', 2048)),
|
||||
'ban_eos_token': bool(body.get('ban_eos_token', False)),
|
||||
'skip_special_tokens': bool(body.get('skip_special_tokens', True)),
|
||||
}
|
||||
|
||||
generator = generate_reply(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue