MCPcopy Index your code
hub / github.com/SmartFlowAI/EmoLLM

github.com/SmartFlowAI/EmoLLM @v0.6

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.6 ↗ · + Follow
832 symbols 3,334 edges 173 files 111 documented · 13%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

EmoLLM - Large Language Model for Mental Health

Logo

[![Contributors][contributors-shield]][contributors-url] [![Forks][forks-shield]][forks-url] [![Issues][issues-shield]][issues-url] [![OpenXLab_App][OpenXLab_App-image]][OpenXLab_App-url] [![OpenXLab_Model][OpenXLab_Model-image]][OpenXLab_Model-url] [![MIT License][license-shield]][license-url] [![Stargazers][stars-shield]][stars-url]

EmoLLM

简体中文 | English | 日本語

<a href="https://github.com/SmartFlowAI/EmoLLM"><strong>Explore the documentation of this project »</strong></a>






<a href="https://openxlab.org.cn/apps/detail/Farewell1/EmoLLMV2.0">EmoLLM 2.0 Demo</a>
·
<a href="https://github.com/SmartFlowAI/EmoLLM/issues">Report a Bug</a>
·
<a href="https://github.com/SmartFlowAI/EmoLLM/issues">Propose a New Feature</a>

EmoLLM is a series of large language models designed to understand, support and help customers in mental health counseling. It is fine-tuned from the LLM instructions. We really appreciate it if you could give it a star~⭐⭐. The open-sourced configuration is as follows:

Model Type File Links Model Links
Deepseek-R1_14b_int4 QLoRA unsloth ModelScope
InternLM2_5_7B_chat full fine-tuning internlm2_5_chat_7b_full.py OpenXLab, ModelScope
InternLM2_5_7B_chat QLoRA internlm2_5_chat_7b_qlora_oasst1_e3.py ModelScope
InternLM2_7B_chat QLoRA internlm2_7b_chat_qlora_e3.py ModelScope
InternLM2_7B_chat full fine-tuning internlm2_chat_7b_full.py OpenXLab
InternLM2_7B_base QLoRA internlm2_7b_base_qlora_e10_M_1e4_32_64.py OpenXLab, ModelScope
InternLM2_1_8B_chat full fine-tuning internlm2_1_8b_full_alpaca_e3.py OpenXLab, ModelScope
InternLM2_20B_chat LoRA internlm2_20b_chat_lora_alpaca_e3.py
Qwen_7b_chat QLoRA qwen_7b_chat_qlora_e3.py
Qwen1_5-0_5B-Chat full fine-tuning qwen1_5_0_5_B_full.py ModelScope
Baichuan2_13B_chat QLoRA baichuan2_13b_chat_qlora_alpaca_e3.py
ChatGLM3_6B LoRA chatglm3_6b_lora_alpaca_e3.py
DeepSeek MoE_16B_chat QLoRA deepseek_moe_16b_chat_qlora_oasst1_e3.py
Mixtral 8x7B_instruct QLoRA mixtral_8x7b_instruct_qlora_oasst1_e3.py
LLaMA3_8b_instruct QLoRA aiwei_llama3_8b_instruct_qlora_e3.py OpenXLab, ModelScope
LLaMA3_8b_instruct QLoRA llama3_8b_instruct_qlora_alpaca_e3_M_ruozhi_scM.py OpenXLab, ModelScope
Qwen2-7B-Instruct LoRA Qwen2-7B-Instruct_lora.py ModelScope
…… …… …… ……

🎉 Everyone is welcome to contribute to this project!

🔍 Those who are interested in the principles and underlying implementations of LLMs can follow ThinkLLM, which focuses on building various components of large models from scratch.


The Model aims to fully understand and promote the mental health of individuals, groups, and society. This model typically includes the following key components:

  • Cognitive factors: Involving an individual's thought patterns, belief systems, cognitive biases, and problem-solving abilities. Cognitive factors significantly impact mental health as they affect how individuals interpret and respond to life events.
  • Emotional factors: Including emotion regulation, emotional expression, and emotional experiences. Emotional health is a crucial part of mental health, involving how individuals manage and express their emotions and how they recover from negative emotions.
  • Behavioral factors: Concerning an individual's behavior patterns, habits, and coping strategies. This includes stress management skills, social skills, and self-efficacy, which is the confidence in one's abilities.
  • Social environment: Comprising external factors such as family, work, community, and cultural background, which have direct and indirect impacts on an individual's mental health.
  • Physical health: There is a close relationship between physical and mental health. Good physical health can promote mental health and vice versa.
  • Psychological resilience: Refers to an individual's ability to recover from adversity and adapt. Those with strong psychological resilience can bounce back from challenges and learn and grow from them.
  • Prevention and intervention measures: The Mental Health Grand Model also includes strategies for preventing psychological issues and promoting mental health, such as psychological education, counseling, therapy, and social support systems.
  • Assessment and diagnostic tools: Effective promotion of mental health requires scientific tools to assess individuals' psychological states and diagnose potential psychological issues.
占位图 占位图
占位图 占位图
占位图

Recent Updates

View More

  • [2024.03.24] The InternLM2-Base-7B QLoRA fine-tuned model has been released on the OpenXLab and **

Core symbols most depended-on inside this repo

encode
called by 28
careyou/module/core_vq.py
items
called by 18
careyou/utils.py
decode
called by 18
careyou/module/models.py
get_padding
called by 18
careyou/module/commons.py
keys
called by 13
careyou/utils.py
_all_tone_three
called by 7
careyou/text/tone_sandhi.py
_parse_text
called by 6
demo/web_qwen.py
embedding
called by 5
careyou/AR/modules/embedding.py

Shape

Method 402
Function 297
Class 132
Route 1

Languages

Python100%

Modules by API surface

careyou/module/modules.py71 symbols
careyou/module/models.py53 symbols
careyou/module/models_onnx.py51 symbols
careyou/module/attentions.py39 symbols
careyou/app.py32 symbols
careyou/module/core_vq.py29 symbols
careyou/utils.py24 symbols
careyou/module/attentions_onnx.py22 symbols
careyou/AR/modules/transformer_onnx.py21 symbols
careyou/AR/modules/transformer.py21 symbols
careyou/module/commons.py20 symbols
careyou/text/tone_sandhi.py17 symbols

For agents

$ claude mcp add EmoLLM \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact