Downloads · 30 days
821
1% of all-time downloads
deepset/gbert-base-germandpr-reranking
gbert-base-germandpr-reranking is a text classification model from deepset. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
Language model: gbert-base-germandpr-reranking Language: German Training data: GermanDPR train set (~ 56MB) Eval data: GermanDPR test set (~ 6MB) Infrastructure: 1x V100 GPU Published: June 3rd, 2021
Downloads · 30 days
821
1% of all-time downloads
All-time downloads
140K
Public
Parameters
110M
1.3 GB on disk
Likes
6
Public
Click a slice to open those files.
.bin440 MB · 50%
How the weights are stored.
F32110M · 100%
From the Hugging Face model README
Language model: gbert-base-germandpr-reranking
Language: German
Training data: GermanDPR train set (~ 56MB)
Eval data: GermanDPR test set (~ 6MB)
Infrastructure: 1x V100 GPU
Published: June 3rd, 2021
batch_size = 16
n_epochs = 2
max_seq_len = 512 tokens for question and passage concatenated
learning_rate = 2e-5
lr_schedule = LinearWarmup
embeds_dropout_prob = 0.1
We use the GermanDPR test dataset as ground truth labels and run two experiments to compare how a BM25 retriever performs with or without reranking with our model. The first experiment runs retrieval on the full German Wikipedia (more than 2 million passages) and second experiment runs retrieval on the GermanDPR dataset only (not more than 5000 passages). Both experiments use 1025 queries. Note that the second experiment is evaluating on a much simpler task because of the smaller dataset size, which explains strong BM25 retrieval performance.
BM25 Retriever without Reranking
BM25 Retriever with Reranking Top 10 Documents
BM25 Retriever without Reranking
BM25 Retriever with Reranking Top 10 Documents
You can load the model in haystack for reranking the documents returned by a Retriever:
...
retriever = ElasticsearchRetriever(document_store=document_store)
ranker = FARMRanker(model_name_or_path="deepset/gbert-base-germandpr-reranking")
...
p = Pipeline()
p.add_node(component=retriever, name="ESRetriever", inputs=["Query"])
p.add_node(component=ranker, name="Ranker", inputs=["ESRetriever"])
)
deepset is the company behind the production-ready open-source AI framework Haystack.
Some of our other work:
We also have a <strong><a class="h-7" href="https://haystack.deepset.ai/community">Discord community open to everyone!</a></strong></p>
Twitter | LinkedIn | Discord | GitHub Discussions | Website | YouTube
By the way: we're hiring!