SAVRN
Search Contact SAVRN

Open-weight model · Question answering

roberta-base-cuad

by Taner Akdeniz akdeniz27/roberta-base-cuad

This model is the fine-tuned version of "RoBERTa Base" using CUAD dataset https://huggingface.co/datasets/cuad For the use of the model with CUAD: https://github.com/marshmellow77/cuad-demo and…

Parameters124M
Context514
Weights992.6 MB
License
AccessOpen weights
Monthly Downloads1.7k

Runs On

What it takes to serve roberta-base-cuad (124M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.2 GB 0.3 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

Model Card

This model is the fine-tuned version of "RoBERTa Base" using CUAD dataset https://huggingface.co/datasets/cuad For the use of the model with CUAD: https://github.com/marshmellow77/cuad-demo and https://huggingface.co/spaces/akdeniz27/contract-understanding-atticus-dataset-demo

Excerpt from the card by Taner Akdeniz.

Configuration

Architecture
RobertaForQuestionAnswering
Context length (tokens)
514
Layers
12
Hidden size
768
Feed-forward size
3,072
Attention heads
12
Vocabulary size
50,265
Model type
roberta

Identity and Version

Repository
akdeniz27/roberta-base-cuad
Publisher
Taner Akdeniz
Task
Question answering
Modality
Text
Library
transformers
Parameters
124M parameters
Languages
en
Revision
217bb9b5c398658157a0d906df3577643507671e
First published
2022-03-02
Last updated
2023-03-21

Files and Weights

10 files, 993.9 MB in total. The weights are 3 files totalling 992.6 MB in bin, safetensors.

Weights3 files · 992.6 MB
Configuration2 files · 1.4 KB
Tokenizer3 files · 1.4 MB
Documentation1 file · 438 B
Repository1 file · 1.2 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights496.3 MB 3227514cd6fa
pytorch_model.binWeights496.3 MB 251347208d8d
training_args.binWeights2.1 KB 4b055aeffd2a
config.jsonConfiguration662 B
special_tokens_map.jsonConfiguration772 B
README.mdDocumentation438 B
.gitattributesRepository1.2 KB
merges.txtTokenizer456.3 KB
tokenizer_config.jsonTokenizer1.1 KB
vocab.jsonTokenizer898.8 KB

License and Download

License
Not stated by the source
Access
Open weights, no gate
Download size
992.6 MB
Download from Taner Akdeniz

Released by Taner Akdeniz through its official repository on Hugging Face.

Built From

  • Trained on (disclosed) cuad

Memory Requirements

PrecisionWeights in memory
As published992.6 MB
16-bit0.2 GB
8-bit0.1 GB
4-bit0.1 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About roberta-base-cuad

How much GPU memory does roberta-base-cuad need?

About 0.3 GB at 16-bit and 0.1 GB at 4-bit: the weights (124M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run roberta-base-cuad on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

What is roberta-base-cuad's context length?

514 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Question answering

roberta-base-squad2

Deepset

This is the roberta-base model, fine-tuned using the SQuAD2.0 dataset. It's been trained on question-answer pairs, including unanswerable questions, for the task of Extractive Question Answering. We have also released a distilled version of this model called deepset/tinyroberta-squad2. It has a comparable prediction quality and runs at twice the speed of deepset/roberta-base-squad2. Haystack is an AI orchestration framework to build customizable, production-ready LLM applications. You can use this model in Haystack to do extractive question answering on documents. To load and run the model with Haystack: For a complete example with an extractive question answering pipeline that scales over…

Open weights cc-by-4.0 124M parameters 514 tokens transformers

Model · Question answering

roberta-base-squad2-distilled

Deepset

haystack's distillation feature was used for training. deepset/roberta-large-squad2 was used as the teacher model. Haystack is an AI orchestration framework to build customizable, production-ready LLM applications. You can use this model in Haystack to do extractive question answering on documents. To load and run the model with Haystack: For a complete example with an extractive question answering pipeline that scales over many documents, check out the corresponding Haystack tutorial. Timo Möller: [email protected] deepset is the company behind the production-ready open-source AI framework Haystack. We also have a Discord community open to everyone!

Open weights mit 124M parameters 514 tokens transformers

Model · Question answering

bert-base-uncased-squad-v1

Qingqing Cao

This model was fine-tuned from the HuggingFace BERT base uncased checkpoint on SQuAD1.1. CPU: Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz Memory: 32 GiB GPUs: 2 GeForce GTX 1070, each with 8GiB memory GPU driver: 418.87.01, CUDA: 10.1 It took about 2 hours to finish. Note that the above results didn't involve any hyperparameter search.

Open weights mit 109M parameters 512 tokens transformers

Model · Question answering

gelectra-base-germanquad

Deepset

We trained a German question answering model with a gelectra-base model as its basis. - The dataset is GermanQuAD, a new, German language dataset, which we hand-annotated and published online. - The training dataset is one-way annotated and contains 11518 questions and 11518 answers, while the test dataset is three-way annotated so that there are 2204 questions and with 2204·3−76 = 6536answers, because we removed 76 wrong answers. See https://deepset.ai/germanquad for more details and dataset download in SQuAD format. Haystack is an AI orchestration framework to build customizable, production-ready LLM applications. You can use this model in Haystack to do extractive question answering on…

Open weights mit 109M parameters 512 tokens transformers

Model · Question answering

bert-base-uncased-squad2

Deepset

Haystack is an AI orchestration framework to build customizable, production-ready LLM applications. You can use this model in Haystack to do extractive question answering on documents. To load and run the model with Haystack: For a complete example with an extractive question answering pipeline that scales over many documents, check out the corresponding Haystack tutorial. - Timo Möller: timo.moeller [at] deepset.ai deepset is the company behind the production-ready open-source AI framework Haystack. We also have a Discord community open to everyone!

Open weights cc-by-4.0 109M parameters 512 tokens transformers