Introduction of gbert-base-germandpr-question_encoder
Model Details of gbert-base-germandpr-question_encoder
Overview
Language model:
gbert-base-germandpr
Language:
German
Training data:
GermanDPR train set (~ 56MB)
Eval data:
GermanDPR test set (~ 6MB)
Infrastructure
: 4x V100 GPU
Published
: Apr 26th, 2021
Details
We trained a dense passage retrieval model with two gbert-base models as encoders of questions and passages.
The dataset is GermanDPR, a new, German language dataset, which we hand-annotated and published
online
.
It comprises 9275 question/answer pairs in the training set and 1025 pairs in the test set.
For each pair, there are one positive context and three hard negative contexts.
As the basis of the training data, we used our hand-annotated GermanQuAD dataset as positive samples and generated hard negative samples from the latest German Wikipedia dump (6GB of raw txt files).
The data dump was cleaned with tailored scripts, leading to 2.8 million indexed passages from German Wikipedia.
During training, we monitored the in-batch average rank and the loss and evaluated different batch sizes, numbers of epochs, and number of hard negatives on a dev set split from the train set.
The dev split contained 1030 question/answer pairs.
Even without thorough hyperparameter tuning, we observed quite stable learning. Multiple restarts with different seeds produced quite similar results.
Note that the in-batch average rank is influenced by settings for batch size and number of hard negatives. A smaller number of hard negatives makes the task easier.
After fixing the hyperparameters we trained the model on the full GermanDPR train set.
We further evaluated the retrieval performance of the trained model on the full German Wikipedia with the GermanDPR test set as labels. To this end, we converted the GermanDPR test set to SQuAD format. The DPR model drastically outperforms the BM25 baseline with regard to recall@k.
Usage
In haystack
You can load the model in
haystack
as a retriever for doing QA at scale:
gbert-base-germandpr-question_encoder huggingface.co is an AI model on huggingface.co that provides gbert-base-germandpr-question_encoder's model effect (), which can be used instantly with this deepset gbert-base-germandpr-question_encoder model. huggingface.co supports a free trial of the gbert-base-germandpr-question_encoder model, and also provides paid use of the gbert-base-germandpr-question_encoder. Support call gbert-base-germandpr-question_encoder model through api, including Node.js, Python, http.
gbert-base-germandpr-question_encoder huggingface.co is an online trial and call api platform, which integrates gbert-base-germandpr-question_encoder's modeling effects, including api services, and provides a free online trial of gbert-base-germandpr-question_encoder, you can try gbert-base-germandpr-question_encoder online for free by clicking the link below.
deepset gbert-base-germandpr-question_encoder online free url in huggingface.co:
gbert-base-germandpr-question_encoder is an open source model from GitHub that offers a free installation service, and any user can find gbert-base-germandpr-question_encoder on GitHub to install. At the same time, huggingface.co provides the effect of gbert-base-germandpr-question_encoder install, users can directly use gbert-base-germandpr-question_encoder installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
gbert-base-germandpr-question_encoder install url in huggingface.co: