acecalisto3 commited on
Commit
1c49656
·
verified ·
1 Parent(s): 94561bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -26,7 +26,7 @@ logging.basicConfig(
26
  ############################################
27
 
28
  VERBOSE = True
29
- MAX_HISTORY = 100
30
  #MODEL = "gpt-3.5-turbo" # "gpt-4"
31
 
32
  PREFIX = """
@@ -100,7 +100,7 @@ def run_gpt(
100
  logging.info(f"Seed: {seed}") # Log the seed
101
  generate_kwargs = dict(
102
  temperature=1.0,
103
- max_new_tokens=2096,
104
  top_p=0.99,
105
  repetition_penalty=1.0,
106
  do_sample=True,
@@ -162,7 +162,7 @@ def call_main(purpose, task, history, directory, action_input):
162
  resp = run_gpt(
163
  ACTION_PROMPT,
164
  stop_tokens=["observation:", "task:", "action:","thought:"],
165
- max_tokens=2096,
166
  purpose=purpose,
167
  task=task,
168
  history=history,
 
26
  ############################################
27
 
28
  VERBOSE = True
29
+ MAX_HISTORY = 5
30
  #MODEL = "gpt-3.5-turbo" # "gpt-4"
31
 
32
  PREFIX = """
 
100
  logging.info(f"Seed: {seed}") # Log the seed
101
  generate_kwargs = dict(
102
  temperature=1.0,
103
+ max_new_tokens=32000,
104
  top_p=0.99,
105
  repetition_penalty=1.0,
106
  do_sample=True,
 
162
  resp = run_gpt(
163
  ACTION_PROMPT,
164
  stop_tokens=["observation:", "task:", "action:","thought:"],
165
+ max_tokens=32000,
166
  purpose=purpose,
167
  task=task,
168
  history=history,