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

Added compile fixture #37

Draft
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

markkraay
Copy link
Collaborator

@markkraay markkraay commented Aug 6, 2024

This MR adds a compile fixture to our integration test suite so that we can test ops both lazily and using the compiler API. Addresses #256.

@markkraay markkraay self-assigned this Aug 6, 2024
tripy/tests/integration/conftest.py Outdated Show resolved Hide resolved
tripy/tests/integration/conftest.py Outdated Show resolved Hide resolved
@markkraay markkraay force-pushed the dev-mkraay-fix-256-fixture-for-compile branch from 219f70f to c1df1e3 Compare August 6, 2024 20:18
@markkraay markkraay added the tripy Pull request for the tripy project label Aug 7, 2024
@markkraay markkraay force-pushed the dev-mkraay-fix-256-fixture-for-compile branch from 1571c22 to 1a386ed Compare August 12, 2024 17:27
Copy link
Collaborator Author

@markkraay markkraay left a comment

Choose a reason for hiding this comment

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

Moved here

@markkraay
Copy link
Collaborator Author

@pranavm-nvidia I will continue including details abt. failing test cases + MLIR dumps as I continue to enable compile_fixture for more tests. Let me know if there's any additional information / formatting that would be helpful :)

@pranavm-nvidia
Copy link
Collaborator

@pranavm-nvidia I will continue including details abt. failing test cases + MLIR dumps as I continue to enable compile_fixture for more tests. Let me know if there's any additional information / formatting that would be helpful :)

Could you also include the name of the failing test?

@markkraay markkraay force-pushed the dev-mkraay-fix-256-fixture-for-compile branch from b3ac379 to f424b2b Compare August 14, 2024 17:17


@pytest.fixture(params=["compile", "eager"])
def compile_fixture(request):
Copy link
Collaborator

Choose a reason for hiding this comment

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

#102 (comment)

compile_fixture should be able to specify which args are constants / parameters. For Q/DQ, scale should be Parameters.

@yizhuoz004
Copy link
Collaborator

I do not see a lot of value in testing so many low-level APIs in compile mode. What is the time impact on L0?

@markkraay markkraay force-pushed the dev-mkraay-fix-256-fixture-for-compile branch from 114ddf7 to e146aa1 Compare August 29, 2024 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tripy Pull request for the tripy project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants