Install TinyChain
Install the TinyChain host software
Client
Most users will only need to run the TinyChain Python client, not a TinyChain host. See the Python client introduction for instructions to install the client.
Host
Easy install
The quick and easy way to get TinyChain up and running to try it out is to use Docker:
You can check that your installation succeeded by loading http://127.0.0.1:8702/state/scalar/value/string?key="Hello, World!" in your browser.
Automatic install (Ubuntu)
An install script is provided for Ubuntu (only tested on Ubuntu 20.04):
Manual install (Ubuntu)
If you need CUDA support for GPU acceleration, first install CUDA 11 by following the instructions here: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#ubuntu-installation. If you're not sure, skip this step.
Install ArrayFire by following the instructions here: https://github.com/arrayfire/arrayfire/wiki/Install-ArrayFire-From-Linux-Package-Managers
Install cargo by following the instructions here: https://doc.rust-lang.org/cargo/getting-started/installation.html
Install TinyChain by running
cargo install tinychain --features=tensor
Manual install (other OS)
Installation on other operating systems has not been tested and may not be straightforward. If you need to install TinyChain on an operating system other than 64-bit x86 Ubuntu Linux, please Ask for help.
If you need CUDA support for GPU acceleration, make sure to install CUDA first. If you're not sure, skip this step.
Install ArrayFire by following the instructions here: https://arrayfire.org/docs/installing.htm
Install cargo by following the instructions here: https://doc.rust-lang.org/cargo/getting-started/installation.html
Install TinyChain by running
cargo install tinychain --features=tensor
The ArrayFire library requires the environment variables AF_PATH
and LD_LIBRARY_PATH
to be set at build time and at run time. The vast majority of installation failures happen as a result of missing or incorrect environment variables. If you have any problems with your TinyChain installation, the first thing to check is that AF_PATH
is set to the ArrayFire installation root directory and included in LD_LIBRARY_PATH
.
Example:
systemd configuration
To use TinyChain in production, you'll probably want to configure systemd so that TinyChain will automatically restart in the case of a crash or a host machine restart. You can find detailed instructions on how to configure a new service with systemd here. You can customize this example systemd config file for your use-case:
Last updated