Tidzo commited on
Commit
8cdab11
1 Parent(s): 21aed2a

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -55,9 +55,9 @@ class EndpointHandler():
55
  output = self.model.generate(
56
  input_ids=input_ids,
57
  attention_mask=attention_mask,
58
- max_new_tokens=100,
59
  eos_token_id=self.tokenizer.eos_token_id,
60
- pad_token_id=self.tokenizer.pad_token_id,
61
  )
62
  LOGGER.info("Parameters have not been giving for model generation")
63
 
 
55
  output = self.model.generate(
56
  input_ids=input_ids,
57
  attention_mask=attention_mask,
58
+ max_new_tokens=256,
59
  eos_token_id=self.tokenizer.eos_token_id,
60
+ pad_token_id=self.tokenizer.eos_token_id,
61
  )
62
  LOGGER.info("Parameters have not been giving for model generation")
63