Installation
The Local Trial installation consists of two parts:
The Docker containers
These create the infrastructure necessary to process and display test results.
The Python package
This contains the
rime-engine
command-line interface (CLI) and Python libraries used to run tests on your models and data.
Pre-requisites
Before beginning, please ensure you have the following:
The following system requirements:
at least 4 GB RAM
at least 12 GB free disk space
3.7 ≤
python
≤ 3.9one of the following package managers
pip
conda
Docker >= 20.10.0
Linux Users: You will also need to follow these post installation instructions to use Docker without root access.
Docker Compose >= 1.29.0
The
rime_trial
bundle ( download here )A
token.txt
file (will be provided by your RI representative)
NOTE for M1 Mac Users: We recommend using the Rosetta Translation Environment to run the RI Local Trial, as many dependent packages do not have native M1 support yet.
Additionally, you will need to downgrade the MongoDB dependency in
docker-compose.yml
due to M1 incompatibility:# for M1 compatibility image: bitnami/mongodb:4.4.6
Install the Docker Containers
Set Up Your Environment
To avoid interfering with your other projects’ dependencies, we will create a new Python virtual environment for the Local Trial.
Download ( link here ) and extract (
tar -xzf rime-trial-0.19.7.tar.gz
) therime_trial
bundle.Place the
token.txt
file inside ofrime_trial/
.Step into
rime_trial/
— this will be our working directory throughout the installation.Select a virtual environment manager (currently either
pip
or Conda) and follow the appropriate instructions below.Pip Installation
Create a new python virtual environment.
python -m venv rime-venv
Activate the virtual environment.
macOS & Linux
source rime-venv/bin/activate
Windows
.\rime-venv\Scripts\activate
Update pip and install required Python packages from
trial_requirements.txt
.pip install --upgrade pip pip install -r trial_requirements.txt
Conda Installation
Create a new conda virtual environment. Replace
$PYTHON_VERSION_YOU_WISH_TO_USE
with the version of Python that you wish to use (e.g.,3.8
).conda create --name rime-venv python=$PYTHON_VERSION_YOU_WISH_TO_USE
Activate the virtual environment.
conda activate rime-venv
Update pip and install required Python packages from
trial_requirements.txt
.pip install --upgrade pip pip install -r trial_requirements.txt
Start RI
NOTE: Running the start command will generate a Robust Intelligence license file and place it in a newly created .robustintelligence folder in your $HOME directory.
Run the rime_helper
start
command to start the backend and frontend.python rime_helper.py start
Wait until you see the following message indicating that the backend and frontend have successfully started and that the UI can be viewed at http://localhost:8080.
RI is available at http://localhost:8080
(OPTIONAL) If you are running the Docker containers on a remote instance and would like to use port forwarding to view the UI on your local machine, we recommend using SSH tunneling:
ssh -M -S rime-port-forwarding -fNT -L localhost:8080:localhost:8080 user@hostname
To terminate the session, you can run the following:
ssh -S rime-port-forwarding -O exit user@hostname
Stop RI
WARNING: The commands below will permanently delete existing RI test runs.
To stop RI, run the following. Note that this command will also delete existing test runs.
python rime_helper.py stop
To completely remove RI, you can uninstall.
python rime_helper.py uninstall
Install the Python Package
Install the
rime
Python package.pip install -r rime_requirements.txt
Configure environment variables for use in CLI commands:
macOS & Linux
export RIME_UPLOAD_URL=localhost:5001 export RIME_FIREWALL_URL=localhost:5002 export RIME_DISABLE_TLS=True # Recommended for local uploads only!
Windows
$Env:RIME_UPLOAD_URL = 'localhost:5001' $Env:RIME_FIREWALL_URL = 'localhost:5002' $Env:RIME_DISABLE_TLS = 'True' # Recommended for local uploads only!
If you run into issues, please refer to our Troubleshooting page for help! Additionally, your RI representative will be happy to assist — feel free to reach out!
Install the NLP Dependencies (Optional)
To use RI with Natural Language Processing models, additional Python dependencies must be installed.
pip install -r nlp_requirements.txt
Install the CV Dependencies (Optional)
To use RI with Computer Vision models, additional Python dependencies must be installed.
pip install -r cv_requirements.txt