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

Incorporate ttir_builder generated TTNNs as Load/Execute Tests in Explorer #2123

Open
wants to merge 51 commits into
base: main
Choose a base branch
from

Conversation

vprajapati-tt
Copy link
Contributor

@vprajapati-tt vprajapati-tt linked an issue Feb 25, 2025 that may be closed by this pull request
@vprajapati-tt
Copy link
Contributor Author

I'm honestly stuck with this test_execute_and_check_accuracy_data_exists I'm completely unable to repro it failing locally.


def test_execute_and_check_accuracy_data_exists():
# Get the test_mnist path
test_mnist_path = GET_TTNN_TEST()
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we hardcode this path instead of searching for it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is technically a build artifact, so I'm hesitant to hardcode the path. I think searching for it makes running tests locally easier as well.

test_mnist_path, {"optimizationPolicy": "Optimizer Disabled"}, timeout=300
)
result = convert_command_and_assert(test_mnist_path)
if "accuracy_data" not in result["graphs"][0]["overlays"]:
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the generated flatbuffer in CI have golden data? Does it have location data?

Are you able to check this from CI artifacts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it should have loc / golden data, I'll check the artifacts.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CI Artifacts contain both location + Golden Data. Perf data is printing out correctly, it is very bizarre that accuracy is not. I've run the test countless times locally and I'm unable to reproduce this behaviour. I wonder if there is some cached explorer functionality that it is invoking instead of this...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ran the artifact locally through tt-explorer. accuracy_data was present.

Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense to try putting the flatbuffer in the github repo and running the test on that? Curious if that would solve the problem.

I wonder if there is some cached explorer functionality that it is invoking instead of this...

We restart the model explorer server on each test, so i would suspect that there is no caching in that case.
You could also try to comment out all other tests and run just this one to see if something changes.

Copy link
Contributor

@odjuricicTT odjuricicTT left a comment

Choose a reason for hiding this comment

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

Explorer changes look good. We need to first fix the failing test tho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorporate ttir_builder into Explorer CI. Model Accuracy Overlay - TT-Explorer
4 participants