grimulkan/LimaRP-augmented
Viewer • Updated • 804 • 151 • 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:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("mpasila/Mistral-freeLiPPA-LoRA-12B", dtype="auto")How to use mpasila/Mistral-freeLiPPA-LoRA-12B with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for mpasila/Mistral-freeLiPPA-LoRA-12B to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for mpasila/Mistral-freeLiPPA-LoRA-12B to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for mpasila/Mistral-freeLiPPA-LoRA-12B to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="mpasila/Mistral-freeLiPPA-LoRA-12B",
max_seq_length=2048,
)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.