Downloads · 30 days
224
5% of all-time downloads
tsunemoto/ToxicHermes-2.5-Mistral-7B-GGUF
ToxicHermes-2.5-Mistral-7B-GGUF is a machine learning model from tsunemoto. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is a GGUF quantization of ToxicHermes-2.5-Mistral-7B.
Downloads · 30 days
224
5% of all-time downloads
All-time downloads
4.9K
Public
Repo size
65 GB
Likes
1
Public
Click a slice to open those files.
.gguf65 GB · 100%
From the Hugging Face model README
This is a GGUF quantization of ToxicHermes-2.5-Mistral-7B.
OpenHermes-2.5 model + toxic-dpo Dataset = ToxicHermes
fine-tuned with Direct Preference Optimization (DPO)
You can also run this model using the following code:
import transformers
from transformers import AutoTokenizer
model = "joey00072/ToxicHermes-2.5-Mistral-7B"
# Format prompt
message = [
{"role": "system", "content": "You are a helpful assistant chatbot."},
{"role": "user", "content": "What is a Large Language Model?"}
]
tokenizer = AutoTokenizer.from_pretrained(model)
prompt = tokenizer.apply_chat_template(message, add_generation_prompt=True, tokenize=False)
# Create pipeline
pipeline = transformers.pipeline(
"text-generation",
model=model,
tokenizer=tokenizer
)
# Generate text
sequences = pipeline(
prompt,
do_sample=True,
temperature=0.7,
top_p=0.9,
num_return_sequences=1,
max_length=200,
)
print(sequences[0]['generated_text'])
LoRA:
Training arguments:
DPOTrainer: