Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
b36e67cb
Unverified
Commit
b36e67cb
authored
May 05, 2023
by
Tong Li
Committed by
GitHub
May 05, 2023
Browse files
Merge pull request #3680 from digger-yu/digger-yu-patch-2
fix spelling error with applications/Chat/evaluate/
parents
307894f7
8ba78587
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
applications/Chat/evaluate/evaluate.py
applications/Chat/evaluate/evaluate.py
+1
-1
applications/Chat/evaluate/generate_gpt35_answers.py
applications/Chat/evaluate/generate_gpt35_answers.py
+1
-1
No files found.
applications/Chat/evaluate/evaluate.py
View file @
b36e67cb
...
...
@@ -130,7 +130,7 @@ def evaluate(args):
assert
answer1_jsons
[
i
][
'id'
]
==
answer2_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
][
'inst
r
uction'
]
+
\
" "
+
answer1_jsons
[
i
][
'input'
]
cat
=
answer1_jsons
[
i
][
'category'
]
ans1
=
answer1_jsons
[
i
][
'output'
]
...
...
applications/Chat/evaluate/generate_gpt35_answers.py
View file @
b36e67cb
...
...
@@ -35,7 +35,7 @@ logger = logging.getLogger(__name__)
def
get_answer
(
question
:
str
,
max_tokens
:
int
):
answer
=
question
prompt
=
question
[
'instruction'
]
if
question
[
'input'
]
==
""
else
question
[
'instuction'
]
+
\
prompt
=
question
[
'instruction'
]
if
question
[
'input'
]
==
""
else
question
[
'inst
r
uction'
]
+
\
" "
+
question
[
'input'
]
for
_
in
range
(
MAX_API_RETRY
):
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment