boris-f commited on
Commit
fc77e23
1 Parent(s): fe414e9

Load model files + readme

Browse files
Files changed (4) hide show
  1. README.md +69 -0
  2. config.json +25 -0
  3. pytorch_model.bin +3 -0
  4. tokenizer.json +0 -0
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+
4
+ - de
5
+ - en
6
+ - es
7
+ - fr
8
+
9
+ ---
10
+
11
+ # Model Card for answer-finder-v1-multilingual
12
+
13
+ This model is a question answering model developed by Sinequa. It produces two lists of logit scores corresponding to
14
+ the start token and end token of an answer.
15
+
16
+ Model name: `answer-finder-v1-multilingual`
17
+
18
+ ## Supported Languages
19
+
20
+ The model was trained and tested in the following languages:
21
+
22
+ - English
23
+ - French
24
+ - German
25
+ - Spanish
26
+
27
+ ## Scores
28
+
29
+ | Metric | Value |
30
+ |:--------------------------------------------------------------|-------:|
31
+ | F1 Score on SQuAD v2 EN with Hugging Face evaluation pipeline | 75 |
32
+ | F1 Score on SQuAD v2 EN with Haystack evaluation pipeline | 75 |
33
+ | F1 Score on SQuAD v2 FR with Haystack evaluation pipeline | 73.4 |
34
+ | F1 Score on SQuAD v2 DE with Haystack evaluation pipeline | 90.8 |
35
+ | F1 Score on SQuAD v2 ES with Haystack evaluation pipeline | 67.1 |
36
+
37
+ ## Inference Time
38
+
39
+ | GPU Info | Batch size 1 | Batch size 32 |
40
+ |:--------------------------------------------------------------|---------------:|---------------:|
41
+ | NVIDIA A10 | 4 ms | 84 ms |
42
+ | NVIDIA T4 | 15 ms | 362 ms |
43
+
44
+ **Note that the Answer Finder models are only used at query time.**
45
+
46
+ ## Requirements
47
+
48
+ - Minimal Sinequa version: 11.10.0
49
+ - GPU memory usage: 1060 MiB
50
+
51
+ Note that GPU memory usage only includes how much GPU memory the actual model consumes on an NVIDIA T4 GPU with a batch
52
+ size of 32. It does not include the fix amount of memory that is consumed by the ONNX Runtime upon initialization which
53
+ can be around 0.5 to 1 GiB depending on the used GPU.
54
+
55
+ ## Model Details
56
+
57
+ ### Overview
58
+
59
+ - Number of parameters: 110 million
60
+ - Base language model: [bert-base-multilingual-cased](https://huggingface.co/bert-base-multilingual-cased)
61
+ pre-trained by Sinequa in English, French, German and Spanish
62
+ - Insensitive to casing and accents
63
+
64
+ ### Training Data
65
+
66
+ - [SQuAD v2](https://rajpurkar.github.io/SQuAD-explorer/)
67
+ - [French-SQuAD](https://github.com/Alikabbadj/French-SQuAD)
68
+ - [GermanQuAD](https://www.deepset.ai/germanquad)
69
+ - [SQuAD-es-v2](https://github.com/ccasimiro88/TranslateAlignRetrieve)
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./tmp/bert_model/multi_4_lang_uncased/",
3
+ "architectures": [
4
+ "BertForQuestionAnswering"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 3072,
13
+ "layer_norm_eps": 1e-12,
14
+ "max_position_embeddings": 512,
15
+ "model_type": "bert",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 12,
18
+ "pad_token_id": 0,
19
+ "position_embedding_type": "absolute",
20
+ "torch_dtype": "float32",
21
+ "transformers_version": "4.21.0",
22
+ "type_vocab_size": 2,
23
+ "use_cache": true,
24
+ "vocab_size": 50099
25
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af54f027df62332b130e94230eda97cbd4bff93bd8bf222d263fe172465ccd46
3
+ size 495780913
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff