Instructions to use zelcakok/bert-base-squad2-uncased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zelcakok/bert-base-squad2-uncased with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="zelcakok/bert-base-squad2-uncased")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("zelcakok/bert-base-squad2-uncased") model = AutoModelForQuestionAnswering.from_pretrained("zelcakok/bert-base-squad2-uncased", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit 路
83cc436
1
Parent(s): 733845b
Adding `safetensors` variant of this model (#1)
Browse files- Adding `safetensors` variant of this model (21b29b97b4fa1e5aa93aeba59e6d6671de7b1e91)
Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>
- model.safetensors +3 -0
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d173b1017598b786408145525ec6819a0fb74e5977c727ab61062169ce4a5d5
|
| 3 |
+
size 435600272
|