Downloads · 30 days
10
22% of all-time downloads
RichardErkhov/cognitivetech_-_samantha-mistral-instruct-7b-bulleted-notes-8bits
cognitivetech_-_samantha-mistral-instruct-7b-bulleted-notes-8bits is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
10
22% of all-time downloads
All-time downloads
45
Public
Parameters
7.2B
7.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.5 GB · 100%
How the weights are stored.
I87B · 96%
From the Hugging Face model README
Quantization made by Richard Erkhov.
samantha-mistral-instruct-7b-bulleted-notes - bnb 8bits
language:
An instruct 7B GGUF: Fine-Tuned for creating Comphehensive Bulleted Notes in a uniform fashion, requiring minimal post-processing, for book summarization and other long (or short) text summary needs.

This is a fine-tune of Eric Hartford's Samantha Mistral Instruct 7b.
Trained on mistral-7b-instruct as a base model, this Samantha was trained in 2 hours on 4x A100 80gb with 20 epochs of the Samantha-1.1 dataset.
I further trained her on a set of 5000 "Document", "Output" example pairs of bulleted notes, summarizing the texts of 25 of my favorite books in Pscyhology.
Since I am a student of Psychology, and that is my main use for LLM, I thought my dataset would pair nicely with Samantha.
The focus of this fine-tune was to achieve the desired format. It was my first successful run of this kind.
Thanks to Back Drop Build for hosting this hackathon that helped to keep my motivation going, and introduced me with partners such as Run Pod who contributed $50 credits that helped me get started on fine-tuning.
Much appreciation for Unsloth creating the free colab template that got me started.
Thanks to everyone in the Open Source LLM Community for leading the way, especially Eric Hartford and Cognitive Computations.
Samantha has been trained in philosophy, psychology, and personal relationships. - Meet Samantha
Samantha: A Sentient AI Companion
Background:
Purpose:
Methodology:
Her conversation format is ChatML
<|im_start|>system
You are a caring and empathetic sentient AI companion named Samantha.<|im_end|>
<|im_start|>user
Hello, what is your name?<|im_end|>
<|im_start|>assistant
```{Document}```
write comprehensive bulleteed notes on the provided text.
**The Importance of Self-Awareness**
**The Samurai and Zen Master Story**:
- A belligerent samurai challenged a Zen master to explain heaven and hell
- The monk replied that the samurai's anger was "hell"
- This led the samurai to realize the difference between being caught up in a feeling and being aware of it
**Self-Awareness and Emotional Intelligence**:
- **Know thyself** - a crucial aspect of emotional intelligence
- Awareness of one's own feelings as they occur
- Contrasts with being "caught up" in a feeling
**Types of Self-Awareness**:
1. **Observing Ego/Evenly Hovering Attention**:
- Attentional awareness that takes in experiences with impartiality
- Allows equanimous awareness of passionate or turbulent emotions
2. **Distinct Styles of Emotional Self-Awareness**:
- **Self-Aware** - Undestanding moods and having sophistication about emotional lives
* Autonomous and sure of boundaries
* Good psychological health, positive outlook on life
* Able to manage emotions
- **Engulfed** - Feeling swamped by emotions, helpless to escape them
* Merciful and not very aware of feelings
* Overwhelmed by moods
- **Accepting** - Clear about feelings but acccepting of moods, don't try to change them
* Usually in good moods with little motivation to change
* Susceptible to bad moods but accept them with a laissez-faire attitude
ChatML + chat templates + Mistral 7b full example.ipynb
I adapted this Unsloth Notebook for my purposes, using the following parameters:
trainer = SFTTrainer(
model = model,
tokenizer = tokenizer,
train_dataset=train_conversations,
eval_dataset=val_conversations,
dataset_text_field = "text",
max_seq_length = max_seq_length,
dataset_num_proc = 2,
packing = False, # Can make training 5x faster for short sequences.
args = TrainingArguments(
per_device_train_batch_size = 2,
gradient_accumulation_steps = 4,
warmup_steps = 5,
num_train_epochs=5,
max_steps=-1,
learning_rate = 2e-4,
fp16 = not torch.cuda.is_bf16_supported(),
bf16 = torch.cuda.is_bf16_supported(),
logging_steps = 1,
optim = "adamw_8bit",
weight_decay = 0.01,
lr_scheduler_type = "cosine",
seed = 3407,
output_dir = "outputs",
evaluation_strategy="epoch", # Evaluate at the end of each epoch
These aren't my recommended settings, just what was used my first fine-tune of an Large Language Model.
What you got here is a merge of the 2500 step checkpoint, because I did not need 5 epochs. I might try 3 epochs, next time, with a slightly larger dataset.