rwitz commited on
Commit
807f045
1 Parent(s): f2c19e5

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -16,7 +16,7 @@ def handler(event):
16
  sampling_params=inp['sampling_params']
17
  max=sampling_params['max_new_tokens']
18
  temp=sampling_params['temperature']
19
- return pipe(prompt,max_new_tokens=max,temperature=temp)
20
 
21
  runpod.serverless.start({
22
  "handler": handler
 
16
  sampling_params=inp['sampling_params']
17
  max=sampling_params['max_new_tokens']
18
  temp=sampling_params['temperature']
19
+ return pipe(prompt,max_new_tokens=max,temperature=temp,pad_token_id = 50256,do_sample=True)
20
 
21
  runpod.serverless.start({
22
  "handler": handler