Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -21,7 +21,7 @@ class EndpointHandler():
|
|
21 |
# 'mosaicml/mpt-7b',
|
22 |
trust_remote_code=True,
|
23 |
torch_dtype=torch.bfloat16,
|
24 |
-
max_seq_len=
|
25 |
)
|
26 |
|
27 |
self.tokenizer = transformers.AutoTokenizer.from_pretrained('EleutherAI/gpt-neox-20b')
|
@@ -48,7 +48,7 @@ class EndpointHandler():
|
|
48 |
temperature=0.1,
|
49 |
top_p=0.15,
|
50 |
top_k=0,
|
51 |
-
max_new_tokens=
|
52 |
repetition_penalty=1.1
|
53 |
)
|
54 |
|
|
|
21 |
# 'mosaicml/mpt-7b',
|
22 |
trust_remote_code=True,
|
23 |
torch_dtype=torch.bfloat16,
|
24 |
+
max_seq_len=32000
|
25 |
)
|
26 |
|
27 |
self.tokenizer = transformers.AutoTokenizer.from_pretrained('EleutherAI/gpt-neox-20b')
|
|
|
48 |
temperature=0.1,
|
49 |
top_p=0.15,
|
50 |
top_k=0,
|
51 |
+
max_new_tokens=2048,
|
52 |
repetition_penalty=1.1
|
53 |
)
|
54 |
|