Update handler.py
Browse files- 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=
|
59 |
eos_token_id=self.tokenizer.eos_token_id,
|
60 |
-
pad_token_id=self.tokenizer.
|
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 |
|