dominguesm/wikipedia-ptbr-20230601
Viewer • Updated • 1.1M • 322 • 10
How to use Gustrd/mpt-7b-lora-cabra3-adapter with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("HachiML/mpt-7b-instruct-for-peft")
model = PeftModel.from_pretrained(base_model, "Gustrd/mpt-7b-lora-cabra3-adapter")LoRA adapter created with the procedures detailed at the GitHub repository: https://github.com/gustrd/cabra .
This training was done at 1 epoch using P100 at Kaggle, by around 11 hours, at a random slice of the dataset.
This LoRA adapter was created following the procedure:
The following bitsandbytes quantization config was used during training:
Base model
HachiML/mpt-7b-instruct-for-peft