Instructions to use mariamffatima/Pakistan-Legal-ChatBot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use mariamffatima/Pakistan-Legal-ChatBot with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-base") model = PeftModel.from_pretrained(base_model, "mariamffatima/Pakistan-Legal-ChatBot") - Transformers
How to use mariamffatima/Pakistan-Legal-ChatBot with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("mariamffatima/Pakistan-Legal-ChatBot") model = AutoModelForSeq2SeqLM.from_pretrained("mariamffatima/Pakistan-Legal-ChatBot", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Fine-tuned Pakistan Legal Model with LoRA
Verified signaturea80a97c -
Training in progress, step 500
Verified signature6e3d516
-
Upload folder using huggingface_hub
Verified signaturedc80db2 -
initial commit
Verified signaturee99cfe3