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
84025a43
Commit
84025a43
authored
Aug 05, 2024
by
lintangsutawika
Browse files
resolved left out merge
parent
17396935
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
lm_eval/api/samplers.py
lm_eval/api/samplers.py
+0
-11
No files found.
lm_eval/api/samplers.py
View file @
84025a43
...
@@ -83,16 +83,6 @@ class ContextSampler:
...
@@ -83,16 +83,6 @@ class ContextSampler:
else
self
.
doc_to_choice
(
doc
)[
doc_content
]
else
self
.
doc_to_choice
(
doc
)[
doc_content
]
)
)
labeled_examples
+=
self
.
target_delimiter
labeled_examples
+=
self
.
target_delimiter
<<<<<<<
HEAD
labeled_examples
+=
(
str
(
doc_target
[
0
])
if
isinstance
(
doc_target
,
list
)
else
str
(
doc_target
)
if
self
.
config
.
doc_to_choice
is
None
or
isinstance
(
doc_target
,
str
)
else
str
(
self
.
doc_to_choice
(
doc
)[
doc_target
])
)
labeled_examples
+=
self
.
fewshot_delimiter
=======
if
doc_target
!=
""
:
if
doc_target
!=
""
:
labeled_examples
+=
(
labeled_examples
+=
(
str
(
doc_target
[
0
])
str
(
doc_target
[
0
])
...
@@ -102,7 +92,6 @@ class ContextSampler:
...
@@ -102,7 +92,6 @@ class ContextSampler:
else
str
(
self
.
doc_to_choice
(
doc
)[
doc_target
])
else
str
(
self
.
doc_to_choice
(
doc
)[
doc_target
])
)
)
labeled_examples
+=
self
.
fewshot_delimiter
labeled_examples
+=
self
.
fewshot_delimiter
>>>>>>>
mmlu
-
pro
-
changes
return
labeled_examples
return
labeled_examples
...
...
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