Follow these steps to set up your environment for HOF Cognitive Computing.
Ensure you have the following software installed:
- Python 3.8 or higher
- pip (Python package installer)
- Git
- Make
-
Clone the repository:
git clone https://github.com/Distillative-AI/HOF-cognition.git cd HOF-cognition -
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
-
Install PyTorch:
Follow the instructions on the PyTorch website to install the appropriate version for your system.
For example, for CUDA 11.1:
pip install torch torchvision torchaudio
-
Build and compile necessary components:
make build
-
Set up environment variables:
Create a
.envfile in the root directory and add the necessary environment variables. Example:export HOF_COGNITION_ENV=development -
Verify the installation:
Run the following command to ensure everything is set up correctly:
python -m unittest discover tests
Your environment should now be set up and ready to use HOF Cognitive Computing.