Downloads · 30 days
13
4% of all-time downloads
spikecodes/ai-911-operator
ai-911-operator is a text generation model from spikecodes. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
This model is a fine-tuned version of Mistral-7B-v0.1, designed to assist 911 operators in handling emergency calls professionally and efficiently.
Downloads · 30 days
13
4% of all-time downloads
All-time downloads
368
Public
Repo size
18.9 MB
Likes
2
Public
Click a slice to open those files.
.safetensors18.9 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of Mistral-7B-v0.1, designed to assist 911 operators in handling emergency calls professionally and efficiently.
This model is intended to be used as an assistant for 911 operators, helping them respond to emergency calls quickly and professionally.
This model should not be used as a replacement for trained 911 operators or emergency responders. It is meant to assist, not replace, human judgment in emergency situations.
The model may have biases based on the training data used. It should not be relied upon for making critical decisions in emergency situations without human oversight.
Users should always verify the model's outputs and use them in conjunction with established emergency response protocols.
Use the following code to initialize the model:
from peft import PeftModel
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
BASE_MODEL = "mistralai/Mistral-7B-v0.1"
LORA_CHECKPOINT = "./lora_adapters/checkpoint-200/"
model, tokenizer = setup_model_and_tokenizer(BASE_MODEL)
model = PeftModel.from_pretrained(model, LORA_CHECKPOINT)
model.to(torch.device("xpu" if torch.xpu.is_available() else "cpu"))
Then, you can generate 911 operator responses by providing an input prompt:
prompt = "911 Operator: 9-1-1, what's your emergency?\nCaller: There's a fire in my kitchen!\n911 Operator:"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=100)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
The model was fine-tuned on a dataset of 911 call transcripts, using the "spikecodes/911-call-transcripts" dataset.
The model was evaluated on a validation set derived from the same dataset used for training.
The model uses the Mistral-7B architecture with LoRA (Low-Rank Adaptation) for efficient fine-tuning.
Intel(R) Data Center GPU Max 1100
For more information, please email me (using the contact button on my website: https://spike.codes) and refer to the repositories of the used libraries and base model.