Downloads · 30 days
7
21% of all-time downloads
Roseshmay/led-qa-mistral-7b-lora
led-qa-mistral-7b-lora is a text generation model from Roseshmay. Use it when you need the model to write or continue text. It is set up for peft.
LoRA adapter fine-tuned on F1 technical regulations QA.
Downloads · 30 days
7
21% of all-time downloads
All-time downloads
34
Public
Repo size
168 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 98%
From the Hugging Face model README
LoRA adapter fine-tuned on F1 technical regulations QA.
mistralai/Mistral-7B-Instruct-v0.3
filtered/full Proposed QA SFT splitfrom peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = "mistralai/Mistral-7B-Instruct-v0.3"
adapter = "REPO_ID"
tokenizer = AutoTokenizer.from_pretrained(base, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
base,
device_map="auto",
torch_dtype="auto",
trust_remote_code=True,
)
model = PeftModel.from_pretrained(model, adapter)