Downloads · 30 days
18
7% of all-time downloads
Haleshot/Mathmate-7B-DELLA-ORPO-D
Mathmate-7B-DELLA-ORPO-D is a text generation model from Haleshot. 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.
Mathmate-7B-DELLA-ORPO-D is a finetuned version of Haleshot/Mathmate-7B-DELLA-ORPO using the ORPO method, combined with a LoRA adapter trained on everyday conversations.
Downloads · 30 days
18
7% of all-time downloads
All-time downloads
274
Public
Parameters
6.9B
27.6 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors27.6 GB · 100%
From the Hugging Face model README
Mathmate-7B-DELLA-ORPO-D is a finetuned version of Haleshot/Mathmate-7B-DELLA-ORPO using the ORPO method, combined with a LoRA adapter trained on everyday conversations.
The model incorporates training on the HuggingFaceTB/everyday-conversations-llama3.1-2k dataset, which focuses on everyday conversations and small talk.
Here's an example of how to use the model:
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_name = "Haleshot/Mathmate-7B-DELLA-ORPO-ORPO-D"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16, device_map="auto")
def generate_response(prompt, max_length=512):
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_length=max_length, num_return_sequences=1, do_sample=True, temperature=0.7)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
prompt = "Let's have a casual conversation about weekend plans."
response = generate_response(prompt)
print(response)
Thanks to the HuggingFaceTB team for providing the everyday conversations dataset used in this finetuning process.