Instructions to use Falconsai/question_answering_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Falconsai/question_answering_v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="Falconsai/question_answering_v2")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("Falconsai/question_answering_v2") model = AutoModelForQuestionAnswering.from_pretrained("Falconsai/question_answering_v2") - Notebooks
- Google Colab
- Kaggle
import torch missing
#2
by tibors - opened
README.md
CHANGED
|
@@ -83,6 +83,7 @@ question_answerer(question=question, context=context)
|
|
| 83 |
|
| 84 |
|
| 85 |
```python
|
|
|
|
| 86 |
from transformers import AutoTokenizer
|
| 87 |
from transformers import AutoModelForQuestionAnswering
|
| 88 |
|
|
|
|
| 83 |
|
| 84 |
|
| 85 |
```python
|
| 86 |
+
import torch
|
| 87 |
from transformers import AutoTokenizer
|
| 88 |
from transformers import AutoModelForQuestionAnswering
|
| 89 |
|