You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, ensure you have requisite programs installed. You will need
Python (most of features have been tested on versions 3.10 and 3.11).
MySQL
Next, create a Python environment using the following command in the terminal (you should be located in the outer django_backend folder):
For Windows:
To create a virtual environment : python -m venv venv
To activate virtual environment : .\venv\Scripts\activate
For Linux / macOS:
To create a virtual environment : python3 -m venv venv
To activate virtual environment : source venv/bin/activate
Then, install dependencies. Most dependencies can be installed using the command below. However, torch with CUDA support must be configured according to your environment.
pip install -r requirements.txt
Visit the following site to retrieve the appropriate pip install for torch: https://pytorch.org/
Next, create .env file in your django_backend > django_backend folder which should contain the following information:
DATABASE_NAME=mydatabase
DATABASE_USER=myuser
DATABASE_PASSWORD=mypassword
DATABASE_HOST=localhost
DATABASE_PORT=3306
WANDB_API_KEY=yourKey
HF_API_KEY=yourKey
OPENAI_API_KEY=yourKey
If you haven't already, please create a MySQL database first and make sure to update the values above to match your system.
Last, make sure your file location in your terminal is in the outer django_backend folder. Then, run the commands below one by one:
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
Whenever you want to start the applicatoin again, start your Python virtual environment and simply run the last of the three above commands.
About
An anonymous repository for code and documentation for the open-source LMForge application