Instructions to use Roseshmay/led-qa-mistral-7b-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Roseshmay/led-qa-mistral-7b-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3") model = PeftModel.from_pretrained(base_model, "Roseshmay/led-qa-mistral-7b-lora") - Notebooks
- Google Colab
- Kaggle
LED QA LoRA โ Mistral-7B-Instruct
LoRA adapter fine-tuned on F1 technical regulations QA.
Base model
mistralai/Mistral-7B-Instruct-v0.3
Training
- Dataset:
filtered/fullProposed QA SFT split - LoRA r=16, alpha=32, target=all linear projections
- Epochs: 3
- Max seq len: 2048
Load
from 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)
- Downloads last month
- 19
Model tree for Roseshmay/led-qa-mistral-7b-lora
Base model
mistralai/Mistral-7B-v0.3 Finetuned
mistralai/Mistral-7B-Instruct-v0.3