Skip to content
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

Update xformer build instructions #788

Merged
merged 2 commits into from
Aug 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions docs/rst/build-xformer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,21 @@ Building xmos-ai-tools
* Install version 15 or later of the XMOS tools from your preferred location and activate it by sourcing ``SetEnv`` in the installation root.


* `CMake 3.14 <https://cmake.org/download/>`_ or newer is required for building libraries and test firmware.
* `CMake 3.23 <https://cmake.org/download/>`_ or newer is required for building libraries and test firmware.

* To set up and activate the environment, simply run::

python -m venv ./venv
. ./venv/bin/activate


* Install the necessary python packages using ``pip`` inside the venv::
pip install -r ./requirements.txt
``pip install -r ./requirements.txt``

* Apply our patch for tflite-micro, run::
(cd third_party/lib_tflite_micro && make patch)
``cd third_party/lib_tflite_micro && make patch``

* Build the XCore host tflm interpreter libraries with default settings, run::
make build
``make build``

After following the above instructions, to build xformer, please follow the build instructions `here <../../experimental/xformer#readme>`_.
After following the above instructions, to build xformer, please follow the build instructions `here <../../experimental/xformer#readme>`_. Upon building xformer, you may install ``xmos-ai-tools`` via ``cd python && pip install .``
Loading