-
Notifications
You must be signed in to change notification settings - Fork 19.7k
Model Export to liteRT #21674
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
Open
pctablet505
wants to merge
148
commits into
keras-team:master
Choose a base branch
from
pctablet505:export
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,695
−14
Open
Model Export to liteRT #21674
Changes from all commits
Commits
Show all changes
148 commits
Select commit
Hold shift + click to select a range
04cd682
Update nn.py
pctablet505 1a74465
Update nn.py
pctablet505 c11eb81
Update nn.py
pctablet505 c81e18c
Update nn.py
pctablet505 d938e20
Update nn.py
pctablet505 f60811e
Update nn.py
pctablet505 b3ae323
Merge branch 'master' of https://github.com/pctablet505/keras
pctablet505 28eeb24
Update random_grayscale.py
pctablet505 de81e5b
Update keras/src/layers/preprocessing/image_preprocessing/random_gray…
pctablet505 66661ac
Update random_grayscale_test.py
pctablet505 c37f2b5
code reformat
pctablet505 498dece
Update random_grayscale_test.py
pctablet505 b0b5f63
Merge branch 'master' of https://github.com/pctablet505/keras
pctablet505 653f5b1
changed compute_output_spec
pctablet505 e681e4c
Merge branch 'keras-team:master' into master
pctablet505 27ad80b
Update random_grayscale.py
pctablet505 50f6292
Merge branch 'master' of https://github.com/pctablet505/keras
pctablet505 579cc11
Reapply "Fixed issue with dot_product_attention when using TPU. (#21…
pctablet505 7a0c547
Improve error handling in _can_use_flash_attention for better debugging
pctablet505 f7a2290
Revert "Improve error handling in _can_use_flash_attention for better…
pctablet505 8bae892
Fix JAX API compatibility and improve error handling in `_can_use_fla…
pctablet505 ee196cd
Updated `dot_product_attention`
pctablet505 40583c8
Update nn.py
pctablet505 7c918ba
Update nn.py
pctablet505 a927e7e
Merge branch 'keras-team:master' into master
pctablet505 f04eafa
Merge branch 'keras-team:master' into master
pctablet505 bbc29a7
Merge branch 'keras-team:master' into master
pctablet505 bac3416
Merge branch 'keras-team:master' into master
pctablet505 98877eb
Created using Colab
pctablet505 39c559b
Merge branch 'keras-team:master' into master
pctablet505 417e4b1
Delete Model_Pruning.ipynb
pctablet505 14bfd9b
Merge branch 'master' of https://github.com/pctablet505/keras
pctablet505 9d34d0a
Merge branch 'keras-team:master' into master
pctablet505 837506d
Add LiteRT (TFLite) export support to Keras
pctablet505 631850e
Update lite_rt_exporter.py
pctablet505 f5aa72e
Update export_utils.py
pctablet505 2b952d6
Refactor LiteRTExporter to simplify TFLite conversion
pctablet505 8f81dd5
Refactor import structure to avoid circular dependencies
pctablet505 011f1d8
trying kerashub
pctablet505 9a99a32
Enhance LiteRT export for sequence models and large models
pctablet505 d0070c6
Update lite_rt_exporter.py
pctablet505 761793f
Update lite_rt_exporter.py
pctablet505 7bb0506
Prevent tensor overflow for large vocabulary models
pctablet505 c219eb1
Update export_utils.py
pctablet505 e26ff6b
Update lite_rt_exporter.py
pctablet505 4a32e04
Simplify TFLite export and sequence length safety checks
pctablet505 20d29a8
Merge branch 'keras-team:master' into master
pctablet505 3aca2f6
Merge branch 'keras-team:master' into export
pctablet505 926b0a8
Refactor TFLite export logic and add simple exporter
pctablet505 441a778
Merge branch 'export' of https://github.com/pctablet505/keras into ex…
pctablet505 4a8a9d5
Improve export robustness for large vocab and Keras-Hub models
pctablet505 f4b43b4
Update lite_rt_exporter.py
pctablet505 0fe4bd5
Update lite_rt_exporter.py
pctablet505 8c3faa3
Update lite_rt_exporter.py
pctablet505 88b6a6f
Update lite_rt_exporter.py
pctablet505 da13d04
Update lite_rt_exporter.py
pctablet505 f1f700c
Update lite_rt_exporter.py
pctablet505 5944780
Update lite_rt_exporter.py
pctablet505 4404c39
Update lite_rt_exporter.py
pctablet505 6a119fb
Update lite_rt_exporter.py
pctablet505 e469244
Merge branch 'keras-team:master' into master
pctablet505 4cec7cd
Merge branch 'keras-team:master' into export
pctablet505 3a7fcc4
Merge branch 'keras-team:master' into export
pctablet505 51a1c7f
Remove sequence length bounding from export utils
pctablet505 e1fca24
Delete test_keras_hub_export.py
pctablet505 fd197d9
Merge branch 'keras-team:master' into master
pctablet505 214558a
Merge branch 'keras-team:master' into export
pctablet505 73f00f1
Rename LiteRT exporter to Litert and update references
pctablet505 ebf11e2
Enhance LiteRT exporter and expand export tests
pctablet505 c6f0c70
Refactor LiteRT exporter to use module_utils.litert
pctablet505 a6746e1
Merge branch 'keras-team:master' into master
pctablet505 3c1d90a
Simplify export_litert return value and messaging
pctablet505 657a271
Merge branch 'keras-team:master' into export
pctablet505 8ce8bfa
Merge branch 'export' of https://github.com/pctablet505/keras into ex…
pctablet505 cd9d063
Update export_utils.py
pctablet505 fa3d3ed
Refactor input signature inference for export
pctablet505 e775ff2
simplified code
pctablet505 34b662d
Refactor LiteRT exporter and update import paths
pctablet505 33b0550
Merge branch 'keras-team:master' into export
pctablet505 cbe0229
Refactor import statements for export_utils functions
pctablet505 e52de85
Update saved_model.py
pctablet505 87af9ed
Update litert.py
pctablet505 c643772
Add conditional TensorFlow import for LiteRT export
pctablet505 f243a6e
reformat
pctablet505 d8236fa
Update litert_test.py
pctablet505 83577be
Update litert_test.py
pctablet505 c53b264
Update litert_test.py
pctablet505 487184d
Update litert_test.py
pctablet505 374d90b
Update requirements-tensorflow-cuda.txt
pctablet505 6a5597d
Merge branch 'keras-team:master' into master
pctablet505 e843f7e
Merge branch 'keras-team:master' into export
pctablet505 f99a103
Add litert_kwargs support to LiteRT export
pctablet505 d01a4cb
Update model.py
pctablet505 52440e1
Refactor LiteRT export wrapper and test setup
pctablet505 794d85d
Update export_utils.py
pctablet505 7a46f78
Replace print statements with io_utils.print_msg and logging
pctablet505 d2b90eb
typo fix
pctablet505 191f802
set verbose to True by default
pctablet505 b736ede
removed unnecessary variable
pctablet505 27f1d07
Rename LitertExporter to LiteRTExporter
pctablet505 17dccf2
Update litert.py
pctablet505 3e16ab3
Update export_utils.py
pctablet505 efbc6d3
Fix input signature inference and doc formatting
pctablet505 7825983
Update export_utils.py
pctablet505 676a53c
Update litert.py
pctablet505 4b6386e
Update litert.py
pctablet505 79f05c8
Update litert_test.py
pctablet505 a22eb65
Update litert.py
pctablet505 315f7f6
Merge branch 'keras-team:master' into master
pctablet505 4efae3e
Merge branch 'keras-team:master' into export
pctablet505 f019a0a
Add support for extra TFLite converter settings via kwargs
pctablet505 5067904
Merge branch 'export' of https://github.com/pctablet505/keras into ex…
pctablet505 1c8dbcd
Update litert.py
pctablet505 ff4a81e
Update .gitignore from master
pctablet505 bcd965b
Merge branch 'keras-team:master' into export
pctablet505 022cce8
Add LiteRT export optimization tests and update doc
pctablet505 820f73b
Merge branch 'export' of https://github.com/pctablet505/keras into ex…
pctablet505 85e878b
Add tests for LiteRT AOT compilation support
pctablet505 1005063
Update LiteRT export backend check in Model
pctablet505 c984a6b
Update litert_test.py
pctablet505 809f6bc
Merge branch 'keras-team:master' into export
pctablet505 30e4cdd
Merge branch 'keras-team:master' into master
pctablet505 65dc0f9
Update litert.py
pctablet505 dd1cfbd
Fix model call with multiple positional arguments
pctablet505 4bf2e80
Add comprehensive SignatureDef tests for LiteRT export
pctablet505 4773089
Improve error reporting for AOT compilation failure
pctablet505 d98cca1
Add support for dictionary model inputs in LiteRTExporter
pctablet505 11bb4be
Add tests for dict input adapter in LiteRT export
pctablet505 0f9f214
Update litert_test.py
pctablet505 ddf911f
Simplify LiteRT export error and remove verbose param
pctablet505 2a46ab3
Update litert.py
pctablet505 26ac160
Remove model build step from LiteRTExporter
pctablet505 7c5cb3f
Remove LiteRT AOT compilation support
pctablet505 537880f
Refactor import statements in litert.py
pctablet505 211b44d
Raise ValueError for invalid TFLite file extension
pctablet505 4199c69
Refactor tracked collection conversion and add _get_save_spec
pctablet505 d376afb
Refactor TFLite conversion fallback and add verbose option
pctablet505 66acb8f
Remove verbose argument from LiteRT export functions
pctablet505 3c2a4be
Enable resource variables for TFLite conversion
pctablet505 071c819
Remove unused _has_dict_inputs method from LiteRTExporter
pctablet505 f17422c
Refactor converter kwargs handling in LiteRTExporter
pctablet505 a550fcc
Update litert.py
pctablet505 b8267c6
Remove SavedModel fallback in TFLite conversion
pctablet505 46ead2f
Refactor to use local keras layers and models imports
pctablet505 b523552
Refactor input signature handling for TFLite export
pctablet505 ada71de
Add ai-edge-litert to requirements.txt
pctablet505 00088c9
Fix input signature handling in LiteRTExporter
pctablet505 42407e8
Merge master into export: Sync with upstream Keras changes
pctablet505 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.