Skip to content

jatinchawda1503/Continual-Learning-for-LLMs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Continual-Learning-for-LLMs

Continual Learning for Large Language models

Setup

Using Docker

  1. Setup .env file use example from. env.example. Note: donot add db_host manually.
db_username = 'postgres'
db_password = 'postgres'
db_name = 'memory_manager'
db_host = db
db_port = '5432'
conversation_table_name = 'chat_history'
OPENAI_API_KEY = 'sk-<your-openai-api-key>'
  1. docker compose up

Without Docker

Postgres Setup

  1. Download postgres - https://www.postgresql.org/download/
  2. Create new database for the project

Python

  1. setup .env file
db_username = 'postgres'
db_password = 'postgres'
db_name = 'memory_manager'
db_host = '127.0.0.1'
db_port = '5432'
conversation_table_name = 'chat_history'
OPENAI_API_KEY = 'sk-<your-openai-api-key>'
  1. Setup enviornment
conda create -n cll python=3.11 

conda activate cll
  1. Go to backend folder
cd continual_learning/backend
  1. Install the packages from requirements.txt
pip install -r requirements.txt
  1. Run server
python backend.py

Frontend

  1. Go to frontend folder
cd continual_learning/frontend
  1. Install packages
npm i
  1. Run server
npm run dev

About

Continual Learning for Large Language models

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages