[cuda kernels] only compile them when initializing#29133
Merged
ArthurZucker merged 12 commits intomainfrom Feb 20, 2024
Merged
Conversation
cuda kernels] only compile them when initializing
ArthurZucker
commented
Feb 20, 2024
ArthurZucker
commented
Feb 20, 2024
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
ArthurZucker
commented
Feb 20, 2024
amyeroberts
approved these changes
Feb 20, 2024
Contributor
amyeroberts
left a comment
There was a problem hiding this comment.
Great - thanks for fixing!
As long as the model tests pass in an env with ninja installed I think it's good to go!
Collaborator
Author
|
I'll make sure of that before merging! Testing now! |
Collaborator
Author
FAILED tests/models/deformable_detr/test_modeling_deformable_detr.py::DeformableDetrModelIntegrationTests::test_inference_object_detection_head - AssertionError: False is not true
FAILED tests/models/deformable_detr/test_modeling_deformable_detr.py::DeformableDetrModelIntegrationTests::test_inference_object_detection_head_equivalence_cpu_gpu - AssertionError: assert False
FAILED tests/models/deformable_detr/test_modeling_deformable_detr.py::DeformableDetrModelIntegrationTests::test_inference_object_detection_head_with_box_refine_two_stage - AssertionError: False is not truefailing. Logits do no match, failing on main as well FAILED tests/models/deta/test_modeling_deta.py::DetaModelIntegrationTests::test_inference_object_detection_head - AssertionError: False is not true
FAILED tests/models/deta/test_modeling_deta.py::DetaModelIntegrationTests::test_inference_object_detection_head_swin_backbone - AssertionError: False is not truefailing as well on main. Merging Yoso is alright |
EduardoPach
reviewed
Feb 24, 2024
|
|
||
| global MultiScaleDeformableAttention | ||
|
|
||
| root = Path(__file__).resolve().parent.parent.parent / "kernels" / "deta" |
Contributor
There was a problem hiding this comment.
Hey @ArthurZucker, was it intended for the root to be deta related?
Contributor
There was a problem hiding this comment.
@EduardoPach I think this is a copy-pasta. Would you like to open a PR to fix?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes #29130, from 1min to 6seconds