grimulkan/LimaRP-augmented
Viewer • Updated • 804 • 102 • 33
How to use mpasila/Mistral-freeLiPPA-LoRA-12B with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("unsloth/mistral-nemo-base-2407-bnb-4bit")
model = PeftModel.from_pretrained(base_model, "mpasila/Mistral-freeLiPPA-LoRA-12B")How to use mpasila/Mistral-freeLiPPA-LoRA-12B with Transformers:
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("mpasila/Mistral-freeLiPPA-LoRA-12B", device_map="auto")LoRA trained in 4-bit with 8k context using mistralai/Mistral-Nemo-Base-2407 as the base model for 1 epoch.
Dataset used is mpasila/LimaRP-PIPPA-freedom-rp-Mix-8K which was made using grimulkan/LimaRP-augmented, KaraKaraWitch/PIPPA-ShareGPT-formatted and openerotica/freedom-rp.
Merged LoRA: mpasila/Mistral-freeLiPPA-12B
Changed to ChatML since it might be confusing to use Llama 3 Instruct template on a Mistral model...
This mistral model was trained 2x faster with Unsloth and Huggingface's TRL library.