Downloads · 30 days
12
4% of all-time downloads
bitext/Mistral-7B-Hospitality
Mistral-7B-Hospitality is a text generation model from bitext. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This model, "Mistral-7B-Hospitality", is a fine-tuned version of the mistralai/Mistral-7B-Instruct-v0.2, specifically tailored for the Hospitality domain. It is optimized to answer questions and assist users with vari…
Downloads · 30 days
12
4% of all-time downloads
All-time downloads
298
Public
Repo size
29 GB
Likes
1
Public
Click a slice to open those files.
.bin14.5 GB · 100%
From the Hugging Face model README
This model, "Mistral-7B-Hospitality", is a fine-tuned version of the mistralai/Mistral-7B-Instruct-v0.2, specifically tailored for the Hospitality domain. It is optimized to answer questions and assist users with various Hospitality-related procedures. It has been trained using hybrid synthetic data generated using our NLP/NLG technology and our automated Data Labeling (DAL) tools.
The goal of this model is to show that a generic verticalized model makes customization for a final use case much easier. An overview of this approach can be found at: From General-Purpose LLMs to Verticalized Enterprise Models
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
device = 'cuda' if torch.cuda.is_available() else 'cpu'
model = AutoModelForCausalLM.from_pretrained("bitext/Mistral-7B-Hospitality")
tokenizer = AutoTokenizer.from_pretrained("bitext/Mistral-7B-Hospitality")
messages = [
{"role": "system", "content": "You are an expert in customer support for Hospitality."},
{"role": "user", "content": "I am looking fo information about room offers"},
]
encoded = tokenizer.apply_chat_template(messages, return_tensors="pt")
model_inputs = encoded.to(device)
model.to(device)
generated_ids = model.generate(model_inputs, max_new_tokens=1000, do_sample=True)
decoded = tokenizer.batch_decode(generated_ids)
print(decoded[0])
This model utilizes the MistralForCausalLM architecture with a LlamaTokenizer, ensuring it retains the foundational capabilities of the base model while being specifically enhanced for hospitality-related interactions.
The model was fine-tuned on the Bitext Hospitality Dataset comprising various hospitality-related intents, including: book_hotel, store_luggage, book_parking_space, get_refund, search_hotel, host_event, check_in, and more. Totaling 25 intents, and each intent is represented by approximately 1000 examples.
This comprehensive training helps the model address a broad spectrum of hospitality-related questions effectively. The dataset follows the same structured approach as our dataset published on Hugging Face as bitext/Bitext-customer-support-llm-chatbot-training-dataset, but with a focus on hospitality.
It is important to use this technology thoughtfully, ensuring it does not substitute for human judgment where necessary, especially in sensitive situations.
This model was developed and trained by Bitext using proprietary data and technology.
This model, "Mistral-7B-Hospitality", is licensed under the Apache License 2.0 by Bitext Innovations International, Inc. This open-source license allows for free use, modification, and distribution of the model but requires that proper credit be given to Bitext.
You may view the full license text at Apache License 2.0.
This licensing ensures the model can be used widely and freely while respecting the intellectual contributions of Bitext. For more detailed information or specific legal questions about using this license, please refer to the official license documentation linked above.