stevengrove commited on
Commit
0439a5a
1 Parent(s): 0164d1b

change default token length

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -64,10 +64,9 @@ def predict_example(temperature, top_p, max_new_token, keep_last_n_paragraphs, i
64
  if __name__ == '__main__':
65
  parser = argparse.ArgumentParser()
66
  parser.add_argument('--temperature', type=float, default=0.0, help='temperature for the llm model')
67
- parser.add_argument('--max_new_tokens', type=int, default=128, help='max number of new tokens to generate')
68
  parser.add_argument('--top_p', type=float, default=1.0, help='top_p for the llm model')
69
  parser.add_argument('--top_k', type=int, default=40, help='top_k for the llm model')
70
- parser.add_argument('--num_beams', type=int, default=4, help='num_beams for the llm model')
71
  parser.add_argument('--keep_last_n_paragraphs', type=int, default=0, help='keep last n paragraphs in the memory')
72
  args = parser.parse_args()
73
 
 
64
  if __name__ == '__main__':
65
  parser = argparse.ArgumentParser()
66
  parser.add_argument('--temperature', type=float, default=0.0, help='temperature for the llm model')
67
+ parser.add_argument('--max_new_tokens', type=int, default=256, help='max number of new tokens to generate')
68
  parser.add_argument('--top_p', type=float, default=1.0, help='top_p for the llm model')
69
  parser.add_argument('--top_k', type=int, default=40, help='top_k for the llm model')
 
70
  parser.add_argument('--keep_last_n_paragraphs', type=int, default=0, help='keep last n paragraphs in the memory')
71
  args = parser.parse_args()
72