Other Models in MentaLLaMA
In addition to MentaLLaMA-chat-7B, the MentaLLaMA project includes another model: MentaLLaMA-chat-13B, MentalBART, MentalT5.
-
MentaLLaMA-chat-13B: This model is finetuned based on the Meta LLaMA2-chat-13B foundation model and the full IMHI instruction tuning data. The training data covers 10 mental health analysis tasks.
-
MentalBART: This model is finetuned based on the BART-large foundation model and the full IMHI-completion data. The training data covers 10 mental health analysis tasks. This model doesn't have instruction-following ability but is more lightweight and performs well in interpretable mental health analysis in a completion-based manner.
-
MentalT5: This model is finetuned based on the T5-large foundation model and the full IMHI-completion data. The training data covers 10 mental health analysis tasks. This model doesn't have instruction-following ability but is more lightweight and performs well in interpretable mental health analysis in a completion-based manner.
Usage
You can use the MentaLLaMA-chat-7B model in your Python project with the Hugging Face Transformers library. Here is a simple example of how to load the model:
from transformers import LlamaTokenizer, LlamaForCausalLMtokenizer = LlamaTokenizer.from_pretrained('klyang/MentaLLaMA-chat-7B')model = LlamaForCausalLM.from_pretrained('klyang/MentaLLaMA-chat-7B', device_map='auto')
In this example, LlamaTokenizer is used to load the tokenizer, and LlamaForCausalLM is used to load the model. The device_map='auto' argument is used to automatically
use the GPU if it's available.
License
MentaLLaMA-chat-7B is licensed under MIT. For more details, please see the MIT file.
Citation
If you use MentaLLaMA-chat-7B in your work, please cite the our paper:
@misc{yang2023mentalllama, title={MentalLLaMA: Interpretable Mental Health Analysis on Social Media with Large Language Models}, author={Kailai Yang and Tianlin Zhang and Ziyan Kuang and Qianqian Xie and Sophia Ananiadou}, year={2023}, eprint={2309.13567}, archivePrefix={arXiv}, primaryClass={cs.CL}}