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
gaoqiong
lm-evaluation-harness
Commits
cd30267a
Commit
cd30267a
authored
Jul 10, 2025
by
Baber
Browse files
fix fewshot
parent
c239a8d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/config/task.py
lm_eval/config/task.py
+1
-1
No files found.
lm_eval/config/task.py
View file @
cd30267a
...
@@ -207,7 +207,7 @@ class TaskConfig(dict):
...
@@ -207,7 +207,7 @@ class TaskConfig(dict):
# ---setup fewshot config--- #
# ---setup fewshot config--- #
_fewshot_cfg
=
self
.
fewshot_config
if
self
.
fewshot_config
is
not
None
else
{}
_fewshot_cfg
=
self
.
fewshot_config
if
self
.
fewshot_config
is
not
None
else
{}
self
.
fewshot_cfg
=
FewshotConfig
(
self
.
fewshot_cfg
=
FewshotConfig
(
num_fewshot
=
lambda
:
self
.
num_fewshot
or
_fewshot_cfg
[
"num_fewshot"
]
,
num_fewshot
=
lambda
:
self
.
num_fewshot
or
_fewshot_cfg
.
get
(
"num_fewshot"
,
0
)
,
split
=
self
.
fewshot_split
,
split
=
self
.
fewshot_split
,
sampler
=
_fewshot_cfg
.
get
(
"sampler"
,
"default"
),
sampler
=
_fewshot_cfg
.
get
(
"sampler"
,
"default"
),
samples
=
_fewshot_cfg
.
get
(
"samples"
,
None
),
samples
=
_fewshot_cfg
.
get
(
"samples"
,
None
),
...
...
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