[Gemini] remove static tracer (#2083)

This commit is contained in:
Jiarui Fang
2022-12-06 12:53:58 +08:00
committed by GitHub
parent 28ef3f29af
commit 1f99205827
4 changed files with 15 additions and 23 deletions

View File

@@ -117,7 +117,7 @@ def run_1d_hybrid_tp(model_name):
else:
output_torch = model_torch(data, label)
loss_torch = output_torch
assert torch.allclose(loss, loss_torch, rtol=1e-2)
assert torch.allclose(loss, loss_torch, rtol=1e-2), f"model_name {model_name} failed"
torch.distributed.barrier()
loss.backward()