|
26 | 26 |
|
27 | 27 | def test_te_with_default_config(tmp_path): |
28 | 28 | train_loss = launch_accelerate("default.yaml", tmp_path, 1, "L0_sanity_amplify") |
29 | | - assert train_loss < 6.0, f"Final train_loss {train_loss} should be less than 6.0" |
| 29 | + assert train_loss < 3.0, f"Final train_loss {train_loss} should be less than 3.0" |
30 | 30 |
|
31 | 31 |
|
32 | 32 | def test_te_with_dynamo_config(tmp_path): |
33 | 33 | train_loss = launch_accelerate("dynamo.yaml", tmp_path, 1, "L0_sanity_amplify") |
34 | | - assert train_loss < 6.0, f"Final train_loss {train_loss} should be less than 6.0" |
| 34 | + assert train_loss < 3.0, f"Final train_loss {train_loss} should be less than 3.0" |
35 | 35 |
|
36 | 36 |
|
37 | 37 | def test_te_with_fp8_config(tmp_path): |
38 | 38 | train_loss = launch_accelerate("fp8.yaml", tmp_path, 1, "L0_sanity_amplify") |
39 | | - assert train_loss < 6.0, f"Final train_loss {train_loss} should be less than 6.0" |
| 39 | + assert train_loss < 3.0, f"Final train_loss {train_loss} should be less than 3.0" |
40 | 40 |
|
41 | 41 |
|
42 | 42 | def test_te_with_fsdp2_config(tmp_path): |
43 | 43 | train_loss = launch_accelerate("fsdp2_te.yaml", tmp_path, 1, "L0_sanity_amplify") |
44 | | - assert train_loss < 6.0, f"Final train_loss {train_loss} should be less than 6.0" |
| 44 | + assert train_loss < 3.0, f"Final train_loss {train_loss} should be less than 3.0" |
45 | 45 |
|
46 | 46 |
|
47 | 47 | @requires_multi_gpu |
48 | 48 | def test_te_with_default_config_two_gpus(tmp_path): |
49 | 49 | train_loss = launch_accelerate("default.yaml", tmp_path, 2, "L0_sanity_amplify") |
50 | | - assert train_loss < 6.0, f"Final train_loss {train_loss} should be less than 6.0" |
| 50 | + assert train_loss < 3.0, f"Final train_loss {train_loss} should be less than 3.0" |
51 | 51 |
|
52 | 52 |
|
53 | 53 | @requires_multi_gpu |
54 | 54 | def test_te_with_fp8_config_two_gpus(tmp_path): |
55 | 55 | train_loss = launch_accelerate("fp8.yaml", tmp_path, 2, "L0_sanity_amplify") |
56 | | - assert train_loss < 6.0, f"Final train_loss {train_loss} should be less than 6.0" |
| 56 | + assert train_loss < 3.0, f"Final train_loss {train_loss} should be less than 3.0" |
57 | 57 |
|
58 | 58 |
|
59 | 59 | @requires_multi_gpu |
60 | 60 | def test_te_with_fsdp2_config_two_gpus(tmp_path): |
61 | 61 | train_loss = launch_accelerate("fsdp2_te.yaml", tmp_path, 2, "L0_sanity_amplify") |
62 | | - assert train_loss < 6.0, f"Final train_loss {train_loss} should be less than 6.0" |
| 62 | + assert train_loss < 3.0, f"Final train_loss {train_loss} should be less than 3.0" |
0 commit comments