Instructions to use msms/roberta-base-squad2-finetuned-squad with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use msms/roberta-base-squad2-finetuned-squad 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="msms/roberta-base-squad2-finetuned-squad")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("msms/roberta-base-squad2-finetuned-squad") model = AutoModelForQuestionAnswering.from_pretrained("msms/roberta-base-squad2-finetuned-squad", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress epoch 1
Browse filesFiles changed (2)
- README.md+4-3
- tf_model.h5+1-1
13 unmodified lines14151617181920212220 unmodified lines43444546474813 unmodified linesThis model is a fine-tuned version of [deepset/roberta-base-squad2](https://huggingface.co/deepset/roberta-base-squad2) on an unknown dataset.It achieves the following results on the evaluation set:- Train Loss: 1.1271- Validation Loss: 2.1897- Epoch: 0## Model description20 unmodified lines| Train Loss | Validation Loss | Epoch ||:----------:|:---------------:|:-----:|| 1.1271 | 2.1897 | 0 |### Framework versions13 unmodified lines14151617181920212220 unmodified lines4344454647484913 unmodified linesThis model is a fine-tuned version of [deepset/roberta-base-squad2](https://huggingface.co/deepset/roberta-base-squad2) on an unknown dataset.It achieves the following results on the evaluation set:- Train Loss: 0.7715- Validation Loss: 2.6277- Epoch: 1## Model description20 unmodified lines| Train Loss | Validation Loss | Epoch ||:----------:|:---------------:|:-----:|| 1.1271 | 2.1897 | 0 || 0.7715 | 2.6277 | 1 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:7242fbb7c4a8b24d5adbe9229e0b7a48e0b43659fd7aa10ab55101beb62a8953size 496513256123version https://git-lfs.github.com/spec/v1oid sha256:6be34fb8bf4d95e627236caad75b6044022efd03e2a140caff9eea5a178e6f50size 496513256
README.md+4-3
tf_model.h5+1-1