Downloads · 30 days
310
100% of all-time downloads
Rumiii/Mistral_Mind-Caller_7B
Mistral_Mind-Caller_7B is a text generation model from Rumiii. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
QLoRA fine-tune of mistralai/Mistral-7B-Instruct-v0.3, sharpening its native tool-calling ability for mental-health / wearable-data function calling,
Downloads · 30 days
310
100% of all-time downloads
All-time downloads
310
Public
Parameters
7.2B
14.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors14.5 GB · 100%
From the Hugging Face model README

QLoRA fine-tune of mistralai/Mistral-7B-Instruct-v0.3, sharpening its native tool-calling ability for mental-health / wearable-data function calling, while preserving general tool-calling range via a replay mix.
[AVAILABLE_TOOLS]/[TOOL_CALLS] chat template
(via tokenizer.apply_chat_template(..., tools=...)), not a custom prompt format -- this fine-tune
sharpens Mistral's existing tool-calling mechanism rather than replacing it.Research / educational project demonstrating domain fine-tuning of an already tool-calling-capable
open model. Not validated for clinical or diagnostic use. The wearable-data functions it targets are
illustrative (get_heart_rate_data, get_sleep_data, etc.) and require the caller to implement the
actual data-retrieval backend.
from unsloth import FastLanguageModel
import torch
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="Rumiii/Mistral_Mind-Caller_7B",
max_seq_length=3072,
dtype=None,
load_in_4bit=True,
)
FastLanguageModel.for_inference(model)
tools = [
{
"type": "function",
"function": {
"name": "get_sleep_data",
"description": "Retrieve the user's sleep data for a given number of days.",
"parameters": {
"type": "object",
"properties": {
"patient_id": {"type": "string", "description": "Unique patient identifier."},
"num_days": {"type": "integer", "description": "Number of days of data to retrieve."},
},
"required": ["patient_id", "num_days"],
},
},
}
]
messages = [{"role": "user", "content": "I've been having trouble sleeping this week."}]
prompt = tokenizer.apply_chat_template(
messages, tools=tools, tokenize=False, add_generation_prompt=True,
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output_ids = model.generate(
**inputs,
max_new_tokens=150,
do_sample=False,
pad_token_id=tokenizer.eos_token_id,
)
print(tokenizer.decode(output_ids[0][inputs["input_ids"].shape[1]:], skip_special_tokens=False))
Base model and training data are apache-2.0 / cc-by-4.0; this fine-tune is released apache-2.0.