acecalisto3 commited on
Commit
0db7296
·
verified ·
1 Parent(s): 1c49656

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -45,29 +45,23 @@ RESPONSE: {resp}
45
 
46
  COMPRESS_HISTORY_PROMPT = """
47
  You are a helpful AI assistant. Your task is to compress the following history into a summary that is no longer than 512 tokens.
48
-
49
  History:
50
  {history}
51
  """
52
 
53
  ACTION_PROMPT = """
54
  You are a helpful AI assistant. You are working on the task: {task}
55
-
56
  Your current history is:
57
  {history}
58
-
59
  What is your next thought?
60
  thought:
61
-
62
  What is your next action?
63
  action:
64
-
65
  """
66
 
67
  TASK_PROMPT = """
68
  You are a helpful AI assistant. Your current history is:
69
  {history}
70
-
71
  What is the next task?
72
  task:
73
  """
@@ -75,7 +69,6 @@ task:
75
  UNDERSTAND_TEST_RESULTS_PROMPT = """
76
  You are a helpful AI assistant. The test results are:
77
  {test_results}
78
-
79
  What do you want to know about the test results?
80
  thought:
81
  """
@@ -100,7 +93,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=32000,
104
  top_p=0.99,
105
  repetition_penalty=1.0,
106
  do_sample=True,
 
45
 
46
  COMPRESS_HISTORY_PROMPT = """
47
  You are a helpful AI assistant. Your task is to compress the following history into a summary that is no longer than 512 tokens.
 
48
  History:
49
  {history}
50
  """
51
 
52
  ACTION_PROMPT = """
53
  You are a helpful AI assistant. You are working on the task: {task}
 
54
  Your current history is:
55
  {history}
 
56
  What is your next thought?
57
  thought:
 
58
  What is your next action?
59
  action:
 
60
  """
61
 
62
  TASK_PROMPT = """
63
  You are a helpful AI assistant. Your current history is:
64
  {history}
 
65
  What is the next task?
66
  task:
67
  """
 
69
  UNDERSTAND_TEST_RESULTS_PROMPT = """
70
  You are a helpful AI assistant. The test results are:
71
  {test_results}
 
72
  What do you want to know about the test results?
73
  thought:
74
  """
 
93
  logging.info(f"Seed: {seed}") # Log the seed
94
  generate_kwargs = dict(
95
  temperature=1.0,
96
+ max_new_tokens=max_tokens,
97
  top_p=0.99,
98
  repetition_penalty=1.0,
99
  do_sample=True,