Model Card for Model ID

This model is a fine-tuned version of a large language model, specifically adapted for providing empathetic, non-judgmental conversational support for mental well-being.

Model Details

Model Description

  • Model ID : [nerd-swayam/LLama-Mental-Health-Assistence]
  • Base Model : meta-llama/Llama-3.1-8B-Instruct
  • Model Type : Fine-tuned Large Language Model (LLM)
  • Fine-Tuning Method : Quantized Low-Rank Adaptation (QLoRA)
  • Developed By,[Swayam Kesarkar]
  • Language : English

Primary Use Case: "Providing personalized, context-aware, and empathetic conversational support for individuals seeking help with common mental health issues like anxiety, stress, depression (non-crisis), and relationship problems."

Target Audience,Individuals seeking accessible emotional and behavioral support or self-help resources.

  • Developed by: [nerd-swayam]
  • Model type: [Chat bot conversational]
  • Language(s) (NLP): [Emglish]
  • License: [Apache2.0]
  • Finetuned from model [optional]: [meta-llama/Llama-3.1-8B-Instruct]

How to Get Started with the Model

Use the code below to get started with the model.

from unsloth import FastLanguageModel
import torch

model, tokenizer = FastLanguageModel.from_pretrained(
    model_name = "nerd-swayam/LLama-Mental-Health-Assistence",
    max_seq_length = 1024,
    dtype = dtype,
)
FastLanguageModel.for_inference(model)
inputs = tokenizer(
[
    alpaca_prompt.format(
        "Everyone has friends except me. I feel so isolated.",
        "", 
    )
], return_tensors = "pt").to("cuda")

from transformers import TextStreamer
text_streamer = TextStreamer(tokenizer)
_ = model.generate(**inputs, streamer = text_streamer, max_new_tokens = 128)

Training Details

Training Data

[https://huggingface.co/datasets/nerd-swayam/Mental_Health_Support_ChatBOT_Conversation]

Training Hyperparameters

  • Training regime: [fp16 mixed precision]

Model Card Contact

Framework versions

  • PEFT 0.18.0
Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 1 Ask for provider support

Dataset used to train nerd-swayam/LLama-Mental-Health-Assistence