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
24321ad8
Commit
24321ad8
authored
Jun 20, 2023
by
lintangsutawika
Browse files
pre-commit reformat
parent
60e8803f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
docs/README.md
docs/README.md
+2
-2
docs/model_guide.md
docs/model_guide.md
+5
-5
lm_eval/api/task.py
lm_eval/api/task.py
+3
-1
No files found.
docs/README.md
View file @
24321ad8
docs/model_guide.md
View file @
24321ad8
lm_eval/api/task.py
View file @
24321ad8
...
@@ -436,7 +436,9 @@ class Task(abc.ABC):
...
@@ -436,7 +436,9 @@ class Task(abc.ABC):
# always prepend the (possibly empty) task description
# always prepend the (possibly empty) task description
labeled_examples
=
self
.
_config
.
description
labeled_examples
=
self
.
_config
.
description
else
:
else
:
labeled_examples
=
self
.
_config
.
description
+
self
.
sampler
.
get_context
(
doc
,
num_fewshot
)
labeled_examples
=
self
.
_config
.
description
+
self
.
sampler
.
get_context
(
doc
,
num_fewshot
)
example
=
self
.
doc_to_text
(
doc
)
example
=
self
.
doc_to_text
(
doc
)
return
labeled_examples
+
example
return
labeled_examples
+
example
...
...
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