mirror of https://github.com/hpcaitech/ColossalAI
Merge pull request #3680 from digger-yu/digger-yu-patch-2
fix spelling error with applications/Chat/evaluate/pull/3688/head
commit
b36e67cb2b
|
@ -130,7 +130,7 @@ def evaluate(args):
|
||||||
assert answer1_jsons[i]['id'] == answer2_jsons[i]['id']
|
assert answer1_jsons[i]['id'] == answer2_jsons[i]['id']
|
||||||
answer_id = answer1_jsons[i]['id']
|
answer_id = answer1_jsons[i]['id']
|
||||||
|
|
||||||
ques = answer1_jsons[i]['instruction'] if answer1_jsons[i]['input'] == "" else answer1_jsons[i]['instuction'] + \
|
ques = answer1_jsons[i]['instruction'] if answer1_jsons[i]['input'] == "" else answer1_jsons[i]['instruction'] + \
|
||||||
" " + answer1_jsons[i]['input']
|
" " + answer1_jsons[i]['input']
|
||||||
cat = answer1_jsons[i]['category']
|
cat = answer1_jsons[i]['category']
|
||||||
ans1 = answer1_jsons[i]['output']
|
ans1 = answer1_jsons[i]['output']
|
||||||
|
|
|
@ -35,7 +35,7 @@ logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
def get_answer(question: str, max_tokens: int):
|
def get_answer(question: str, max_tokens: int):
|
||||||
answer = question
|
answer = question
|
||||||
prompt = question['instruction'] if question['input'] == "" else question['instuction'] + \
|
prompt = question['instruction'] if question['input'] == "" else question['instruction'] + \
|
||||||
" " + question['input']
|
" " + question['input']
|
||||||
for _ in range(MAX_API_RETRY):
|
for _ in range(MAX_API_RETRY):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue