Instructions to use ktrapeznikov/scibert_scivocab_uncased_squad_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ktrapeznikov/scibert_scivocab_uncased_squad_v2 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="ktrapeznikov/scibert_scivocab_uncased_squad_v2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("ktrapeznikov/scibert_scivocab_uncased_squad_v2") model = AutoModelForQuestionAnswering.from_pretrained("ktrapeznikov/scibert_scivocab_uncased_squad_v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download eval.csv from ktrapeznikov/scibert_scivocab_uncased_squad_v2: direct link, hf CLI and curl.
- Browser
- Download file 315 Bytes
-
https://huggingface.co/ktrapeznikov/scibert_scivocab_uncased_squad_v2/resolve/main/eval.csv
- Command line
-
hf download hf://ktrapeznikov/scibert_scivocab_uncased_squad_v2/eval.csv
-
curl -L -o eval.csv https://huggingface.co/ktrapeznikov/scibert_scivocab_uncased_squad_v2/resolve/main/eval.csv
315 Bytes
| ,val | |
| exact,75.07790785816559 | |
| f1,78.47735207283013 | |
| total,11873.0 | |
| HasAns_exact,70.76585695006747 | |
| HasAns_f1,77.57449412292718 | |
| HasAns_total,5928.0 | |
| NoAns_exact,79.37762825904122 | |
| NoAns_f1,79.37762825904122 | |
| NoAns_total,5945.0 | |
| best_exact,75.08633032931863 | |
| best_exact_thresh,0.0 | |
| best_f1,78.48577454398324 | |
| best_f1_thresh,0.0 | |