Skip to content

Commit

Permalink
[shardformer] pp+tp+zero1
Browse files Browse the repository at this point in the history
  • Loading branch information
flybird11111 committed Aug 28, 2023
1 parent d2c17d7 commit 78b50f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_shardformer/test_model/test_shard_t5.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def check_forward_backward(model_fn, data_gen_fn, output_transform_fn, loss_fn,
org_optimizer.step()
sharded_optimizer.step()
if test_config['precision'] == 'fp32':
atol, rtol = 1e-4, 1e-3
atol, rtol = 5e-4, 1e-3
else:
atol, rtol = 5e-3, 5e-3
if stage_manager is None or stage_manager.is_first_stage():
Expand Down

0 comments on commit 78b50f1

Please sign in to comment.