Skip to content

Commit

Permalink
Refine the tolerances for -np 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
wujingyue committed Sep 7, 2024
1 parent 98b4fbd commit 14ac700
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/cpp/test_multidevice_transformer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ TEST_P(DistributedTransformerTest, MLP_Backward) {
expected_outputs,
outputs,
{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
{1e-5, 1e-5, 1e-5, 1e-5, 0.05, 1e-5, 0.01});
{1e-5, 0.2, 1e-5, 0.01, 0.2, 0.01, 0.01});
}

TEST_P(DistributedTransformerTest, MHA_Backward) {
Expand Down Expand Up @@ -900,7 +900,7 @@ TEST_P(DistributedTransformerTest, MHA_Backward) {
expected_outputs,
out,
{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
{1e-5, 1e-5, 1e-5, 1e-4, 1e-4, 0.1, 0.1, 0.1, 0.01});
{1e-5, 0.02, 1e-5, 1e-5, 1e-5, 0.1, 0.1, 0.02, 0.01});
}

TEST_P(DistributedTransformerTest, Forward) {
Expand Down Expand Up @@ -1013,7 +1013,7 @@ TEST_P(DistributedTransformerTest, Forward) {
expected_outputs,
outputs,
{0.0, 0.0, 0.0, 0.0, 0.0},
{1e-5, 0.01, 0.01, 0.01, 0.02});
{1e-5, 0.01, 0.01, 0.02, 0.02});
}

INSTANTIATE_TEST_SUITE_P(
Expand Down

0 comments on commit 14ac700

Please sign in to comment.