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
5ce8e045
Unverified
Commit
5ce8e045
authored
Feb 28, 2024
by
Fengzhe Zhou
Committed by
GitHub
Feb 28, 2024
Browse files
[Fix] Fix type hint in IFEval (#915)
parent
53fe788d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
opencompass/datasets/IFEval/evaluation_main.py
opencompass/datasets/IFEval/evaluation_main.py
+5
-5
No files found.
opencompass/datasets/IFEval/evaluation_main.py
View file @
5ce8e045
...
...
@@ -16,7 +16,7 @@
# limitations under the License.
import
dataclasses
from
typing
import
Dict
,
Optional
,
Union
from
typing
import
Dict
,
List
,
Optional
,
Union
from
absl
import
flags
...
...
@@ -43,18 +43,18 @@ _OUTPUT_DIR = flags.DEFINE_string(
@
dataclasses
.
dataclass
class
InputExample
:
key
:
int
instruction_id_list
:
l
ist
[
str
]
instruction_id_list
:
L
ist
[
str
]
prompt
:
str
kwargs
:
l
ist
[
Dict
[
str
,
Optional
[
Union
[
str
,
int
]]]]
kwargs
:
L
ist
[
Dict
[
str
,
Optional
[
Union
[
str
,
int
]]]]
@
dataclasses
.
dataclass
class
OutputExample
:
instruction_id_list
:
l
ist
[
str
]
instruction_id_list
:
L
ist
[
str
]
prompt
:
str
response
:
str
follow_all_instructions
:
bool
follow_instruction_list
:
l
ist
[
bool
]
follow_instruction_list
:
L
ist
[
bool
]
def
test_instruction_following_strict
(
...
...
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