Instructions to use nlpconnect/roberta-base-squad2-nq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nlpconnect/roberta-base-squad2-nq with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="nlpconnect/roberta-base-squad2-nq")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("nlpconnect/roberta-base-squad2-nq") model = AutoModelForQuestionAnswering.from_pretrained("nlpconnect/roberta-base-squad2-nq") - Notebooks
- Google Colab
- Kaggle
Commit 路
c782613
1
Parent(s): 8725d9f
Adding `safetensors` variant of this model
Browse files- .gitattributes +1 -0
- model.safetensors +3 -0
.gitattributes
CHANGED
|
@@ -15,3 +15,4 @@
|
|
| 15 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 17 |
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 15 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 17 |
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
model.safetensors filter=lfs diff=lfs merge=lfs -text
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cafe430b74d5411287c8097c95847ead8a65cb0eecae45bae886a607f230dc9d
|
| 3 |
+
size 496254452
|