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
OpenDAS
opencompass
Commits
7d9e3868
Unverified
Commit
7d9e3868
authored
Oct 13, 2023
by
Leymore
Committed by
GitHub
Oct 13, 2023
Browse files
[Fix] Split if and only if complete eos string shows up (#477)
parent
861942ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
opencompass/tasks/openicl_eval.py
opencompass/tasks/openicl_eval.py
+1
-1
No files found.
opencompass/tasks/openicl_eval.py
View file @
7d9e3868
...
...
@@ -207,7 +207,7 @@ class OpenICLEvalTask(BaseTask):
if
end_str
:
# TODO: Support calling tokenizer for the accurate eos token
# and avoid such hardcode
end_idx
=
s
.
find
(
end_str
[:
1
]
,
start
)
end_idx
=
s
.
find
(
end_str
,
start
)
if
end_idx
!=
-
1
:
end
=
end_idx
...
...
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