178 Commits

Author SHA1 Message Date
Google AI Edge
aaacec2896 This is an internal change
LiteRT-PiperOrigin-RevId: 849279059
2025-12-26 15:16:13 -08:00
Google AI Edge
27e34cd605 This is an internal change
LiteRT-PiperOrigin-RevId: 849278986
2025-12-26 15:13:07 -08:00
Chunlei Niu
0efd1366ae Align Qualcomm SDK versions.
LiteRT-PiperOrigin-RevId: 845805133
2025-12-17 09:43:08 -08:00
Andrew Zhang
eaf7d635e1 Update LiteRT Qairt dependency to 2.41.
LiteRT-PiperOrigin-RevId: 844977224
2025-12-15 17:03:53 -08:00
Chun-nien Chan
218834a27c Fork flatbuffer_utils to litert.
LiteRT-PiperOrigin-RevId: 844004548
2025-12-13 01:11:36 -08:00
Weiyi Wang
17afdfd86b No public description
LiteRT-PiperOrigin-RevId: 834506637
2025-11-19 17:24:54 -08:00
Terry Heo
9f6b524ada Rename libLiteRtRuntimeCApi.so to libLiteRt.so
LiteRT-PiperOrigin-RevId: 834384861
2025-11-19 11:54:26 -08:00
Chun-nien Chan
bcfd7f223a Setup copybara for model utils
LiteRT-PiperOrigin-RevId: 833978722
2025-11-18 14:48:29 -08:00
Chun-nien Chan
09ab28391d litert python stop building converter until symbol conflict is resolved
LiteRT-PiperOrigin-RevId: 832490258
2025-11-14 16:06:33 -08:00
Chun-nien Chan
2cc959c83a Setup MLIR py bindings in litert wheel
LiteRT-PiperOrigin-RevId: 831894981
2025-11-13 09:37:14 -08:00
Daniel Sosa
bf04708af9 Add support for structured dependencies in Python wheel builder.
LiteRT-PiperOrigin-RevId: 830992606
2025-11-11 11:11:00 -08:00
Chunlei Niu
00a580a9a9 Set ANDROID_NDK_API_LEVEL to 21 for LiteRT 1.x builds.
LiteRT-PiperOrigin-RevId: 828180397
2025-11-04 16:30:34 -08:00
Matt Kreileder
4a1e5f5637 Specify clang/llvm package installation requirements in docker files
LiteRT-PiperOrigin-RevId: 815812840
2025-10-06 11:27:24 -07:00
Terry Heo
9ed80d7bce Set default NDK level to 26
LiteRT-PiperOrigin-RevId: 811500284
2025-09-25 14:24:29 -07:00
Daniel Sosa
1626eaf626 remove converter pywrap API
LiteRT-PiperOrigin-RevId: 808214697
2025-09-17 10:43:55 -07:00
Amit Kumar
3607a9ce72 Add Google Tensor Backend for python.
LiteRT-PiperOrigin-RevId: 807968453
2025-09-16 21:08:18 -07:00
Weiyi Wang
519421aba0 No public description
LiteRT-PiperOrigin-RevId: 807723783
2025-09-16 09:27:22 -07:00
Terry Heo
f1f59d98f6 Use LiteRT dynamic C++ API for Python
Python needs to run CompilerPlugin which needs libLiteRtRuntimeCApi.so

LiteRT-PiperOrigin-RevId: 806129517
2025-09-11 22:42:25 -07:00
chuntl-qti
bbc1608ec8 PR #3060: Qualcomm AI Engine Direct - Support QnnBackend
Imported from GitHub PR https://github.com/google-ai-edge/LiteRT/pull/3060

Summary:
- Support QnnBackend interface
- Implement IrBackend
- Implement HtpBackend
- Limit weight sharing feature for HTP backend
- Add tests for utils_test
- Add unit tests for QnnBackend

Test Result (Commit: 5d8678e59ccf04193007c46a528dd36edbc19fe6) :

1. Pass on apply_plugin_main flow & run_model flow
2. Pass performance verification
3. Pass UT:

======================== Test Summary ========================
//litert/vendors/qualcomm/core/utils:utils_test
[----------] Global test environment tear-down
[==========] 14 tests from 3 test suites ran. (45 ms total)
[  PASSED  ] 14 tests.

//litert/vendors/qualcomm/core/wrappers/tests:op_wrapper_test
[----------] Global test environment tear-down
[==========] 7 tests from 1 test suite ran. (0 ms total)
[  PASSED  ] 7 tests.

//litert/vendors/qualcomm/core/wrappers/tests:tensor_wrapper_test
[----------] Global test environment tear-down
[==========] 18 tests from 1 test suite ran. (0 ms total)
[  PASSED  ] 18 tests.

//litert/vendors/qualcomm/core/wrappers/tests:param_wrapper_test
[----------] Global test environment tear-down
[==========] 16 tests from 2 test suites ran. (0 ms total)
[  PASSED  ] 16 tests.

//litert/vendors/qualcomm/core/wrappers/tests:quantize_params_wrapper_test
[----------] Global test environment tear-down
[==========] 13 tests from 3 test suites ran. (0 ms total)
[  PASSED  ] 13 tests.

//litert/vendors/qualcomm/core:tensor_pool_test
[----------] Global test environment tear-down
[==========] 8 tests from 1 test suite ran. (0 ms total)
[  PASSED  ] 8 tests.

//litert/vendors/qualcomm:qnn_manager_test
[----------] Global test environment tear-down
[==========] 2 tests from 1 test suite ran. (150 ms total)
[  PASSED  ] 2 tests.

//litert/c/options:litert_qualcomm_options_test
[----------] Global test environment tear-down
[==========] 11 tests from 2 test suites ran. (0 ms total)
[  PASSED  ] 11 tests.

//litert/c:litert_op_options_test
[----------] Global test environment tear-down
[==========] 33 tests from 1 test suite ran. (1 ms total)
[  PASSED  ] 33 tests.

//litert/tools/flags/vendors:qualcomm_flags_test
[----------] Global test environment tear-down
[==========] 7 tests from 4 test suites ran. (0 ms total)
[  PASSED  ] 7 tests.

//litert/vendors/qualcomm/compiler:qnn_compiler_plugin_test
[----------] Global test environment tear-down
[==========] 200 tests from 4 test suites ran. (47116 ms total)
[  PASSED  ] 200 tests.
Copybara import of the project:

--
5b72321ae84a8fb2011b451de1c9e8bb1ff4ae5f by weilhuan-qti <weilhuan@qti.qualcomm.com>:

Qualcomm AI Engine Direct - Support QnnBackend

1. Support QnnBackend interface
2. Implement IrBackend
3. Support backend type in :qnn::Option

--
5d8678e59ccf04193007c46a528dd36edbc19fe6 by chuntl-qti <chuntl@qti.qualcomm.com>:

Qualcomm AI Engine Direct - Support QnnBackend

Summary:
- Modify QnnBackend interface
- Implement HtpBackend
- Limit weight sharing feature for HTP backend
- Add tests for utils_test
- Add unit tests for QnnBackend

Merging this change closes #3060

COPYBARA_INTEGRATE_REVIEW=https://github.com/google-ai-edge/LiteRT/pull/3060 from chuntl-qti:dev/weilhuan/backend_interface 5d8678e59ccf04193007c46a528dd36edbc19fe6
LiteRT-PiperOrigin-RevId: 805683402
2025-09-10 23:35:46 -07:00
Daniel Sosa
01ed81ca65 Always run configure in Docker builds.
LiteRT-PiperOrigin-RevId: 802645295
2025-09-03 11:49:34 -07:00
Terry Heo
6c17f19c80 Internal change
LiteRT-PiperOrigin-RevId: 802571755
2025-09-03 08:50:02 -07:00
Chunlei Niu
f75415ffaf Add comment to clarify Pypi package versions.
LiteRT-PiperOrigin-RevId: 798314707
2025-08-22 13:07:39 -07:00
Chunlei Niu
4c8d3d5d8c Update LiteRT version for release.
LiteRT-PiperOrigin-RevId: 797945930
2025-08-21 15:52:37 -07:00
Ezekiel Calubaquib
5e6e158ddd flag use_local_tf for internal kokoro litert builds only
LiteRT-PiperOrigin-RevId: 797106410
2025-08-19 18:53:39 -07:00
Google AI Edge
2fbf120feb Internal change
FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/google-ai-edge/LiteRT/pull/3130 from chuntl-qti:dev/chunhsue/qc_option_dispatch a7df82cfb003556379948ee49eab9727cca10a69
LiteRT-PiperOrigin-RevId: 794773737
2025-08-18 14:35:10 -07:00
Terry Heo
6b99465734 Fix litert_metal_opts and litert_metal_deps_without_gpu_environment
- Added missing dependency to LITERT_C_API_DEPS
- Cleaned up build_pip_package_with_bazel.sh

LiteRT-PiperOrigin-RevId: 791994662
2025-08-06 22:34:23 -07:00
Fengwu Yao
99b08680e3 Implement metal memory.
LiteRT-PiperOrigin-RevId: 786832159
2025-07-24 14:14:00 -07:00
Fengwu Yao
eacef079c4 Update c++ compile version to 17 for macos
LiteRT-PiperOrigin-RevId: 785577425
2025-07-21 14:32:14 -07:00
Copybara-Service
24b7d959b6 Merge pull request #2620 from Rjasuja:dev/rjasuja/initial_openvino_push
LiteRT-PiperOrigin-RevId: 784626146
2025-07-18 10:32:33 -07:00
Ezekiel Calubaquib
cdcf29e403 Exclude tensorflow/lite/mlir/lite protos definitions when compiling under LiteRT repo and enable LiteRT disbale_tf_lite_py by default
LiteRT-PiperOrigin-RevId: 784374376
2025-07-17 17:34:49 -07:00
Copybara-Service
2b94ffffae Merge pull request #2497 from chunhsue:dev/chuntl/remove_gathernd_workaround
LiteRT-PiperOrigin-RevId: 778294550
2025-07-07 17:34:45 -07:00
Ezekiel Calubaquib
4ceacf3790 Enable tests and fix for duplicate registration tests error
LiteRT-PiperOrigin-RevId: 778155091
2025-07-07 17:32:31 -07:00
Ezekiel Calubaquib
d65b929f70 Enable fixed_protos for litert_wheel build
LiteRT-PiperOrigin-RevId: 778081264
2025-07-07 17:31:21 -07:00
Jun Jiang
41fee58366 Fix "TF_LOCAL_SOURCE_PATH" in build_pip_package_with_bazel.sh.
LiteRT-PiperOrigin-RevId: 776213783
2025-06-26 11:24:45 -07:00
Ezekiel Calubaquib
83b742e234 Make a custom rule for LiteRT WORKSPACE to enable usage of both http_archive or local_repository
LiteRT-PiperOrigin-RevId: 775364074
2025-06-24 13:38:39 -07:00
Vadym Matsishevskyi
a0c8fe506b Major deps update:
-Protobuf 5.28.3
-Grpc 1.68.2
-Abseil: LTS 20240116.3
-Plus some other transitive/related deps, riegeli and pybind11 in particular.
-rules_python & rules_cc will be updated in a subsequent CL as they are their own can of worms, plus there are a few pending changes in rules_python which were not pushed yet.

This also switches default protobuf implementation we rely on for bazel builds from cpp to upb, meaning all projects dependin on htis one must be built with build --action_env=PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=upb.

LiteRT-PiperOrigin-RevId: 773586210
2025-06-20 12:29:31 -07:00
Jun Jiang
909f55a029 Fix typo in tflite-py3-arm64.Dockerfile.
LiteRT-PiperOrigin-RevId: 772201283
2025-06-16 15:49:35 -07:00
Chunlei Niu
9244b37618 Add Kotlin API build to the presubmit and continuous builds.
LiteRT-PiperOrigin-RevId: 769351796
2025-06-09 17:03:10 -07:00
Chunlei Niu
0418dc34ac Update android sdk related settings for CI dockerfile
LiteRT-PiperOrigin-RevId: 769323219
2025-06-09 15:44:16 -07:00
Ezekiel Calubaquib
f9baca3d50 Fix TF nightly auditwheel repair due to pywrap
LiteRT-PiperOrigin-RevId: 769284339
2025-06-09 14:03:30 -07:00
Ezekiel Calubaquib
444a86a1f0 part#1 Use pywrap rules for LiteRT repo to fix duplicate registration errors
LiteRT-PiperOrigin-RevId: 767324105
2025-06-04 16:10:38 -07:00
Quoc Truong
f056fe955d Change all us-central1-docker.pkg.dev/tensorflow-sigs/tensorflow/ml-build container to us-docker.pkg.dev/ml-oss-artifacts-published/ml-public-container/ml-build.
These containers are the same (same build script), but they are just in a different repositories.

LiteRT-PiperOrigin-RevId: 765965230
2025-06-01 17:18:17 -07:00
Weiyi Wang
9455628f63 Update vendor sdk setup file for long description.
LiteRT-PiperOrigin-RevId: 760823659
2025-05-19 17:01:32 -07:00
Weiyi Wang
64b9326e17 No public description
LiteRT-PiperOrigin-RevId: 759205335
2025-05-15 10:34:58 -07:00
Google AI Edge
7e2475d29d Fix cruntimeapi installation location
LiteRT-PiperOrigin-RevId: 758775528
2025-05-14 11:57:01 -07:00
Weiyi Wang
38f827fe14 Make StrEnum usage py3.10 compatible.
LiteRT-PiperOrigin-RevId: 758446106
2025-05-13 17:50:31 -07:00
Weiyi Wang
70f28ecaef No public description
LiteRT-PiperOrigin-RevId: 757961315
2025-05-12 16:38:49 -07:00
Weiyi Wang
3b311b3493 When using aot python APIs, construct --libs path, and LD_LIBRARY_PATH using the package directory of ai_edge_litert.
LiteRT-PiperOrigin-RevId: 757938335
2025-05-12 15:36:15 -07:00
Weiyi Wang
545a9f48d9 No public description
LiteRT-PiperOrigin-RevId: 757864425
2025-05-12 12:20:19 -07:00
Weiyi Wang
0cf2742d90 No public description
LiteRT-PiperOrigin-RevId: 757848169
2025-05-12 11:38:26 -07:00