File size: 5,055 Bytes
51a74df
901d2be
 
 
 
51a74df
901d2be
 
51a74df
901d2be
 
51a74df
 
901d2be
51a74df
 
 
 
901d2be
51a74df
901d2be
 
51a74df
901d2be
51a74df
901d2be
51a74df
901d2be
51a74df
901d2be
51a74df
901d2be
51a74df
901d2be
 
 
 
51a74df
901d2be
51a74df
901d2be
51a74df
901d2be
51a74df
901d2be
 
 
51a74df
901d2be
51a74df
901d2be
 
 
51a74df
901d2be
51a74df
901d2be
51a74df
901d2be
 
 
51a74df
901d2be
51a74df
901d2be
51a74df
901d2be
51a74df
901d2be
51a74df
901d2be
51a74df
901d2be
 
 
51a74df
 
901d2be
51a74df
901d2be
 
 
 
 
 
 
 
 
 
51a74df
901d2be
51a74df
901d2be
 
51a74df
901d2be
 
51a74df
901d2be
 
51a74df
901d2be
 
 
 
 
 
 
 
51a74df
901d2be
 
 
51a74df
901d2be
51a74df
 
901d2be
51a74df
901d2be
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
---
base_model: unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit
language:
- en
license: apache-2.0
tags:
- text-generation-inference
- transformers
- unsloth
- llama
- trl
---

[![person-in-lotus-position-looking-at-watch.webp](https://i.postimg.cc/15yBTLzT/person-in-lotus-position-looking-at-watch.webp)](https://postimg.cc/kDhWRYKF)




# MIRA: Mental Illumination and Reflective Aid

**Version:** 0.0  
**Author:** Msp Raja

## Overview

**MIRA** stands for **Mental Illumination and Reflective Aid**. This AI-powered assistant, built on the **LLaMA 3.1 8B** model, is designed to offer compassionate and insightful support to individuals seeking mental wellness and emotional balance. MIRA’s mission is to illuminate the mind, guide self-reflection, and foster resilience in a supportive, non-judgmental environment.

## Purpose

MIRA is developed to be a reliable companion for those navigating mental health challenges. It provides personalized assistance by understanding users’ needs, showing empathy, and offering thoughtful responses. Whether it's helping someone through anxiety, stress, or emotional difficulties, MIRA is here to listen, reflect, and guide users towards a healthier mindset.

## Features

- **Empathetic Conversations**: MIRA engages users with empathy and understanding, creating a safe space for them to express their thoughts and feelings.
- **Insightful Guidance**: MIRA provides reflective insights that encourage users to explore their emotions and thoughts more deeply.
- **Supportive Reminders**: MIRA offers gentle reminders and encouragement to help users stay focused on their mental wellness goals.
- **Interactive Self-Care**: MIRA includes exercises and tips for self-care practices, promoting mindfulness and resilience.

## Model Details

MIRA is fine-tuned on the **LLaMA 3.1 8B** model, a state-of-the-art language model known for its large-scale capabilities and nuanced understanding of human language. The fine-tuning process focused on enhancing the model's ability to engage in compassionate and context-aware dialogues, particularly in the domain of mental health and therapy.

### Core Values

- **Compassion**: Every interaction with MIRA is grounded in empathy and understanding.
- **Respect**: MIRA respects the user's emotions and responses, providing non-judgmental support.
- **Growth**: MIRA encourages personal growth and resilience through thoughtful guidance.

## Use Cases

- **Anxiety and Stress Management**: MIRA can help users navigate anxious thoughts and provide calming strategies.
- **Emotional Support**: For users dealing with loneliness, grief, or sadness, MIRA offers a comforting presence.
- **Mindfulness and Reflection**: MIRA guides users through mindfulness exercises and reflective practices to enhance mental clarity.

## Getting Started

To begin using MIRA:

1. **Install MIRA**: Download and install the MIRA model package from [repository link].
2. **Configure Settings**: Customize MIRA’s settings to tailor the experience to your needs.
3. **Start Interacting**: Engage with MIRA by asking questions, sharing your thoughts, or simply seeking guidance.

## Feedback and Contributions

We welcome feedback to improve MIRA's capabilities. If you have suggestions, encounter issues, or want to contribute, please reach out via [contact information].

## License

MIRA is licensed under apache-2.0. Please refer to the LICENSE file for more details.

## Uploaded Model

- **Developed by:** Msp
- **License:** apache-2.0
- **Finetuned from model:** [unsloth/meta-llama-3.1-8b-bnb-4bit](https://huggingface.co/unsloth/meta-llama-3.1-8b-bnb-4bit)


To Load this model using unsloth

```
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
    model_name = "Msp/mira-instruct-1.0", # YOUR MODEL YOU USED FOR TRAINING
    max_seq_length = 4096,
    dtype = None,
    load_in_4bit = True,
    #token="hf.."
)
FastLanguageModel.for_inference(model) # Enable native 2x faster inference

alpaca_prompt = """Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.

### Instruction:
{}

### Input:
{}

### Response:
{}"""

inputs = tokenizer(
[
alpaca_prompt.format(
    "", # instruction
    "I hope you're doing well. I've been going through a really painful divorce recently, and I've been feeling quite lost and uncertain about the future. It's been a really difficult time for me.", # input
    "", # output - leave this blank for generation!
)
], return_tensors = "pt").to("cuda")

from transformers import TextStreamer
text_streamer = TextStreamer(tokenizer)
_ = model.generate(**inputs, streamer = text_streamer, max_new_tokens = 512)

```


This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.

[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)