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
610e7e05
Commit
610e7e05
authored
Jan 17, 2025
by
Baber
Browse files
noqa
parent
46cb513b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/tasks/ruler/cwe_utils.py
lm_eval/tasks/ruler/cwe_utils.py
+1
-1
No files found.
lm_eval/tasks/ruler/cwe_utils.py
View file @
610e7e05
...
@@ -114,7 +114,7 @@ def sys_word_pair_random(
...
@@ -114,7 +114,7 @@ def sys_word_pair_random(
length
=
len
(
TOKENIZER
.
text_to_tokens
(
input_text
))
+
tokens_to_generate
length
=
len
(
TOKENIZER
.
text_to_tokens
(
input_text
))
+
tokens_to_generate
assert
length
<=
max_seq_length
,
f
"
{
length
}
exceeds max_seq_length."
assert
length
<=
max_seq_length
,
f
"
{
length
}
exceeds max_seq_length."
break
break
except
:
except
:
# noqa: E722
if
used_words
>
incremental
:
if
used_words
>
incremental
:
used_words
-=
incremental
used_words
-=
incremental
...
...
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