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
a7ae2b5b
Unverified
Commit
a7ae2b5b
authored
Mar 05, 2024
by
Dongruixuan Li
Committed by
GitHub
Mar 05, 2024
Browse files
[eval-hotfix] set few_shot_data to None when few shot is disabled (#5422)
parent
049121d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
applications/ColossalEval/colossal_eval/dataset/agieval.py
applications/ColossalEval/colossal_eval/dataset/agieval.py
+1
-1
No files found.
applications/ColossalEval/colossal_eval/dataset/agieval.py
View file @
a7ae2b5b
...
@@ -201,7 +201,7 @@ class AGIEvalDataset(BaseDataset):
...
@@ -201,7 +201,7 @@ class AGIEvalDataset(BaseDataset):
for
file
in
files
:
for
file
in
files
:
dataset_name
=
os
.
path
.
basename
(
file
)[
0
:
-
len
(
".jsonl"
)]
dataset_name
=
os
.
path
.
basename
(
file
)[
0
:
-
len
(
".jsonl"
)]
few_shot_data
=
[]
few_shot_data
=
None
if
few_shot
:
if
few_shot
:
# process demo once if it is few-shot-CoT
# process demo once if it is few-shot-CoT
few_shot_data
=
combine_prompt
(
prompt_path
,
dataset_name
,
load_explanation
=
False
,
chat_mode
=
False
)
few_shot_data
=
combine_prompt
(
prompt_path
,
dataset_name
,
load_explanation
=
False
,
chat_mode
=
False
)
...
...
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