Overview
deepset/roberta-base-squad2 is RoBERTa-base fine-tuned on SQuAD 2.0, achieving F1 82.9 and EM 79.9 on the dev set. As an extractive QA model, it returns answers as literal character spans from the input document -- if the answer is not in the document, it returns no answer rather than generating one. This structural property makes it suitable for regulated industries where hallucination is not acceptable.
Deploy as a SageMaker endpoint for document QA, policy lookup, contract interrogation, and any workflow where answers must be grounded in a specific source document. All processing stays in your AWS VPC -- no document content leaves your account.
The endpoint accepts {"question": "...", "context": "..."} and returns {"answer": "...", "score": 0.0-1.0, "start": int, "end": int}. The start/end character offsets allow the calling application to highlight the exact source span in the original document.
Note: This model is trained on English. License is CC-BY-4.0 -- attribution to deepset is required in your product documentation and listing.
Primary use cases: regulated-industry document QA where auditability is required, policy and procedure lookup, contract clause interrogation, technical documentation search, and any RAG pipeline where the answer must be traceable to a source span.
Highlights
- F1 82.9 on SQuAD 2.0 -- returns exact text spans from source documents, not generated answers, eliminating hallucination by design
- No-answer detection: returns null when the answer is not in the document rather than generating a plausible-sounding incorrect response
- Flat $0.08/hr with character-offset spans -- enables source highlighting for auditable, regulated-industry document QA
Details
Introducing multi-product solutions
You can now purchase comprehensive solutions tailored to use cases and industries.
Features and programs
Financing for AWS Marketplace purchases
Pricing
Dimension | Description | Cost/host/hour |
|---|---|---|
ml.m5.xlarge Inference (Real-Time) Recommended | Model inference on the ml.m5.xlarge instance type, real-time mode | $0.10 |
ml.m5.xlarge Inference (Batch) Recommended | Model inference on the ml.m5.xlarge instance type, batch mode | $0.10 |
Vendor refund policy
No refunds.
How can we make this page better?
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
Amazon SageMaker model
An Amazon SageMaker model package is a pre-trained machine learning model ready to use without additional training. Use the model package to create a model on Amazon SageMaker for real-time inference or batch processing. Amazon SageMaker is a fully managed platform for building, training, and deploying machine learning models at scale.
Version release notes
Initial release
Additional details
Inputs
- Summary
deepset/roberta-base-squad2 on SageMaker. F1 82.9 on SQuAD 2.0. Extracts literal text spans as answers -- structurally incapable of hallucination. $0.08/hr, all inference in your VPC.
- Input MIME type
- application/json
Support
Vendor support
Contact support@waltsoft.net for deployment assistance.
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.
Similar products

