An open API service indexing awesome lists of open source software.

https://github.com/arjunravi26/ai_psychologist

Fine tune llama 2 model with mental health counseling data from huggingface
https://github.com/arjunravi26/ai_psychologist

accelerate bitsandbytes llama lora peft python qlora streamlit torch transformer

Last synced: 29 days ago
JSON representation

Fine tune llama 2 model with mental health counseling data from huggingface

Awesome Lists containing this project

README

          

# Psychologist Assistant — LLM Chatbot

This project is a **mental health–oriented chatbot** that simulates a psychologist's responses using a fine-tuned large language model (LLM). It supports both:

- High-end GPU usage with 4-bit quantized models (QLoRA)
- CPU usage for low-resource systems (no quantization)

It uses **Hugging Face Transformers**, **PEFT (LoRA)**, and **Streamlit** for the user interface.

---

## Features

- Simulates a supportive psychologist
- Interactive chat interface (Streamlit)
- Supports low-resource (CPU) and GPU systems
- Modular design: easy to swap models or fine-tune

---

## Setup

1. **Install dependencies**

```bash
pip install -r requirements.txt

streamlit run app.py

```