-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Granite to model builder (#1153)
### Description This PR adds [IBM's Granite](https://www.ibm.com/new/ibm-granite-3-0-open-state-of-the-art-enterprise-models) models to the model builder. It also adds the following improvements to the model builder: 1. Always unpack any packed weights in the attention and MLP layers 2. Insert optional Add nodes if the MLP layer has a bias (the [Granite code models](https://huggingface.co/collections/ibm-granite/granite-code-models-6624c5cec322e4c148c8b330) use the LLaMA architecture but with biases included) 3. Use `gate_up_proj` or `dense_h_to_4h` as the attribute name when unpacking weights in the MLP layer ### Motivation and Context Granite is a family of foundation models from IBM.
- Loading branch information
1 parent
41c2543
commit 9143cfd
Showing
5 changed files
with
164 additions
and
73 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.