Model Card for Model ID
Llama-3.1-1B-Instruct-Mental-Health-Classification is a fine-tuned version of Metaโs LLaMA 3.1B model, optimized to classify mental health-related text into one of the following categories: Normal, Depression, Anxiety, or Bipolar. It uses instruction-style prompts and is trained for short text classification tasks within mental health contexts.
Model Details
Base Model: meta-llama/Llama-3.1B-Instruct
Fine-tuned by: Dhiraj Patra
Model Size: ~1.1 Billion parameters
Architecture: Decoder-only transformer (LLaMA 3 family)
Fine-tuning Method: Supervised Fine-Tuning (SFT) using transformers and trl
Quantization: 4-bit (using BitsAndBytesConfig)
Precision: torch.float16
LoRA Config:
r=64
alpha=16
dropout=0
bias=none
target_modules: Attention and MLP layers (e.g., "q_proj", "v_proj", etc.)
Model Description
Llama-3.1-1B-Instruct-Mental-Health-Classification is a lightweight instruction-tuned language model built on top of Metaโs LLaMA 3 1B parameter architecture. It is specifically fine-tuned to classify short user-generated texts into four common mental health categories: Normal, Depression, Anxiety, and Bipolar. This model is designed to support early detection and categorization of mental health signals in conversations, journals, or other user inputs.
The fine-tuning was performed using supervised data and a prompt-style instruction format to encourage accurate and interpretable outputs. It is optimized for minimal latency and can run in low-resource environments (such as Kaggle notebooks) due to 4-bit quantization using bitsandbytes
.
I have used Kaggle FREE GPU to fine tuned this LLM. https://www.kaggle.com/code/dhirajpatra/fine-tune-llama3-2 This model is intended for educational and research use and not for clinical diagnosis.
This is the model card of a ๐ค transformers model that has been pushed on the Hub. This model card has been automatically generated.
- Developed by: [https://dhirajpatra.github.io]
- Funded by [optional]: [More Information Needed]
- Shared by [optional]: [More Information Needed]
- Model type: [More Information Needed]
- Language(s) (NLP): [More Information Needed]
- License: [More Information Needed]
- Finetuned from model [optional]: [More Information Needed]
Model Sources [optional]
- Repository: [More Information Needed]
- Paper [optional]: [More Information Needed]
- Demo [optional]: [More Information Needed]
Uses
Direct Use
[More Information Needed]
Downstream Use [optional]
[More Information Needed]
Out-of-Scope Use
[More Information Needed]
Bias, Risks, and Limitations
[More Information Needed]
Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
How to Get Started with the Model
Use the code below to get started with the model.
[More Information Needed]
Training Details
Training Data
[More Information Needed]
Training Procedure
Preprocessing [optional]
[More Information Needed]
Training Hyperparameters
- Training regime: [More Information Needed]
Speeds, Sizes, Times [optional]
[More Information Needed]
Evaluation
Testing Data, Factors & Metrics
Testing Data
[More Information Needed]
Factors
[More Information Needed]
Metrics
[More Information Needed]
Results
[More Information Needed]
Summary
Model Examination [optional]
[More Information Needed]
Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: [More Information Needed]
- Hours used: [More Information Needed]
- Cloud Provider: [More Information Needed]
- Compute Region: [More Information Needed]
- Carbon Emitted: [More Information Needed]
Technical Specifications [optional]
Model Architecture and Objective
[More Information Needed]
Compute Infrastructure
[More Information Needed]
Hardware
[More Information Needed]
Software
[More Information Needed]
Citation [optional]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
Glossary [optional]
[More Information Needed]
More Information [optional]
[More Information Needed]
Model Card Authors [optional]
[More Information Needed]
Model Card Contact
[More Information Needed]
- Downloads last month
- 0
Model tree for dhirajpatra/Llama-3.1-1B-Instruct-Mental-Health-Classification
Base model
meta-llama/Llama-3.2-1B