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
9aba053a
Commit
9aba053a
authored
Apr 28, 2022
by
Zdenek Kasner
Browse files
Remove custom max_length method
parent
5a62765b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
lm_eval/tasks/e2e_nlg_cleaned.py
lm_eval/tasks/e2e_nlg_cleaned.py
+0
-4
No files found.
lm_eval/tasks/e2e_nlg_cleaned.py
View file @
9aba053a
...
...
@@ -61,10 +61,6 @@ class E2E_NLG_Cleaned(PromptSourceTask):
def
stopping_criteria
(
self
):
return
'
\n
'
def
max_generation_length
(
self
):
# TODO check
return
512
def
invalid_doc_for_prompt
(
self
,
doc
)
->
bool
:
"""The QA prompts are not applicable to all the examples, we want to filter these out."""
return
self
.
prompt
.
name
.
endswith
(
"_qa"
)
...
...
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