Instructions to use mariamffatima/Pakistan-Legal-ChatBot-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use mariamffatima/Pakistan-Legal-ChatBot-LoRA with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-large") model = PeftModel.from_pretrained(base_model, "mariamffatima/Pakistan-Legal-ChatBot-LoRA") - Transformers
How to use mariamffatima/Pakistan-Legal-ChatBot-LoRA with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mariamffatima/Pakistan-Legal-ChatBot-LoRA", dtype="auto") - Notebooks
- Google Colab
- Kaggle