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
57ce579c
Commit
57ce579c
authored
Nov 16, 2023
by
haileyschoelkopf
Browse files
widen HF model test tolerance
parent
1eed1cb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/models/test_huggingface.py
tests/models/test_huggingface.py
+1
-1
No files found.
tests/models/test_huggingface.py
View file @
57ce579c
...
@@ -115,7 +115,7 @@ class Test_HFLM:
...
@@ -115,7 +115,7 @@ class Test_HFLM:
def
test_logliklihood_rolling
(
self
)
->
None
:
def
test_logliklihood_rolling
(
self
)
->
None
:
res
=
self
.
LM
.
loglikelihood_rolling
(
self
.
ROLLING
)
res
=
self
.
LM
.
loglikelihood_rolling
(
self
.
ROLLING
)
assert
np
.
allclose
(
res
,
self
.
ROLLING_RES
,
atol
=
1e-
2
)
assert
np
.
allclose
(
res
,
self
.
ROLLING_RES
,
atol
=
1e-
1
)
def
test_toc_encode
(
self
)
->
None
:
def
test_toc_encode
(
self
)
->
None
:
res
=
self
.
LM
.
tok_encode
(
"foo bar"
)
res
=
self
.
LM
.
tok_encode
(
"foo bar"
)
...
...
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