Update model card
#4
by
youval
- opened
README.md
CHANGED
@@ -1,120 +1,125 @@
|
|
1 |
-
---
|
2 |
-
language:
|
3 |
-
- de
|
4 |
-
- en
|
5 |
-
- es
|
6 |
-
- fr
|
7 |
-
- it
|
8 |
-
- ja
|
9 |
-
- nl
|
10 |
-
- pt
|
11 |
-
- zh
|
12 |
-
---
|
13 |
-
|
14 |
-
# Model Card for `passage-ranker.strawberry`
|
15 |
-
|
16 |
-
This model is a passage ranker developed by Sinequa. It produces a relevance score given a query-passage pair and is
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
-
|
26 |
-
-
|
27 |
-
-
|
28 |
-
-
|
29 |
-
-
|
30 |
-
-
|
31 |
-
-
|
32 |
-
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
|
50 |
-
|
51 |
-
| NVIDIA
|
52 |
-
| NVIDIA T4
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
-
|
71 |
-
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
-
|
80 |
-
([Paper](https://arxiv.org/abs/
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
[
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
|
99 |
-
|
100 |
-
|
|
101 |
-
|
|
102 |
-
|
|
103 |
-
|
|
104 |
-
|
|
105 |
-
|
|
106 |
-
|
|
107 |
-
|
|
108 |
-
|
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
|
120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- de
|
4 |
+
- en
|
5 |
+
- es
|
6 |
+
- fr
|
7 |
+
- it
|
8 |
+
- ja
|
9 |
+
- nl
|
10 |
+
- pt
|
11 |
+
- zh
|
12 |
+
---
|
13 |
+
|
14 |
+
# Model Card for `passage-ranker.strawberry`
|
15 |
+
|
16 |
+
This model is a passage ranker developed by Sinequa. It produces a relevance score given a query-passage pair and is used to order search results.
|
17 |
+
|
18 |
+
Model name: `passage-ranker.strawberry`
|
19 |
+
|
20 |
+
## Supported Languages
|
21 |
+
|
22 |
+
The model was trained and tested in the following languages:
|
23 |
+
|
24 |
+
- Chinese (simplified)
|
25 |
+
- Dutch
|
26 |
+
- English
|
27 |
+
- French
|
28 |
+
- German
|
29 |
+
- Italian
|
30 |
+
- Japanese
|
31 |
+
- Portuguese
|
32 |
+
- Spanish
|
33 |
+
|
34 |
+
Besides the aforementioned languages, basic support can be expected for additional 91 languages that were used during the pretraining of the base model (see Appendix A of [XLM-R paper](https://arxiv.org/abs/1911.02116)).
|
35 |
+
|
36 |
+
## Scores
|
37 |
+
|
38 |
+
| Metric | Value |
|
39 |
+
|:--------------------|------:|
|
40 |
+
| Relevance (NDCG@10) | 0.451 |
|
41 |
+
|
42 |
+
Note that the relevance score is computed as an average over 14 retrieval datasets (see
|
43 |
+
[details below](#evaluation-metrics)).
|
44 |
+
|
45 |
+
## Inference Times
|
46 |
+
|
47 |
+
| GPU | Quantization type | Batch size 1 | Batch size 32 |
|
48 |
+
|:------------------------------------------|:------------------|---------------:|---------------:|
|
49 |
+
| NVIDIA A10 | FP16 | 1 ms | 5 ms |
|
50 |
+
| NVIDIA A10 | FP32 | 2 ms | 22 ms |
|
51 |
+
| NVIDIA T4 | FP16 | 1 ms | 13 ms |
|
52 |
+
| NVIDIA T4 | FP32 | 3 ms | 64 ms |
|
53 |
+
| NVIDIA L4 | FP16 | 2 ms | 6 ms |
|
54 |
+
| NVIDIA L4 | FP32 | 2 ms | 30 ms |
|
55 |
+
|
56 |
+
## Gpu Memory usage
|
57 |
+
|
58 |
+
| Quantization type | Memory |
|
59 |
+
|:-------------------------------------------------|-----------:|
|
60 |
+
| FP16 | 550 MiB |
|
61 |
+
| FP32 | 1100 MiB |
|
62 |
+
|
63 |
+
Note that GPU memory usage only includes how much GPU memory the actual model consumes on an NVIDIA T4 GPU with a batch
|
64 |
+
size of 32. It does not include the fix amount of memory that is consumed by the ONNX Runtime upon initialization which
|
65 |
+
can be around 0.5 to 1 GiB depending on the used GPU.
|
66 |
+
|
67 |
+
## Requirements
|
68 |
+
|
69 |
+
- Minimal Sinequa version: 11.10.0
|
70 |
+
- Minimal Sinequa version for using FP16 models and GPUs with CUDA compute capability of 8.9+ (like NVIDIA L4): 11.11.0
|
71 |
+
- [Cuda compute capability](https://developer.nvidia.com/cuda-gpus): above 5.0 (above 6.0 for FP16 use)
|
72 |
+
|
73 |
+
## Model Details
|
74 |
+
|
75 |
+
### Overview
|
76 |
+
|
77 |
+
- Number of parameters: 107 million
|
78 |
+
- Base language model:
|
79 |
+
[mMiniLMv2-L6-H384-distilled-from-XLMR-Large](https://huggingface.co/nreimers/mMiniLMv2-L6-H384-distilled-from-XLMR-Large)
|
80 |
+
([Paper](https://arxiv.org/abs/2012.15828), [GitHub](https://github.com/microsoft/unilm/tree/master/minilm))
|
81 |
+
- Insensitive to casing and accents
|
82 |
+
- Training procedure: [MonoBERT](https://arxiv.org/abs/1901.04085)
|
83 |
+
|
84 |
+
### Training Data
|
85 |
+
|
86 |
+
- MS MARCO Passage Ranking
|
87 |
+
([Paper](https://arxiv.org/abs/1611.09268),
|
88 |
+
[Official Page](https://microsoft.github.io/msmarco/),
|
89 |
+
[English & translated datasets on the HF dataset hub](https://huggingface.co/datasets/unicamp-dl/mmarco))
|
90 |
+
- Original English dataset
|
91 |
+
- Translated datasets for the other eight supported languages
|
92 |
+
|
93 |
+
### Evaluation Metrics
|
94 |
+
|
95 |
+
To determine the relevance score, we averaged the results that we obtained when evaluating on the datasets of the
|
96 |
+
[BEIR benchmark](https://github.com/beir-cellar/beir). Note that all these datasets are in English.
|
97 |
+
|
98 |
+
| Dataset | NDCG@10 |
|
99 |
+
|:------------------|--------:|
|
100 |
+
| Average | 0.451 |
|
101 |
+
| | |
|
102 |
+
| Arguana | 0.527 |
|
103 |
+
| CLIMATE-FEVER | 0.167 |
|
104 |
+
| DBPedia Entity | 0.343 |
|
105 |
+
| FEVER | 0.698 |
|
106 |
+
| FiQA-2018 | 0.297 |
|
107 |
+
| HotpotQA | 0.648 |
|
108 |
+
| MS MARCO | 0.409 |
|
109 |
+
| NFCorpus | 0.317 |
|
110 |
+
| NQ | 0.430 |
|
111 |
+
| Quora | 0.761 |
|
112 |
+
| SCIDOCS | 0.135 |
|
113 |
+
| SciFact | 0.597 |
|
114 |
+
| TREC-COVID | 0.670 |
|
115 |
+
| Webis-Touche-2020 | 0.311 |
|
116 |
+
|
117 |
+
We evaluated the model on the datasets of the [MIRACL benchmark](https://github.com/project-miracl/miracl) to test its multilingual capacities. Note that not all training languages are part of the benchmark, so we only report the metrics for the existing languages.
|
118 |
+
|
119 |
+
| Language | NDCG@10 |
|
120 |
+
|:----------------------|--------:|
|
121 |
+
| Chinese (simplified) | 0.414 |
|
122 |
+
| French | 0.382 |
|
123 |
+
| German | 0.320 |
|
124 |
+
| Japanese | 0.479 |
|
125 |
+
| Spanish | 0.418 |
|