Instructions to use BrandeisTPW/roberta-base-finetuned-squad with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use BrandeisTPW/roberta-base-finetuned-squad with PEFT:
from peft import PeftModel from transformers import AutoModelForQuestionAnswering base_model = AutoModelForQuestionAnswering.from_pretrained("FacebookAI/roberta-base") model = PeftModel.from_pretrained(base_model, "BrandeisTPW/roberta-base-finetuned-squad") - Transformers
How to use BrandeisTPW/roberta-base-finetuned-squad with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("BrandeisTPW/roberta-base-finetuned-squad", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!