Skip to content

Commit

Permalink
#0: Update some perf thresholds, check desc (#8756)
Browse files Browse the repository at this point in the history
- ttnn resnet 50 batch 20 e2e compile time slight regression to 15
  seconds
- slight improvements to on-device perf for ttnn bert and ttlib resnet50
  batch 16
  • Loading branch information
tt-rkim authored May 23, 2024
1 parent e681231 commit 1d8c3f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion models/demos/bert/tests/test_perf_device_bert.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@pytest.mark.parametrize(
"batch_size, test, expected_perf",
[
[8, "384-8-phiyodr/bert-large-finetuned-squad2", 248],
[8, "384-8-phiyodr/bert-large-finetuned-squad2", 252],
],
)
def test_perf_device_bare_metal(batch_size, test, expected_perf):
Expand Down
2 changes: 1 addition & 1 deletion models/demos/resnet/tests/test_perf_device_resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@pytest.mark.parametrize(
"batch_size, test, expected_perf",
[
[16, "HiFi2-activations_BFLOAT8_B-weights_BFLOAT8_B-batch_16-24576", 5420],
[16, "HiFi2-activations_BFLOAT8_B-weights_BFLOAT8_B-batch_16-24576", 5460],
[20, "HiFi2-activations_BFLOAT8_B-weights_BFLOAT8_B-batch_20-24576", 5780],
[16, "LoFi-activations_BFLOAT8_B-weights_BFLOAT8_B-batch_16-24576", 6940],
[20, "LoFi-activations_BFLOAT8_B-weights_BFLOAT8_B-batch_20-24576", 7500],
Expand Down
2 changes: 1 addition & 1 deletion tests/ttnn/integration_tests/resnet/test_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_perf_device_bare_metal(batch_size, test, expected_perf):
@pytest.mark.parametrize("device_l1_small_size", [24576], indirect=True)
@pytest.mark.parametrize(
"model_name,batch_size,act_dtype,weight_dtype,math_fidelity,expected_compile_time,expected_inference_time",
[("ResNet50", 20, ttnn.bfloat8_b, ttnn.bfloat8_b, ttnn.MathFidelity.LoFi, 14.3, 0.015)], ## pass
[("ResNet50", 20, ttnn.bfloat8_b, ttnn.bfloat8_b, ttnn.MathFidelity.LoFi, 15, 0.015)],
)
def test_performance(
device,
Expand Down

0 comments on commit 1d8c3f6

Please sign in to comment.