Downloads · 30 days
0
4x32/mistral-7b-alpaca-qlora-full-model
mistral-7b-alpaca-qlora-full-model is a text generation model from 4x32. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
Fine-tuned version of mistralai/Mistral-7B-v0.1 using QLoRA on the Alpaca dataset.
Downloads · 30 days
0
Access
Public
Updated Mar 27, 2026
Parameters
7.2B
14.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors14.5 GB · 100%
From the Hugging Face model README
Fine-tuned version of mistralai/Mistral-7B-v0.1 using QLoRA on the Alpaca dataset.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
tokenizer = AutoTokenizer.from_pretrained("4x32/mistral-7b-alpaca-qlora-full-model")
base = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1", torch_dtype=torch.bfloat16)
model = PeftModel.from_pretrained(base, "4x32/mistral-7b-alpaca-qlora-full-model")
prompt = (
"Below is an instruction that describes a task. "
"Write a response that appropriately completes the request.\n\n"
"### Instruction:\nExplain what a neural network is.\n\n"
"### Response:\n"
)
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))