-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Define model_builder.DecodeOnlyModel as a base of model re-authoring. - Use model_builder.build_decode_only_model() to build models with model_builder.DecodeOnlyModel. - Gemma2 defines its own nn.Model. - Llama and Phi3.5 inherits model_builder.DecodeOnlyModel. - All others including Gemma1 and Phi2 just use model_builder.DecodeOnlyModel as is. - Add embedding_scale and lm_head_share_weight_with_embedding to model config. - Switch Llama 1b and 3b with a command line flag instead of separate py files. PiperOrigin-RevId: 681568633
- Loading branch information
1 parent
b076be8
commit 5a7e1cf
Showing
19 changed files
with
302 additions
and
684 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
68 changes: 0 additions & 68 deletions
68
ai_edge_torch/generative/examples/llama/convert_3b_to_tflite.py
This file was deleted.
Oops, something went wrong.
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.