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

Add xnnpack to llama runner mac & linux CI job #2677

Closed
wants to merge 1 commit into from

Conversation

lucylq
Copy link
Contributor

@lucylq lucylq commented Mar 26, 2024

Summary: Remake of D55290786, which is ghstack poisoned

Differential Revision: D55349949

Copy link

pytorch-bot bot commented Mar 26, 2024

🔗 Helpful Links

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

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

❌ 1 New Failure, 2 Unrelated Failures

As of commit 0b1e68c with merge base 08b644f (image):

NEW FAILURE - The following job has failed:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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 Mar 26, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55349949

lucylq added a commit to lucylq/executorch-1 that referenced this pull request Mar 26, 2024
Summary:

Remake of D55290786, which is ghstack poisoned

Differential Revision: D55349949
@lucylq lucylq force-pushed the export-D55349949 branch from f49ebe3 to 0dbc491 Compare March 26, 2024 01:10
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55349949

lucylq added a commit to lucylq/executorch-1 that referenced this pull request Mar 26, 2024
Summary:

Remake of D55290786, which is ghstack poisoned

Reviewed By: digantdesai

Differential Revision: D55349949
@lucylq lucylq force-pushed the export-D55349949 branch from 0dbc491 to 275304c Compare March 26, 2024 03:15
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55349949

lucylq added a commit to lucylq/executorch-1 that referenced this pull request Mar 26, 2024
Summary:

Remake of D55290786, which is ghstack poisoned

Reviewed By: digantdesai

Differential Revision: D55349949
@lucylq lucylq force-pushed the export-D55349949 branch from 275304c to f9f5dd6 Compare March 26, 2024 03:15
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55349949

@@ -90,6 +90,7 @@ jobs:
matrix:
dtype: [fp32]
build-tool: [buck2, cmake]
mode: [portable, xnnpack]
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 select quant mode rather than portable/xnnpack? Right now this is choosing xnnpack but its actually quantizing the model. Instead I think we should have quant mode be what's selected, and XNNPACK will be the quantized backend which runs 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.

Let's update in follow on, as we also want the pt2e quant path.

$<TARGET_FILE:optimized_native_cpu_ops_lib> \
LINKER:--no-whole-archive")
list(APPEND link_libraries optimized_native_cpu_ops_lib optimized_kernels
portable_kernels)
Copy link
Contributor

Choose a reason for hiding this comment

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

portable kernels is linked regardless of optimized? Can we move this outside of the if?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmn, optimized_native_cpu_ops_lib contains portable and optimized kernel registrations. If we don't have an optimized version of an op that's used by the model, we take the portable one.

"SHELL:LINKER:--whole-archive \
$<TARGET_FILE:portable_ops_lib> \
LINKER:--no-whole-archive")
target_link_options_shared_lib(portable_ops_lib)
endif()

target_link_libraries(llama_main PUBLIC gflags llama_runner)
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 add executorch here as well? This lib dep contains prim ops which need to be registered via target_link_options_shared_lib

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 - good catch

lucylq added a commit to lucylq/executorch-1 that referenced this pull request Mar 26, 2024
Summary:

Remake of D55290786, which is ghstack poisoned

Reviewed By: kimishpatel, digantdesai

Differential Revision: D55349949
@lucylq lucylq force-pushed the export-D55349949 branch from f9f5dd6 to d244721 Compare March 26, 2024 06:31
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55349949

lucylq added a commit to lucylq/executorch-1 that referenced this pull request Mar 26, 2024
Summary:

Remake of D55290786, which is ghstack poisoned

Reviewed By: kimishpatel, digantdesai

Differential Revision: D55349949
@lucylq lucylq force-pushed the export-D55349949 branch from d244721 to edb6eeb Compare March 26, 2024 06:32
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55349949

lucylq added a commit to lucylq/executorch-1 that referenced this pull request Mar 26, 2024
Summary:

Remake of D55290786, which is ghstack poisoned

Reviewed By: kimishpatel, digantdesai

Differential Revision: D55349949
@lucylq lucylq force-pushed the export-D55349949 branch from edb6eeb to eba55e5 Compare March 26, 2024 17:00
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55349949

lucylq added a commit to lucylq/executorch-1 that referenced this pull request Mar 26, 2024
Summary:

Remake of D55290786, which is ghstack poisoned

Reviewed By: kimishpatel, digantdesai

Differential Revision: D55349949
@lucylq lucylq force-pushed the export-D55349949 branch from eba55e5 to 31e03d3 Compare March 26, 2024 17:01
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55349949

lucylq added a commit to lucylq/executorch-1 that referenced this pull request Mar 26, 2024
Summary:

Remake of D55290786, which is ghstack poisoned

Reviewed By: kimishpatel, digantdesai

Differential Revision: D55349949
lucylq added a commit to lucylq/executorch-1 that referenced this pull request Mar 26, 2024
Summary:

Remake of D55290786, which is ghstack poisoned

Reviewed By: kimishpatel, digantdesai

Differential Revision: D55349949
@lucylq lucylq force-pushed the export-D55349949 branch from cbc28a6 to 256d19a Compare March 26, 2024 22:49
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55349949

lucylq added a commit to lucylq/executorch-1 that referenced this pull request Mar 27, 2024
Summary:

Remake of D55290786, which is ghstack poisoned

Reviewed By: kimishpatel, digantdesai

Differential Revision: D55349949
@lucylq lucylq force-pushed the export-D55349949 branch from 256d19a to 9baa0fa Compare March 27, 2024 00:30
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55349949

lucylq added a commit to lucylq/executorch-1 that referenced this pull request Mar 27, 2024
Summary:

Remake of D55290786, which is ghstack poisoned

Reviewed By: kimishpatel, digantdesai

Differential Revision: D55349949
@lucylq lucylq force-pushed the export-D55349949 branch from 9baa0fa to cbedd85 Compare March 27, 2024 00:31
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55349949

lucylq added a commit to lucylq/executorch-1 that referenced this pull request Mar 27, 2024
Summary:

Remake of D55290786, which is ghstack poisoned

Reviewed By: kimishpatel, digantdesai

Differential Revision: D55349949
@lucylq lucylq force-pushed the export-D55349949 branch from cbedd85 to e190519 Compare March 27, 2024 06:54
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55349949

lucylq added a commit to lucylq/executorch-1 that referenced this pull request Mar 27, 2024
Summary:

Remake of D55290786, which is ghstack poisoned

Reviewed By: kimishpatel, digantdesai

Differential Revision: D55349949
@lucylq lucylq force-pushed the export-D55349949 branch from e190519 to 7a0aafc Compare March 27, 2024 06:55
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55349949

lucylq added a commit to lucylq/executorch-1 that referenced this pull request Mar 27, 2024
Summary:

Remake of D55290786, which is ghstack poisoned

Reviewed By: kimishpatel, digantdesai

Differential Revision: D55349949
@lucylq lucylq force-pushed the export-D55349949 branch from 7a0aafc to 6ea379e Compare March 27, 2024 07:14
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55349949

lucylq added a commit to lucylq/executorch-1 that referenced this pull request Mar 27, 2024
Summary:

Remake of D55290786, which is ghstack poisoned

Reviewed By: kimishpatel, digantdesai

Differential Revision: D55349949
@lucylq lucylq force-pushed the export-D55349949 branch from 6ea379e to dce6601 Compare March 27, 2024 07:15
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55349949

Summary:

Remake of D55290786, which is ghstack poisoned

Reviewed By: kimishpatel, digantdesai

Differential Revision: D55349949
@lucylq lucylq force-pushed the export-D55349949 branch from dce6601 to 0b1e68c Compare March 27, 2024 17:43
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55349949

lucylq added a commit to lucylq/executorch-1 that referenced this pull request Mar 27, 2024
Summary:

Remake of D55290786, which is ghstack poisoned

bypass-github-export-checks

Reviewed By: kimishpatel, digantdesai

Differential Revision: D55349949
lucylq added a commit to lucylq/executorch-1 that referenced this pull request Mar 27, 2024
Summary:

Remake of D55290786, which is ghstack poisoned

bypass-github-export-checks

Reviewed By: kimishpatel, digantdesai

Differential Revision: D55349949
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 66c5fc8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants