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
28018833
Unverified
Commit
28018833
authored
Jan 27, 2024
by
Jingming
Committed by
GitHub
Jan 27, 2024
Browse files
[Fix] Fix acc of IFEval (#849)
* [Feature] Add IFEval * [Fix] Changing the Score Rule.
parent
35aace77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
configs/datasets/IFEval/IFEval.md
configs/datasets/IFEval/IFEval.md
+4
-4
opencompass/datasets/IFEval/ifeval.py
opencompass/datasets/IFEval/ifeval.py
+1
-1
No files found.
configs/datasets/IFEval/IFEval.md
View file @
28018833
...
@@ -36,10 +36,10 @@ Hark! Hearken to the tale of thy journey to the land of the rising sun, Japan. \
...
@@ -36,10 +36,10 @@ Hark! Hearken to the tale of thy journey to the land of the rising sun, Japan. \
## Evaluation results
## Evaluation results
```
```
dataset version metric mode
internlm2-chat-20
b-hf
dataset version metric mode
qwen-72b-chat-hf mistral-7b-instruct-v0.2-hf mixtral-8x7b-instruct-v0.1 chatglm3-6
b-hf
--------- --------- ---------- ------ -----------------------
--------- --------- ---------- ------ ------------------
----------------------------- ---------------------------- -----------
-----
IFEval
3321a3
strict_acc gen
0.33
IFEval
27a9cc
strict_acc gen
43.62 49.17 48.98 29.76
IFEval
3321a3
loose_acc gen
0.4
IFEval
27a9cc
loose_acc gen
45.47
53.97 54.71 32.16
```
```
## Reference
## Reference
...
...
opencompass/datasets/IFEval/ifeval.py
View file @
28018833
...
@@ -50,4 +50,4 @@ class IFEvaluator(BaseEvaluator):
...
@@ -50,4 +50,4 @@ class IFEvaluator(BaseEvaluator):
loose
=
sum
(
loose
=
sum
(
[
result
[
'loose'
].
follow_all_instructions
[
result
[
'loose'
].
follow_all_instructions
for
result
in
results
])
/
len
(
results
)
for
result
in
results
])
/
len
(
results
)
return
dict
(
strict_acc
=
strict
,
loose_acc
=
loose
)
return
dict
(
strict_acc
=
strict
*
100
,
loose_acc
=
loose
*
100
)
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