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
e1c46787
Commit
e1c46787
authored
Aug 19, 2023
by
baberabb
Browse files
add print to view result on CI
parent
a004fdc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tests/models/test_huggingface.py
tests/models/test_huggingface.py
+1
-0
No files found.
tests/models/test_huggingface.py
View file @
e1c46787
...
...
@@ -90,6 +90,7 @@ class Test_HFLM:
def
test_logliklihood
(
self
)
->
None
:
res
=
self
.
LM
.
loglikelihood
(
self
.
MULTIPLE_CH
)
_RES
,
_res
=
[
r
[
0
]
for
r
in
self
.
MULTIPLE_CH_RES
],
[
r
[
0
]
for
r
in
res
]
print
(
_res
)
assert
np
.
allclose
(
_res
,
_RES
,
atol
=
1e-2
)
# check indices for Multiple Choice
argmax_RES
,
argmax_res
=
np
.
argmax
(
...
...
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