Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opt LN_sharded and SMX_sharded #4147

Merged
merged 5 commits into from
Dec 7, 2023
Merged

Opt LN_sharded and SMX_sharded #4147

merged 5 commits into from
Dec 7, 2023

Conversation

yugaoTT
Copy link
Contributor

@yugaoTT yugaoTT commented Dec 2, 2023

  1. for SMX, remove wait_front to avoid unpacker packer sync
  2. for LN, finished compute for one block in one run before switching to another compute section.

@@ -171,7 +171,7 @@ def test_perf_virtual_machine(
@pytest.mark.models_performance_bare_metal
@pytest.mark.parametrize(
"expected_inference_time, expected_compile_time, inference_iterations",
([0.0375, 10, 10],),
([0.0364, 10, 10],),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To tighten inference time tolerance, please run the model 3 times on CI and average the inference time and consider 15% tolerance.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the advice, I have ran it for 3 times and passed with fps ~338

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @farbabi, if there is no other things needs change/test, could I get an approval? thanks

@yugaoTT
Copy link
Contributor Author

yugaoTT commented Dec 6, 2023

@boris-drazic just a reminder that the PR needs your approval :). I'd appreciate it if you can take a look at the changes

@yugaoTT yugaoTT merged commit 5aeccad into main Dec 7, 2023
3 checks passed
@tt-aho tt-aho deleted the BERT_large_sharded branch June 25, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bert metal tt-metal issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants