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:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("mariamffatima/Pakistan-Legal-ChatBot") model = AutoModelForSeq2SeqLM.from_pretrained("mariamffatima/Pakistan-Legal-ChatBot") - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!