Improve benchmark (#1140)

This commit is contained in:
Lianmin Zheng
2024-08-17 17:43:23 -07:00
committed by GitHub
parent cdc8d60752
commit 57d0bd91ec
8 changed files with 111 additions and 678 deletions

View File

@@ -65,10 +65,9 @@ def main(args):
def get_one_answer(i):
answer = call_generate(
prompt=few_shot_examples + questions[i],
# prompt="System: " + few_shot_examples + "<|separator|>\n\n" + questions[i],
temperature=0,
max_tokens=256,
stop="Question",
stop=["Question", "Assistant:", "<|separator|>"],
)
states[i] = answer