Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ from transformers import (
|
|
| 18 |
|
| 19 |
|
| 20 |
model_name = "mosaicml/mpt-7b-chat"
|
| 21 |
-
max_new_tokens =
|
| 22 |
|
| 23 |
# # small testing model:
|
| 24 |
# model_name = "gpt2"
|
|
@@ -33,7 +33,7 @@ m = AutoModelForCausalLM.from_pretrained(
|
|
| 33 |
torch_dtype=torch.bfloat16,
|
| 34 |
trust_remote_code=True,
|
| 35 |
use_auth_token=auth_token,
|
| 36 |
-
max_seq_len=
|
| 37 |
).cuda()
|
| 38 |
tok = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True, use_auth_token=auth_token)
|
| 39 |
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
model_name = "mosaicml/mpt-7b-chat"
|
| 21 |
+
max_new_tokens = 7000
|
| 22 |
|
| 23 |
# # small testing model:
|
| 24 |
# model_name = "gpt2"
|
|
|
|
| 33 |
torch_dtype=torch.bfloat16,
|
| 34 |
trust_remote_code=True,
|
| 35 |
use_auth_token=auth_token,
|
| 36 |
+
max_seq_len=10000,
|
| 37 |
).cuda()
|
| 38 |
tok = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True, use_auth_token=auth_token)
|
| 39 |
|