Instructions to use uruz7/Mental_Healthcare_LLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use uruz7/Mental_Healthcare_LLM with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="uruz7/Mental_Healthcare_LLM", filename="Mental Healthcare LLM_Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use uruz7/Mental_Healthcare_LLM with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf uruz7/Mental_Healthcare_LLM:Q4_K_M # Run inference directly in the terminal: llama-cli -hf uruz7/Mental_Healthcare_LLM:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf uruz7/Mental_Healthcare_LLM:Q4_K_M # Run inference directly in the terminal: llama-cli -hf uruz7/Mental_Healthcare_LLM:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf uruz7/Mental_Healthcare_LLM:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf uruz7/Mental_Healthcare_LLM:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf uruz7/Mental_Healthcare_LLM:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf uruz7/Mental_Healthcare_LLM:Q4_K_M
Use Docker
docker model run hf.co/uruz7/Mental_Healthcare_LLM:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use uruz7/Mental_Healthcare_LLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "uruz7/Mental_Healthcare_LLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "uruz7/Mental_Healthcare_LLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/uruz7/Mental_Healthcare_LLM:Q4_K_M
- Ollama
How to use uruz7/Mental_Healthcare_LLM with Ollama:
ollama run hf.co/uruz7/Mental_Healthcare_LLM:Q4_K_M
- Unsloth Studio new
How to use uruz7/Mental_Healthcare_LLM with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for uruz7/Mental_Healthcare_LLM to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for uruz7/Mental_Healthcare_LLM to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for uruz7/Mental_Healthcare_LLM to start chatting
- Docker Model Runner
How to use uruz7/Mental_Healthcare_LLM with Docker Model Runner:
docker model run hf.co/uruz7/Mental_Healthcare_LLM:Q4_K_M
- Lemonade
How to use uruz7/Mental_Healthcare_LLM with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull uruz7/Mental_Healthcare_LLM:Q4_K_M
Run and chat with the model
lemonade run user.Mental_Healthcare_LLM-Q4_K_M
List all available models
lemonade list
Mental D0C - A Psychotherapy Simulation Model
Mental D0C is a fine-tuned version of the unsloth/Qwen2-7B-Instruct-bnb-4bit model, designed to simulate conversations between a psychotherapist and a patient. This model was developed as a research tool to explore and understand the dynamics of therapeutic dialogue in a controlled, ethical environment.
This model was fine-tuned on a synthetic dataset of over 12,000 Italian therapist-patient dialogues, enabling it to generate context-aware and empathetic responses in a therapeutic style. The fine-tuning was performed using the Unsloth library for high-efficiency training with LoRA.
🔗 GitHub Repository: [Insert your GitHub repository link here]
⚠️ Important Ethical Disclaimer
This is a Research Simulation, Not a Therapist
This model is an experimental tool created for educational and research purposes only. It is NOT a substitute for professional medical or psychological advice, diagnosis, or treatment.
The AI can make mistakes, generate incorrect or inappropriate information, and does not possess the qualifications to provide real therapeutic guidance.
If you are seeking help for your mental health, please contact a qualified healthcare provider or a crisis hotline.
Model Details
- Base Model:
unsloth/Qwen2-7B-Instruct-bnb-4bit - Fine-tuning Library: Unsloth
- Dataset: A synthetic dataset of ~12,000 Italian therapeutic conversations.
- Language: The model was primarily trained on Italian dialogues but retains the multilingual capabilities of its base model.
How to Use
This model is designed to be used for conversational inference. You can load the GGUF version with tools like Ollama or LM Studio, or use the LoRA adapters with the transformers library in Python.
Here is a basic example of how to run the model with LoRA adapters:
from unsloth import FastLanguageModel
from transformers import TextStreamer
# Load the fine-tuned model
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "your-hf-username/Mental-D0C-lora", # Replace with your model name
max_seq_length = 2048,
load_in_4bit = True,
device_map = "auto",
)
# Prepare the conversation
messages = [
{"role": "user", "content": "I've been feeling really down lately and I don't know why."},
]
input_ids = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to("cuda")
# Generate a response
text_streamer = TextStreamer(tokenizer, skip_prompt=True)
_ = model.generate(
input_ids=input_ids,
streamer=text_streamer,
max_new_tokens=150,
do_sample=True,
temperature=0.7,
top_p=0.9,
eos_token_id=tokenizer.eos_token_id
)
- Downloads last month
- 5
4-bit
Model tree for uruz7/Mental_Healthcare_LLM
Base model
unsloth/Qwen2-7B-Instruct-bnb-4bit