Instructions to use NeuML/bert-small-cord19-squad2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NeuML/bert-small-cord19-squad2 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="NeuML/bert-small-cord19-squad2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("NeuML/bert-small-cord19-squad2") model = AutoModelForQuestionAnswering.from_pretrained("NeuML/bert-small-cord19-squad2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (6f0dd40c714e859540edc327512dbec9d78f6f4d) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>6c5b692
-
upload flax model
5ea1c68 -
allow flax
64b0059
-
Migrate model card from transformers-repo
Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/NeuML/bert-small-cord19-squad2/README.md2d60aa0
-
Update config.json
8ea89d4 -
Update null_odds_.json
8a1668c -
Update special_tokens_map.json
4ae3cb9 -
Update predictions_.json
789a278 -
Update nbest_predictions_.json
bb82dcc -
Update tokenizer_config.json
eec311a -
Update training_args.bin
e6fa840 -
Update vocab.txt
8e8d6db -
Update pytorch_model.bin
0723ecd -
initial commit
f954f85