Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
)
from tests.transformers_tests.models.modeling_common import ids_numpy

DTYPE_AND_THRESHOLDS = {"fp32": 5e-4, "fp16": 5e-3, "bf16": 5e-3}
DTYPE_AND_THRESHOLDS = {"fp32": 5e-4, "fp16": 5e-3, "bf16": 1e-2}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This DTYPE_AND_THRESHOLDS constant is also defined in tests/transformers_tests/models/olmo2/test_modeling_omo2.py. To improve maintainability and prevent potential inconsistencies, consider moving this constant to a shared module like tests/transformers_tests/models/modeling_common.py and importing it in both test files.

MODES = [0, 1]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
)
from tests.transformers_tests.models.modeling_common import ids_numpy

DTYPE_AND_THRESHOLDS = {"fp32": 5e-4, "fp16": 5e-3, "bf16": 5e-3}
DTYPE_AND_THRESHOLDS = {"fp32": 5e-4, "fp16": 5e-3, "bf16": 1e-2}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This DTYPE_AND_THRESHOLDS constant is also defined in tests/transformers_tests/models/olmo/test_modeling_olmo.py. To improve maintainability and prevent potential inconsistencies, consider moving this constant to a shared module like tests/transformers_tests/models/modeling_common.py and importing it in both test files.

MODES = [0, 1]


Expand Down