Skip to content

Commit

Permalink
#0: REVERT ME - CHECKING TIMES
Browse files Browse the repository at this point in the history
  • Loading branch information
tt-rkim committed May 13, 2024
1 parent 47b677e commit 9eaee71
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions models/demos/metal_BERT_large_11/tests/test_perf_bert11.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ def run_perf_bert11(
@pytest.mark.parametrize(
"batch_size, model_config_str, expected_inference_time, expected_compile_time, inference_iterations",
(
[7, "BFLOAT8_B-SHARDED", 0.0364, 10, 10],
[8, "BFLOAT8_B-SHARDED", 0.0364, 10, 10],
[12, "BFLOAT8_B-SHARDED", 0.0364, 10, 10],
[7, "BFLOAT8_B-SHARDED", 0.01, 1, 10],
[8, "BFLOAT8_B-SHARDED", 0.01, 1, 10],
[12, "BFLOAT8_B-SHARDED", 0.01, 1, 10],
),
)
def test_perf_bare_metal(
Expand Down
2 changes: 1 addition & 1 deletion models/demos/resnet/tests/test_perf_accuracy_resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def run_perf_resnet(
@pytest.mark.models_performance_bare_metal
@pytest.mark.parametrize(
"batch_size, expected_inference_time, expected_compile_time, iterations",
((16, 0.015, 33, 160), (20, 0.0185, 33, 160)),
((16, 0.001, 3, 160), (20, 0.001, 3, 160)),
)
def test_perf_bare_metal(
device,
Expand Down
8 changes: 4 additions & 4 deletions models/demos/resnet/tests/test_perf_resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ def run_perf_resnet(
@pytest.mark.parametrize(
"batch_size, expected_inference_time, expected_compile_time",
(
(1, 0.015, 25),
(2, 0.015, 25),
(16, 0.0135, 25), # Issue 7816 Inference time
(20, 0.0135, 25), # Issue 7816 Inference time
(1, 0.001, 1),
(2, 0.001, 1),
(16, 0.001, 1), # Issue 7816 Inference time
(20, 0.001, 1), # Issue 7816 Inference time
),
)
def test_perf_bare_metal(
Expand Down
10 changes: 5 additions & 5 deletions models/demos/ttnn_falcon7b/tests/test_perf_falcon.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,11 @@ def convert_to_ttnn(model, name):
@pytest.mark.parametrize(
"llm_mode, batch, seq_len, kv_cache_len, expected_inference_time",
(
("prefill", 1, 128, 0, 0.30),
("prefill", 1, 256, 0, 0.44),
("decode", 32, 1, 128, 0.27),
("decode", 32, 1, 1024, 0.35),
("decode", 32, 1, 2047, 0.48),
("prefill", 1, 128, 0, 0.01),
("prefill", 1, 256, 0, 0.01),
("decode", 32, 1, 128, 0.01),
("decode", 32, 1, 1024, 0.01),
("decode", 32, 1, 2047, 0.01),
),
ids=[
"prefill_seq128",
Expand Down
6 changes: 3 additions & 3 deletions tests/ttnn/integration_tests/bert/test_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ def preprocess_inputs(

def get_expected_times(bert):
return {
ttnn_bert: (15, 32),
ttnn_optimized_bert: (12, 0.08),
ttnn_optimized_sharded_bert: (12, 0.08),
ttnn_bert: (0.1, 0.1),
ttnn_optimized_bert: (0.1, 0.1),
ttnn_optimized_sharded_bert: (0.1, 0.1),
}[bert]


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, 23, 0.04)], ## pass
[("ResNet50", 20, ttnn.bfloat8_b, ttnn.bfloat8_b, ttnn.MathFidelity.LoFi, 0.01, 0.001)], ## pass
)
def test_performance(
device,
Expand Down
4 changes: 2 additions & 2 deletions tests/ttnn/integration_tests/whisper/test_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

def get_expected_times(functional_whisper):
return {
ttnn_functional_whisper: (30.0, 7.0),
ttnn_optimized_functional_whisper: (30.0, 7.0),
ttnn_functional_whisper: (0.1, 0.1),
ttnn_optimized_functional_whisper: (0.1, 0.1),
}[functional_whisper]


Expand Down

0 comments on commit 9eaee71

Please sign in to comment.