-
Notifications
You must be signed in to change notification settings - Fork 606
Qualcomm AI Engine Direct - LLAMA2 Infrastructure #2020
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
Conversation
chunit-quic
commented
Feb 21, 2024
- OPs
- Add pow_tensor_scalar op
- Add rsqrt op
- Add sigmoid op
- Refine axis handling of cat op
- Refine parameters related functions
- Passes
- Add AnnotateDecomposed for unbind and stak op
- Add DecomposeSilu for quantizer
- Add ReplaceInfBuffer for quantizer
- Change pass name ConvertAddmmmmWithLinear to ConvertToLinear
- Change pass name ConvertScaledDotProductAttention to DecomposeScaledDotProductAttention
- Support more args for sdpa op in DecomposeScaledDotProductAttention
- Support mm case for ConvertToLinear
- Move q_ops and dq_ops to pass/utils.py
- Tests
- Add dummy llama2 test script
- Add single op test cases
- Others
- Fix error of popping missing buffer
- Reorder the order of test models
- Reorder the order of op in qnn_constant
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/2020
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Merge Blocking SEVsThere is 1 active merge blocking SEVs. Please view them below:
If you must merge, use ✅ No FailuresAs of commit fab30bc with merge base 8fed60b ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@cccclai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@cccclai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
1. OPs - Add pow_tensor_scalar op - Add rsqrt op - Add sigmoid op - Refine axis handling of cat op - Refine parameters related functions 2. Passes - Add AnnotateDecomposed for unbind and stak op - Add DecomposeSilu for quantizer - Add ReplaceInfBuffer for quantizer - Change pass name ConvertAddmmmmWithLinear to ConvertToLinear - Change pass name ConvertScaledDotProductAttention to DecomposeScaledDotProductAttention - Support more args for sdpa op in DecomposeScaledDotProductAttention - Support mm case for ConvertToLinear - Move q_ops and dq_ops to pass/utils.py 3. Tests - Add dummy llama2 test script - Add single op test cases 4. Others - Fix error of popping missing buffer - Reorder the order of test models - Reorder the order of op in qnn_constant
abbadfc
to
fab30bc
Compare
@cccclai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@@ -250,7 +250,10 @@ def _partition_and_lower_one_graph_module( | |||
# Delete the consumed buffers | |||
buffer_name = toplevel_signature.inputs_to_buffers.pop(node.name) | |||
toplevel_signature.buffers.remove(buffer_name) | |||
owning_program.state_dict.pop(buffer_name) | |||
if buffer_name in owning_program.state_dict: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh thanks for catching this case