forked from quic/efficient-transformers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Model Updates]: Update the rope calculations (quic#87)
* [Llama]: Update the rope calculations - Update Pytorch Base Transforms to include the InitMapping - Seperate the InitMapping module and apply the corresponding transform Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * Remove init mapping and initilize at module mapping 1. Initialize the modified QEff. rotary embedding at the Module mapping transform 2. Setattr, based on the instance check Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * update transformers to v4.44.2 Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * update the InitMapping transform to __qeff_init__() calls Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * pass cache_position as None in the KVTransform tests Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * update packages, torch and peft Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * updates to model for transformers v4.44.2 1. Also add support for CB on [Phi, Phi3, Qwen2] Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * remove bool from the attention_mask Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * Added condition while decoder layer during non CB execution Signed-off-by: Rishin Raj <rishinr@qti.qualcomm.com> * Added model in get_lists_of_cb_qeff_models Signed-off-by: Rishin Raj <rishinr@qti.qualcomm.com> * update to setup details to include torch cpu version only Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * add peft to the setup Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * update lint format in the toml Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * update lint format in the toml, v1 Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * update lint format in the toml, v2 Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * fix linter Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * fix license Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * add license headers to the setup Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * update toml Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * fix setup Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> * fix setup issues, modify toml and remove setup Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> --------- Signed-off-by: vbaddi <quic_vbaddi@quicinc.com> Signed-off-by: Rishin Raj <rishinr@qti.qualcomm.com> Co-authored-by: Rishin Raj <quic_rishinr@quicinc.com>
- Loading branch information
1 parent
34e29f8
commit 67922d7
Showing
14 changed files
with
903 additions
and
439 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.