Instructions to use Interact-ai/mindcare with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Interact-ai/mindcare with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit") model = PeftModel.from_pretrained(base_model, "Interact-ai/mindcare") - Transformers
How to use Interact-ai/mindcare with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Interact-ai/mindcare") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Interact-ai/mindcare", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Interact-ai/mindcare with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Interact-ai/mindcare" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Interact-ai/mindcare", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Interact-ai/mindcare
- SGLang
How to use Interact-ai/mindcare with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Interact-ai/mindcare" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Interact-ai/mindcare", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Interact-ai/mindcare" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Interact-ai/mindcare", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use Interact-ai/mindcare with Docker Model Runner:
docker model run hf.co/Interact-ai/mindcare
File size: 5,206 Bytes
2142051 aa12f5a 2142051 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | ---
base_model:
- unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit
library_name: peft
pipeline_tag: text-generation
tags:
- mental-health
- conversational
- lora
- peft
- sft
- transformers
- unsloth
license: apache-2.0
language:
- en
---
# MindCare
MindCare is a parameter-efficient LoRA adapter for
[`unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit`](https://huggingface.co/unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit).
It is intended for supportive, empathetic mental-health conversations and
well-being guidance. This repository contains adapter weights, not a complete
standalone base model.
> **Important:** MindCare is not a therapist, doctor, crisis service, or
> diagnostic tool. Do not use it to diagnose conditions, prescribe treatment,
> or make emergency decisions. For immediate danger or a mental-health crisis,
> contact local emergency services or a qualified crisis service.
## Intended use
MindCare can be used as a research or application component for:
- supportive conversational interfaces;
- journaling and reflection prompts;
- general well-being and coping suggestions;
- experimenting with LoRA adapters for Llama 3.1.
Responses should be reviewed by a responsible human before being used in
health-related products. Applications should provide clear escalation paths to
qualified professionals and emergency resources.
## Limitations and risks
- The adapter may produce incorrect, incomplete, insensitive, or overconfident
responses.
- It may reflect biases in the base model and training data.
- It has not been validated for clinical safety or diagnostic accuracy.
- It may fail to recognize every crisis, self-harm signal, cultural context, or
language nuance.
- Do not send private or identifying health information to an untrusted
deployment.
## Quick start
Install the required packages:
```bash
pip install -U transformers peft accelerate bitsandbytes torch
```
Load the base model and adapter:
```python
import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_id = "unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit"
adapter_id = "Interact-ai/mindcare"
tokenizer = AutoTokenizer.from_pretrained(adapter_id)
model = AutoModelForCausalLM.from_pretrained(
base_id,
device_map="auto",
torch_dtype=torch.float16,
)
model = PeftModel.from_pretrained(model, adapter_id)
messages = [
{
"role": "system",
"content": (
"You are a supportive assistant. Be empathetic and clear. "
"Do not diagnose or provide emergency medical advice."
),
},
{
"role": "user",
"content": "I have been feeling overwhelmed lately. Can you help me reflect?",
},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt",
).to(model.device)
with torch.no_grad():
output = model.generate(
inputs,
max_new_tokens=256,
do_sample=True,
temperature=0.7,
top_p=0.9,
)
print(tokenizer.decode(output[0][inputs.shape[-1]:], skip_special_tokens=True))
```
The base model may be gated and may require accepting its license and
authenticating with Hugging Face before loading.
## Technical details
| Property | Value |
|---|---|
| Base model | `unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit` |
| Adapter type | LoRA / PEFT |
| Task | Causal language modeling |
| LoRA rank (`r`) | 16 |
| LoRA alpha | 32 |
| LoRA dropout | 0.05 |
| Target modules | `q_proj`, `k_proj`, `v_proj`, `o_proj`, `gate_proj`, `up_proj`, `down_proj` |
| PEFT version | 0.21.2 |
The adapter is distributed in `safetensors` format. The tokenizer and chat
template are included in this repository.
## Training and evaluation
This release does not include a public training-dataset card, training
hyperparameters, or benchmark results. Do not infer clinical performance from
the model name or from anecdotal outputs. Add reproducible dataset,
provenance, safety-review, and evaluation information before using the adapter
in a production or health-related setting.
## License and attribution
The base model is subject to the license and acceptable-use requirements of
[`unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit`](https://huggingface.co/unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit).
Users must review and comply with the base model's terms as well as any
requirements applicable to their data and deployment. This adapter should not
be presented as an official Meta or Unsloth model.
## Repository contents
- `adapter_model.safetensors` - LoRA adapter weights
- `adapter_config.json` - PEFT adapter configuration
- `tokenizer.json` and `tokenizer_config.json` - tokenizer files
- `chat_template.jinja` - Llama 3.1 chat template
- `README.md` - model card and usage documentation
## Citation
If you use this adapter, cite the repository:
```bibtex
@misc{mindcare_lora,
title = {MindCare: Mental Health LoRA Adapter},
author = {Interact-ai},
year = {2026},
url = {https://huggingface.co/Interact-ai/mindcare}
}
``` |