aboutsummaryrefslogtreecommitdiff
path: root/setup.cfg
AgeCommit message (Collapse)Author
2024-04-16feat: Implement the clustering rewrite for int8Nathan Bailey
Implements a clustering rewrite for fully connected layers for int8 models Resolves: MLIA-1080 Signed-off-by: Nathan Bailey <nathan.bailey@arm.com> Change-Id: If48efb22764187a382e5b84bbb5c3b75a6e71b75
2024-04-12fix: Pin h5py + TF dependency to fix issue on aarch64Gergely Nagy
Worked around dependency issue on aarch64, due to this bug: https://github.com/h5py/h5py/issues/2408. When the bug is fixed, this commit can be reverted. Pinning the following dependencies: * tensorflow==2.15.1 * h5py==3.10.0 Change-Id: Iada706c403f14d29735e9abea986427bbdae0660 Signed-off-by: Gergely Nagy <gergely.nagy@arm.com>
2024-03-28feat: Update Vela versionNathan Bailey
Updates Vela Version to 3.11.0 and TensorFlow version to 2.15.1 Required keras import to change: from keras.api._v2 import keras needed instead of calling tf.keras Subsequently tf.keras.X needed to change to keras.X Resolves: MLIA-1107 Signed-off-by: Nathan Bailey <nathan.bailey@arm.com> Change-Id: I53bcaa9cdad58b0e6c311c8c6490393d33cb18bc
2023-12-04Update to Vela 3.10, TensorFlow 2.14, Python 3.9Benjamin Klimczak
Updating to Vela 3.10 which requires TensorFlow 2.14 which requires Python 3.9 (dropping support for Python 3.8). Resolves: MLIA-997 Change-Id: Id60bd08f7156a8efa204ef71ba81590edf0e3b28 Signed-off-by: Benjamin Klimczak <benjamin.klimczak@arm.com>
2023-12-04MLIA-136 Add flaky dependency for unstable testsAnnie Tallund
- https://github.com/box/flaky - Is set to re-run tests marked with @flaky - Provides a report on failures - Add flaky guard to tests/test_nn_tensorflow_optimizations_clustering.py Signed-off-by: Annie Tallund <annie.tallund@arm.com> Change-Id: I6795fd8bb2c38be6513f3689c3eeb805e7976add
2023-10-11Adapt rewrite module to MLIA coding standardsAnnie Tallund
- Fix imports - Update variable names - Refactor helper functions - Add licence headers - Add docstrings - Use f-strings rather than % notation - Create type annotations in rewrite module - Migrate from tqdm to rich progress bar - Use logging module in rewrite module: All print statements are replaced with logging module Resolves: MLIA-831, MLIA-842, MLIA-844, MLIA-846 Signed-off-by: Benjamin Klimczak <benjamin.klimczak@arm.com> Change-Id: Idee37538d72b9f01128a894281a8d10155f7c17c
2023-10-11MLIA-845 Migrate rewrite codeAnnie Tallund
- Add required files for rewriting of TensorFlow Lite graphs - Adapt rewrite dependency paths and project name - Add license headers Change-Id: I19c5f63215fe2af2fa7d7d44af08144c6c5f911c Signed-off-by: Benjamin Klimczak <benjamin.klimczak@arm.com>
2023-09-05MLIA-961 Update MLIA dependenciesBenjamin Klimczak
Update Vela, TensorFlow and other dependencies. Change-Id: Id497084391d31548c2f307f5a4b7981981fa25a5 Signed-off-by: Benjamin Klimczak <benjamin.klimczak@arm.com>
2023-08-22MLIA-757: Update Vela and TensorFlow dependenciesJoseph Tummon
Ignoring new 'Conv_hwcn_Weights' layer that is named in TensorFlow 2.11.1 and used as buffer for float32 only. Signed-off-by: Joseph Tummon <Joseph.Tummon@arm.com> Change-Id: Iaa579c76013b1e0dc505466c46f5864a96af8c6d
2023-07-25MLIA-757: Update Vela and remove NumPy dependencyJoseph Tummon
Two warnings appear when running e2e tests from where TensorFlow declares ranges of NumPy dtype, but this shouldn't affect anything else in MLIA. Change-Id: Idc22f1de352980c70d27cdcba35a51a1e1efaafc Signed-off-by: Joseph Tummon <Joseph.Tummon@arm.com>
2023-05-15MLIA-755 Remove TOSA Extra DependencyDhruv Chauhan
- Removed TOSA Checker dependency from setup.cfg - Installation process calls directly the installation of TOSA Checker instead of the extra dependency Change-Id: I21e309b9316671959483bd2ef1ecaf644936a4cb
2023-02-15MLIA-814 Specify required Python version exactlyBenjamin Klimczak
There is an issue with Python 3.8.0 that makes it impossible to use MLIA. It is fixed from Python 3.8.1 onwards. https://github.com/python/cpython/issues/82019 Change-Id: I48c0a5f103fb29561be483875ba706928b7e77d1
2023-02-08MLIA-595 Remove old backend configuration mechanismDmitrii Agibov
- Remove old backend configuration code - Install backends into directory ~/.mlia - Rename targets/backends in registry to make it consistent across codebase. Change-Id: I9c8b012fe863280f1c692940c0dcad3ef638aaae
2023-02-08MLIA-590 Support path to custom target profilesAnnie Tallund
- Start using TOML format for target profile - Add support for loading custom target profile files Change-Id: I6be019d4341e93115440ccdbdb6dafdc1c85b966
2022-12-30MLIA-761 Constrain dependenciesBenjamin Klimczak
Constrain dependencies in the setup.cfg to avoid incompatibilities when dependencies are updated. Change-Id: I6e26a769bc677827da3ffd90a9b7ad510e3b4d4f
2022-12-19MLIA-756 Fix Vela bug in MLIA caused by numpyRaul Farkas
Set a constraint for numpy in MLIA to be < 1.24. This is needed to fix the temporary issue that Numpy is causing in Vela 3.6 (i.e. "AttributeError: module 'numpy' has no attribute 'bool'") Change-Id: Ie9c99a7a328b5db4c89bccc9429ab93d6a88fe9e
2022-12-06MLIA-669 Upgrade dependencies with Vela 3.6Benjamin Klimczak
With Vela 3.6 we are able to remove the special treatment of aarch64 in our dependencies, i.e. - upgrade Vela to version 3.6 that resolves a compatibility issue for aarch64 in 3.4 and 3.5. - upgrade to TensorFlow 2.10 which now supports aarch64 (therefore making it obsolete to use 'tensorflow-aarch64'). Change-Id: I86508b667b5ccb55bfd11dcae9defc54e5ef74de
2022-11-25MLIA-676 Migrate e2e tests to toxBenjamin Klimczak
- Add new tox environments 'e2e' and 'e2e_setup' - Move the extra 'dev' requirements to the tox environments Change-Id: I7db80f48a7a4ef81f931c0ef307d9bcf5906af19
2022-11-15MLIA-649 Strip mlia backend management into a new commandRuomei Yan
* add entry point for mlia-backend in setup.cfg and main.py * add --force option for install from path: uninstall existing backend in ML Inference Advisor and install from given path * add uninstall and list program parameters: uninstall has backend_name as input arg, install has backend_name as a mandatory argument * add unit tests in test_cli_commands.py, test_cli_main.py, test_tools_metadata_common.py, test_tools_metadata_corstone.py * updated README.md * remove --download option for installing backend * add new lines for the display section when we do mlia-backen list * add case insensitive support for backend names in command line argument Change-Id: Icb89d8957fa6be4b767710e24fa074f26472674b
2022-11-11MLIA-701 Update dependenciesBenjamin Klimczak
- Update TensorFlow dependencies for x86_64 - Adapt unit tests to new TensorFlow version - Update linters (including pre-commit hooks) and fix issues - Use conditional import to fix tflite compat code for aarch64 Change-Id: I1a9b080b900ab65e38f7f2552562822bbfdcd259
2022-10-05MLIA-622 Fix TOSA checker dependencyRaul Farkas
Change TOSA checker dependency in setup.cfg from "tosa_checker" to "tosa-checker". Change-Id: I52f7e545c3e4c0d8e70118b85c7c549568f17bc4
2022-10-04MLIA-673 Use inclusive language in the source code and filenamesDmitrii Agibov
- Update configuration for inclusive language linter - Fix reported issues Change-Id: If0f8b6e20c17d8ee1c6179c61040fc351437f036
2022-09-14MLIA-571 Use tox to run additional project tasksBenjamin Klimczak
- Remove coverage from the pre-commit hooks as it takes too long and is not really suited to be a pre-commit hook - Added tox environments: - 'coverage': Run the code coverage. The code coverage was moved from the pre-commit hooks to tox. - 'lint': Run the pre-commit hooks - 'build': Build a distribution of MLIA - 'docs': Create documentation from the source code. Directory docs/ was added and copyright and license information add to files. Change-Id: Ife92b68043295ce41a0f2352ee2b2878329f4953
2022-09-01MLIA-506 Fix setuptools warning during wheel creationDmitrii Agibov
Use option "find_namespace" for the package discovery Change-Id: I22af45d348d6f56adcf0ce05219fbec820c559d1
2022-08-30MLIA-584 Enable testing for aarch64 packageRuomei Yan
Add conditional dependencies in setup.cfg so that the mlia package can be built in aarch64 Change-Id: I4d878255757818449ba0bda209233c6f9ba9f7d0
2022-08-19MLIA-548 Enable installation of the TOSA checkerDmitrii Agibov
Change-Id: I364527fd2d7990d37c6754907dd3609916e0a31c
2022-07-26MLIA-551 Rework remains of AIET architectureBenjamin Klimczak
Re-factoring the code base to further merge the old AIET code into MLIA. - Remove last traces of the backend type 'tool' - Controlled systems removed, including SSH protocol, controller, RunningCommand, locks etc. - Build command / build dir and deploy functionality removed from Applications and Systems - Moving working_dir() - Replace module 'output_parser' with new module 'output_consumer' and merge Base64 parsing into it - Change the output consumption to optionally remove (i.e. actually consume) lines - Use Base64 parsing in GenericInferenceOutputParser, replacing the regex-based parsing and remove the now unused regex parsing - Remove AIET reporting - Pre-install applications by moving them to src/mlia/resources/backends - Rename aiet-config.json to backend-config.json - Move tests from tests/mlia/ to tests/ - Adapt unit tests to code changes - Dependencies removed: paramiko, filelock, psutil - Fix bug in corstone.py: The wrong resource directory was used which broke the functionality to download backends. - Use f-string formatting. - Use logging instead of print. Change-Id: I768bc3bb6b2eda57d219ad01be4a8e0a74167d76
2022-07-22MLIA-569 Update TensorFlow to version 2.8Raul Farkas
- Update TensorFlow to version 2.8 (now supported by Vela 3.4) - Adapt existing codebase to preserve intermediary tensors in the interpreter in order to avoid errors when trying to print all of them in the future. - Ignore types for numpy methods that do not have typing annotations in their definitions. This is needed because otherwise mypy would consider the calling function to also be untyped. Change-Id: I943ac196fd4e378f5238949b15c23a2d628c8b5e
2022-07-22MLIA-507 Upgrade Vela versionRaul Farkas
Upgrade Vela version from 3.3.0 to 3.4.0. - Adapt code to use new typing notation by replacing `numpy.array` with `numpy.ndarray` where necessary. Change-Id: I035e9564d448652aa09a52d79c71ef09663ea776
2022-07-20MLIA-529 Add pre-commit configurationRaul Farkas
- Add pre-commit configuration file that is used to run a series of hooks on the codebase. - Update setup.cfg to include required pre-commit library when installing MLIA with the [dev] extra require. Change-Id: I8e88cd2bae98c03c20a70a320e82d2eb38ce127c
2022-07-08MLIA-546 Merge AIET into MLIABenjamin Klimczak
Merge the deprecated AIET interface for backend execution into MLIA: - Execute backends directly (without subprocess and the aiet CLI) - Fix issues with the unit tests - Remove src/aiet and tests/aiet - Re-factor code to replace 'aiet' with 'backend' - Adapt and improve unit tests after re-factoring - Remove dependencies that are not needed anymore (click and cloup) Change-Id: I450734c6a3f705ba9afde41862b29e797e511f7c
2022-05-30Specify long_description_content_type in setup.cfgDiego Russo
The content type of the long description needs to be specified to avoid publishing errors on pypi.org. Change-Id: Ibf40cab77599d5c04fb996f884eed9d56c5a5ce7
2022-05-30Add MLIA codebase0.3.0-rc.1Diego Russo
Add MLIA codebase including sources and tests. Change-Id: Id41707559bd721edd114793618d12ccd188d8dbd