Skip to content

Commit

Permalink
#0: Decrease num loops in trace stress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tt-asaigal committed Jun 28, 2024
1 parent d3bebbb commit dd8af37
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/ttnn/unit_tests/test_multi_device_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,12 @@ def run_op_chain_2(input_0, input_1, weight):
# Execute and verify trace against pytorch
torch_silu = torch.nn.SiLU()
torch_softmax = torch.nn.Softmax(dim=1)
for i in range(NUM_TRACE_LOOPS):
# Decrease loop count for larger shapes, since they time out on CI
num_trace_loops = NUM_TRACE_LOOPS
if shape == (1, 3, 1024, 1024):
num_trace_loops = 5

for i in range(num_trace_loops):
# Create torch inputs
torch_input_tensor_0 = torch.rand(
(t3k_device_mesh.get_num_devices(), shape[1], shape[2], shape[3]), dtype=torch.bfloat16
Expand Down

0 comments on commit dd8af37

Please sign in to comment.