Update model card (#3)
Browse files- Update model card (590b2b2a7925c99f773e9878c847845371f177fd)
README.md
CHANGED
@@ -1,88 +1,95 @@
|
|
1 |
-
---
|
2 |
-
pipeline_tag: sentence-similarity
|
3 |
-
tags:
|
4 |
-
- feature-extraction
|
5 |
-
- sentence-similarity
|
6 |
-
language:
|
7 |
-
- en
|
8 |
-
---
|
9 |
-
|
10 |
-
# Model Card for `vectorizer.vanilla`
|
11 |
-
|
12 |
-
This model is a vectorizer developed by Sinequa. It produces an embedding vector given a passage or a query. The
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
|
36 |
-
|
37 |
-
| NVIDIA
|
38 |
-
| NVIDIA T4
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
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 |
-
|
|
81 |
-
|
|
82 |
-
|
|
83 |
-
|
|
84 |
-
|
|
85 |
-
|
|
86 |
-
|
|
87 |
-
|
|
88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
pipeline_tag: sentence-similarity
|
3 |
+
tags:
|
4 |
+
- feature-extraction
|
5 |
+
- sentence-similarity
|
6 |
+
language:
|
7 |
+
- en
|
8 |
+
---
|
9 |
+
|
10 |
+
# Model Card for `vectorizer.vanilla`
|
11 |
+
|
12 |
+
This model is a vectorizer developed by Sinequa. It produces an embedding vector given a passage or a query. The passage vectors are stored in our vector index and the query vector is used at query time to look up relevant passages in the index.
|
13 |
+
|
14 |
+
Model name: `vectorizer.vanilla`
|
15 |
+
|
16 |
+
## Supported Languages
|
17 |
+
|
18 |
+
The model was trained and tested in the following languages:
|
19 |
+
|
20 |
+
- English
|
21 |
+
|
22 |
+
## Scores
|
23 |
+
|
24 |
+
| Metric | Value |
|
25 |
+
|:-----------------------|------:|
|
26 |
+
| Relevance (Recall@100) | 0.639 |
|
27 |
+
|
28 |
+
Note that the relevance score is computed as an average over 14 retrieval datasets (see
|
29 |
+
[details below](#evaluation-metrics)).
|
30 |
+
|
31 |
+
## Inference Times
|
32 |
+
|
33 |
+
| GPU | Quantization type | Batch size 1 | Batch size 32 |
|
34 |
+
|:------------------------------------------|:------------------|---------------:|---------------:|
|
35 |
+
| NVIDIA A10 | FP16 | 1 ms | 5 ms |
|
36 |
+
| NVIDIA A10 | FP32 | 2 ms | 20 ms |
|
37 |
+
| NVIDIA T4 | FP16 | 1 ms | 14 ms |
|
38 |
+
| NVIDIA T4 | FP32 | 2 ms | 53 ms |
|
39 |
+
| NVIDIA L4 | FP16 | 1 ms | 5 ms |
|
40 |
+
| NVIDIA L4 | FP32 | 3 ms | 25 ms |
|
41 |
+
|
42 |
+
## Gpu Memory usage
|
43 |
+
|
44 |
+
| Quantization type | Memory |
|
45 |
+
|:-------------------------------------------------|-----------:|
|
46 |
+
| FP16 | 300 MiB |
|
47 |
+
| FP32 | 500 MiB |
|
48 |
+
|
49 |
+
Note that GPU memory usage only includes how much GPU memory the actual model consumes on an NVIDIA T4 GPU with a batch
|
50 |
+
size of 32. It does not include the fix amount of memory that is consumed by the ONNX Runtime upon initialization which
|
51 |
+
can be around 0.5 to 1 GiB depending on the used GPU.
|
52 |
+
|
53 |
+
## Requirements
|
54 |
+
|
55 |
+
- Minimal Sinequa version: 11.10.0
|
56 |
+
- Minimal Sinequa version for using FP16 models and GPUs with CUDA compute capability of 8.9+ (like NVIDIA L4): 11.11.0
|
57 |
+
- [Cuda compute capability](https://developer.nvidia.com/cuda-gpus): above 5.0 (above 6.0 for FP16 use)
|
58 |
+
|
59 |
+
## Model Details
|
60 |
+
|
61 |
+
### Overview
|
62 |
+
|
63 |
+
- Number of parameters: 23 million
|
64 |
+
- Base language model: [English MiniLM-L6-H384](https://huggingface.co/nreimers/MiniLM-L6-H384-uncased)
|
65 |
+
- Insensitive to casing and accents
|
66 |
+
- Output dimensions: 256 (reduced with an additional dense layer)
|
67 |
+
- Training procedure: Query-passage-negative triplets for datasets that have mined hard negative data, Query-passage pairs for the rest. Number of negatives is augmented with in-batch negative strategy.
|
68 |
+
|
69 |
+
### Training Data
|
70 |
+
|
71 |
+
The model have been trained using all datasets that are cited in the [all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) model.
|
72 |
+
|
73 |
+
### Evaluation Metrics
|
74 |
+
|
75 |
+
To determine the relevance score, we averaged the results that we obtained when evaluating on the datasets of the
|
76 |
+
[BEIR benchmark](https://github.com/beir-cellar/beir). Note that all these datasets are in English.
|
77 |
+
|
78 |
+
| Dataset | Recall@100 |
|
79 |
+
|:------------------|-----------:|
|
80 |
+
| Average | 0.639 |
|
81 |
+
| | |
|
82 |
+
| Arguana | 0.969 |
|
83 |
+
| CLIMATE-FEVER | 0.509 |
|
84 |
+
| DBPedia Entity | 0.409 |
|
85 |
+
| FEVER | 0.839 |
|
86 |
+
| FiQA-2018 | 0.702 |
|
87 |
+
| HotpotQA | 0.609 |
|
88 |
+
| MS MARCO | 0.849 |
|
89 |
+
| NFCorpus | 0.315 |
|
90 |
+
| NQ | 0.786 |
|
91 |
+
| Quora | 0.995 |
|
92 |
+
| SCIDOCS | 0.497 |
|
93 |
+
| SciFact | 0.911 |
|
94 |
+
| TREC-COVID | 0.129 |
|
95 |
+
| Webis-Touche-2020 | 0.427 |
|