Skip to content

Commit e690c0e

Browse files
authored
tests(transformers): increase the OLMo models test error passing threshold for BF16 (#1358)
1 parent 6b2e5a7 commit e690c0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/transformers_tests/models/olmo/test_modeling_olmo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
)
2727
from tests.transformers_tests.models.modeling_common import ids_numpy
2828

29-
DTYPE_AND_THRESHOLDS = {"fp32": 5e-4, "fp16": 5e-3, "bf16": 5e-3}
29+
DTYPE_AND_THRESHOLDS = {"fp32": 5e-4, "fp16": 5e-3, "bf16": 1e-2}
3030
MODES = [0, 1]
3131

3232

tests/transformers_tests/models/olmo2/test_modeling_omo2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
)
2727
from tests.transformers_tests.models.modeling_common import ids_numpy
2828

29-
DTYPE_AND_THRESHOLDS = {"fp32": 5e-4, "fp16": 5e-3, "bf16": 5e-3}
29+
DTYPE_AND_THRESHOLDS = {"fp32": 5e-4, "fp16": 5e-3, "bf16": 1e-2}
3030
MODES = [0, 1]
3131

3232

0 commit comments

Comments
 (0)