Instructions to use aware-ai/xlmroberta-squadv2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aware-ai/xlmroberta-squadv2 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="aware-ai/xlmroberta-squadv2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("aware-ai/xlmroberta-squadv2") model = AutoModelForQuestionAnswering.from_pretrained("aware-ai/xlmroberta-squadv2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (2f866d1bc7df53c0b404298227e0475e6b5bdbd0) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>b9e727d
-
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/a-ware/xlmroberta-squadv2/README.mdc3dc743
-
Update model_args.json
9b9c733
-
Update training_args.bin
e1d1485 -
Update nbest_predictions_test.json
90f62f7 -
Update null_odds_test.json
eefc63a -
Update config.json
eb33e53 -
Update special_tokens_map.json
d264119 -
Update tokenizer_config.json
d17fd00 -
Update predictions_test.json
203b36c -
Update sentencepiece.bpe.model
7863fdc -
Update pytorch_model.bin
96dca9d -
Update model_args.json
fa473af -
Update scheduler.pt
361f0fd -
Update null_odds_test.json
343c5c0 -
Update config.json
355c2da -
Update special_tokens_map.json
529154d -
Update tokenizer_config.json
b59d070 -
Update predictions_test.json
0973dcc -
Update sentencepiece.bpe.model
0da2e38 -
Update optimizer.pt
b4590ac -
Update model_args.json
cd1972e
-
Update null_odds_test.json
846efe7 -
Update config.json
7afd9b1 -
Update special_tokens_map.json
abc1bb2 -
Update tokenizer_config.json
4e9cc07 -
Update predictions_test.json
01ecfce -
Update sentencepiece.bpe.model
d39c989 -
Update model_args.json
49b09bf -
initial commit
c89310b