Skip to content

Conversation

pytorchbot
Copy link
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #7038
^ Please use this as the source of truth for the PR details, comments, and reviews
ghstack PR base: https://github.com/pytorch/executorch/tree/gh/kimishpatel/146/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/kimishpatel/146/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/kimishpatel/144/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/kimishpatel/146/orig
@diff-train-skip-merge

Copy link

pytorch-bot bot commented Dec 5, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7211

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 5c05f89 with merge base 3be3b92 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 5, 2024
@dbort dbort requested a review from kimishpatel December 5, 2024 21:48
Base automatically changed from gh/kimishpatel/144/orig to main December 6, 2024 15:25
@kimishpatel
Copy link
Contributor

@pytorchbot rebase -b main

…age dir

Pull Request resolved: #7038

Just looking at the location of the source file. In this case custom_ops.py,
can, and does, yield to wrong location depending on where you import custom_ops
from.

If you are importing custom_ops from another source file inside extension
folder, e.g. builder.py that is in extensions/llm/export, then, I think,
custom_ops gets resolved to the one installed in site-packages or pip package.

But if this is imported from say
examples/models/llama/source_transformations/quantized_kv_cache.py (Like in the
in next PR), then it seems to resolve to the source location. In one of the CI
this is /pytorch/executorch.

Now depending on which directory your filepath resolves to, you will search for
lib in that. This of course does not work when filepath resolves to source
location.

This PR changes that to resolve to package location.
ghstack-source-id: 256711930

//unit-test-arm broken in trunk
@bypass-github-export-checks
@exported-using-ghexport

Differential Revision: [D66385480](https://our.internmc.facebook.com/intern/diff/D66385480/)
@kimishpatel kimishpatel force-pushed the gh/kimishpatel/146/orig branch from ce7a29c to 5c05f89 Compare December 6, 2024 19:25
@kimishpatel kimishpatel merged commit 97a7452 into main Dec 6, 2024
41 checks passed
@kimishpatel kimishpatel deleted the gh/kimishpatel/146/orig branch December 6, 2024 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants