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
abe05c5d
"vscode:/vscode.git/clone" did not exist on "e440c7ac531c93f1b851a9a4eed8feacde5cd982"
Unverified
Commit
abe05c5d
authored
Jun 21, 2023
by
Hailey Schoelkopf
Committed by
GitHub
Jun 21, 2023
Browse files
remove reference to undef `self.delimiter`
parent
a575d9e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lm_eval/api/samplers.py
lm_eval/api/samplers.py
+2
-2
No files found.
lm_eval/api/samplers.py
View file @
abe05c5d
...
...
@@ -31,11 +31,11 @@ class Sampler:
selected_docs
=
[
x
for
x
in
fewshotex
if
x
!=
doc
][:
num_fewshot
]
labeled_examples
=
(
self
.
delimiter
.
join
(
self
.
fewshot_
delimiter
.
join
(
[
# TODO: is separating doc_to_text and doc_to_target by one space always desired?
self
.
task
.
doc_to_text
(
doc
)
+
self
.
fewsho
t_delimiter
+
self
.
targe
t_delimiter
+
self
.
task
.
doc_to_target
(
doc
)
for
doc
in
selected_docs
]
...
...
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