deasdutta commited on
Commit
273520e
Β·
1 Parent(s): 5839061

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,7 +18,7 @@ from transformers import (
18
 
19
 
20
  model_name = "mosaicml/mpt-7b-chat"
21
- max_new_tokens = 1536
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=8192,
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