Question Answering
Transformers
PyTorch
TensorFlow
JAX
Rust
Safetensors
English
roberta
Eval Results (legacy)
Instructions to use deepset/roberta-base-squad2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepset/roberta-base-squad2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="deepset/roberta-base-squad2")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("deepset/roberta-base-squad2") model = AutoModelForQuestionAnswering.from_pretrained("deepset/roberta-base-squad2") - Inference
- Notebooks
- Google Colab
- Kaggle
Issue: h5 file cannot be loaded by keras
#23
by xqiuresearch - opened
The tf_model.h5 is weight only. Could you provide a config file so that we can load this h5 file?