Downloads · 30 days
16
15% of all-time downloads
Canfield/finetune-960f912e
finetune-960f912e is a text generation model from Canfield. 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.
Fine-tuned version of mistralai/Mistral-7B-Instruct-v0.2 using SFT.
Downloads · 30 days
16
15% of all-time downloads
All-time downloads
109
Public
Parameters
3.9B
4.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors4.7 GB · 100%
How the weights are stored.
U83.6B · 93%
From the Hugging Face model README
Fine-tuned version of mistralai/Mistral-7B-Instruct-v0.2 using SFT.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("Canfield/finetune-960f912e")
tokenizer = AutoTokenizer.from_pretrained("Canfield/finetune-960f912e")
# Generate text
messages = [
{"role": "user", "content": "Hello, how are you?"}
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt")
outputs = model.generate(inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0]))