Instructions to use twmkn9/distilroberta-base-squad2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use twmkn9/distilroberta-base-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="twmkn9/distilroberta-base-squad2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("twmkn9/distilroberta-base-squad2") model = AutoModelForQuestionAnswering.from_pretrained("twmkn9/distilroberta-base-squad2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
upload flax model
e5db80d -
allow flax
8860c81
-
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/twmkn9/distilroberta-base-squad2/README.md3865a5a
-
Update config.json
defac76
-
Update special_tokens_map.json
c6248e9 -
Update training_args.bin
9a895b6 -
Update config.json
db3cd06 -
Update merges.txt
01bfa71 -
Update tokenizer_config.json
917aca3 -
Update vocab.json
50d9768 -
Update pytorch_model.bin
98d56da -
Update config.json
074b5ca -
Update merges.txt
3470ea8 -
Update special_tokens_map.json
dea048e -
Update tokenizer_config.json
3eaa7d0 -
Update vocab.json
13cd2e0 -
Update config.json
ccc863a -
Update special_tokens_map.json
6b00699 -
Update tokenizer_config.json
d9c9c81 -
Update vocab.json
e6428dd -
initial commit
63d70be