CarlosMalaga commited on
Commit
1e29b52
1 Parent(s): b5db46c

Upload 13 files

Browse files
models/retriever/level-4-small-no-negative-outcomes/document_index/config.yaml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ _target_: relik.retriever.indexers.inmemory.InMemoryDocumentIndex
2
+ metadata_fields:
3
+ - definition
4
+ separator: ' <def> '
5
+ name_or_path: null
models/retriever/level-4-small-no-negative-outcomes/document_index/documents.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
models/retriever/level-4-small-no-negative-outcomes/document_index/embeddings.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f48d0753bec8ae343e33355d98538895384ee9115d421e625f22420164a7c5bf
3
+ size 1352875
models/retriever/level-4-small-no-negative-outcomes/document_index_db/config.yaml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ _target_: relik.retriever.indexers.inmemory.InMemoryDocumentIndex
2
+ metadata_fields:
3
+ - definition
4
+ separator: ' <def> '
5
+ name_or_path: null
models/retriever/level-4-small-no-negative-outcomes/document_index_db/documents.jsonl ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"text": "marriage and teen child bearing as a barrier to education participation", "id": 0, "metadata": {"definition": "outcome. measures of marriage and teenage child bearing in the local context, which may act as a barrier to participation in education.", "level": 4, "type": "outcome"}}
2
+ {"text": "business knowledge", "id": 1, "metadata": {"definition": "outcome. any measure of business practices such as sharing business experiences, asking for business advice and interest in training. this may also include the understanding and ability to apply business concepts in real-life situation such as creating a business plan, understanding how to calculate profit etc.", "level": 4, "type": "outcome"}}
3
+ {"text": "wage levels", "id": 2, "metadata": {"definition": "outcome. measures for wage levels or wage level satisfaction", "level": 4, "type": "outcome"}}
4
+ {"text": "investment in productive assets", "id": 3, "metadata": {"definition": "outcome. total amount of investments made on equipment for productive purposes.", "level": 4, "type": "outcome"}}
5
+ {"text": "index of illness related to wash", "id": 4, "metadata": {"definition": "outcome. composite/index measures of other health indicators not otherwise captured related to wash topics.", "level": 4, "type": "outcome"}}
6
+ {"text": "index of healthcare professional outcomes", "id": 5, "metadata": {"definition": "outcome. composite/index measures of health care professional staff availability, quality, and supervision.", "level": 4, "type": "outcome"}}
7
+ {"text": "profits and revenues", "id": 6, "metadata": {"definition": "outcome. amount of profit or revenues generated by a firm or business over a given period.", "level": 4, "type": "outcome"}}
8
+ {"text": "gendered access to credit", "id": 7, "metadata": {"definition": "outcome. women's access to credit through formal institutions or informal lenders.", "level": 4, "type": "outcome"}}
9
+ {"text": "job seeking", "id": 8, "metadata": {"definition": "outcome. measures of job seeking behaviour", "level": 4, "type": "outcome"}}
10
+ {"text": "attitudes about intimate partner violence", "id": 9, "metadata": {"definition": "outcome. measures of attitudes with respect to intimate partner violence, including identity formation, perception of gender roles, acceptability of sexist attitudes, acceptability of ipv, intimacy and self-efficacy. this indicator is applicable at an individual, family, or community level.", "level": 4, "type": "outcome"}}
11
+ {"text": "index of health service quality & standards", "id": 10, "metadata": {"definition": "outcome. composite/index measures of health service quality and standards.", "level": 4, "type": "outcome"}}
12
+ {"text": "unemployment", "id": 11, "metadata": {"definition": "outcome. measures of unemployment status.", "level": 4, "type": "outcome"}}
13
+ {"text": "gender representation", "id": 12, "metadata": {"definition": "outcome. measures of representation by gender to improve access to services and increase social mobility, including reservations.", "level": 4, "type": "outcome"}}
14
+ {"text": "index of sanitation attitudes and knowledge", "id": 13, "metadata": {"definition": "outcome. composite/index measures of attitudes towards sanitation practices, and all measures of knowledge about sanitation practices and related topics (such as disease transmission).", "level": 4, "type": "outcome"}}
15
+ {"text": "cattle herd size", "id": 14, "metadata": {"definition": "outcome. overall cattle holdings for a farm/ranch.", "level": 4, "type": "outcome"}}
16
+ {"text": "index of household income", "id": 15, "metadata": {"definition": "outcome. composite/index measures of household income.", "level": 4, "type": "outcome"}}
17
+ {"text": "empowerment", "id": 16, "metadata": {"definition": "outcome. process through which someone acquires the ability to access certain resources, make independent choices based on his/ her own values, and achieve things that correspond to his/her own values and objectives. this can be measured either through the observation of a set of behaviours that demonstrate an increased access to resources, agency and achievements, or through self-reported perception of someone's own empowerment.", "level": 4, "type": "outcome"}}
18
+ {"text": "social participation and interaction", "id": 17, "metadata": {"definition": "outcome. socialisation and interaction measures.", "level": 4, "type": "outcome"}}
19
+ {"text": "overall household income", "id": 18, "metadata": {"definition": "outcome. total household income from all income-generating activities.", "level": 4, "type": "outcome"}}
20
+ {"text": "index of hygiene attitudes and knowledge", "id": 19, "metadata": {"definition": "outcome. composite/index measures of attitudes towards hygiene practices, and all measures of knowledge about hygiene practices and related topics.", "level": 4, "type": "outcome"}}
21
+ {"text": "sexual and intimate partner violence", "id": 20, "metadata": {"definition": "outcome. measures of sexual and intimate partner violence incidence", "level": 4, "type": "outcome"}}
22
+ {"text": "index of corruption", "id": 21, "metadata": {"definition": "outcome. composite/index measures of corruption.", "level": 4, "type": "outcome"}}
23
+ {"text": "handwashing behaviour - before handling food", "id": 22, "metadata": {"definition": "outcome. all measures of how consistently participants practice the handwashing behaviours that they are taught. only in relation to food preparation activities.", "level": 4, "type": "outcome"}}
24
+ {"text": "index of business knowledge and skills", "id": 23, "metadata": {"definition": "outcome. composite/index measures of business knowledge and skills.", "level": 4, "type": "outcome"}}
25
+ {"text": "tree replacement", "id": 24, "metadata": {"definition": "outcome. measures of amount and quality of tree replacement programs, and recovered timberland.", "level": 4, "type": "outcome"}}
26
+ {"text": "awareness of rights", "id": 25, "metadata": {"definition": "outcome. knowledge and understanding of one's political, civil, and human rights.", "level": 4, "type": "outcome"}}
27
+ {"text": "perceptions of personal and community safety", "id": 26, "metadata": {"definition": "outcome. this includes measures of perceived safety in the home, safety in the community and freedom of movement.", "level": 4, "type": "outcome"}}
28
+ {"text": "tax compliance", "id": 27, "metadata": {"definition": "outcome. measures of tax compliance. these include measures of tax evasion and the amount of taxes paid.", "level": 4, "type": "outcome"}}
29
+ {"text": "employment status", "id": 28, "metadata": {"definition": "outcome. type of employment status under which a person is recognize by the law, determining his/her rights and the employers' responsibility. the main employment status are self-employed or contractor, director, worker, employee, unemployed, retired.", "level": 4, "type": "outcome"}}
30
+ {"text": "diarrhoea-related mortality", "id": 29, "metadata": {"definition": "outcome. any measure of the number of deaths from diarrhoeal diseases.", "level": 4, "type": "outcome"}}
31
+ {"text": "access to public education", "id": 30, "metadata": {"definition": "outcome. any measure of the availability and capacity of public education services, including opening hours, waiting times and equitable access to services and resources made available by service providers.", "level": 4, "type": "outcome"}}
32
+ {"text": "index of social cohesion", "id": 31, "metadata": {"definition": "outcome. composite/index of measures of social cohesion within a community.", "level": 4, "type": "outcome"}}
33
+ {"text": "migration", "id": 32, "metadata": {"definition": "outcome. any measure of the amount of migration in our out of the area (usually a headcount).", "level": 4, "type": "outcome"}}
34
+ {"text": "sales", "id": 33, "metadata": {"definition": "outcome. volume of goods or services sold by a firm.", "level": 4, "type": "outcome"}}
35
+ {"text": "index of latrine or toilet use", "id": 34, "metadata": {"definition": "outcome. composite/index measures of the latrine or toilet use.", "level": 4, "type": "outcome"}}
36
+ {"text": "government expenditure", "id": 35, "metadata": {"definition": "outcome. total amount spent by the government", "level": 4, "type": "outcome"}}
37
+ {"text": "index of faecal waste disposal", "id": 36, "metadata": {"definition": "outcome. composite/index measures of waste disposal methods.", "level": 4, "type": "outcome"}}
38
+ {"text": "regular latrine or toilet use", "id": 37, "metadata": {"definition": "outcome. all measures of how regularly participants use latrine or toilets.", "level": 4, "type": "outcome"}}
39
+ {"text": "sanitation-related mortality", "id": 38, "metadata": {"definition": "outcome. any measure of the number deaths from sanitation-related diseases.", "level": 4, "type": "outcome"}}
40
+ {"text": "open defecation", "id": 39, "metadata": {"definition": "outcome. all measures of how consistently participants openly defecate, or what proportion of participants who no longer openly defecate at all.", "level": 4, "type": "outcome"}}
41
+ {"text": "safe disposal of waste", "id": 40, "metadata": {"definition": "outcome. all measures of the number, or proportion, of participants who consistently participants practice the safe disposal of faeces.", "level": 4, "type": "outcome"}}
42
+ {"text": "new latrine or toilet construction", "id": 41, "metadata": {"definition": "outcome. number of new latrine or toilets constructed over a given period.", "level": 4, "type": "outcome"}}
43
+ {"text": "adoption of good business practices from higher education", "id": 42, "metadata": {"definition": "outcome. measures of the adoption of business practices associated with good business outcomes. these practices may include regular bookkeeping, clear recordkeeping, good planning, and other practices that are taught during business trainings. we included studies that measured the adoption of these and other good business practices.", "level": 4, "type": "outcome"}}
44
+ {"text": "income from agriculture", "id": 43, "metadata": {"definition": "outcome. income stemming from all forms of agricultural production.", "level": 4, "type": "outcome"}}
45
+ {"text": "social norms around sanitation", "id": 44, "metadata": {"definition": "outcome. all measures of the perceived social norms around sanitation practices.", "level": 4, "type": "outcome"}}
46
+ {"text": "community monitoring", "id": 45, "metadata": {"definition": "outcome. participation in community monitoring of public resources and projects.", "level": 4, "type": "outcome"}}
47
+ {"text": "index of social attitudes, behaviours, or norms.", "id": 46, "metadata": {"definition": "outcome. composite/index of measures of social attitudes, behaviours, or norms.", "level": 4, "type": "outcome"}}
48
+ {"text": "women's employment after higher education", "id": 47, "metadata": {"definition": "outcome. womens employment status and type of occupation, including whether women were employed, the status of their employment (full-time/part-time, permanent/temporary, formal/informal), and the type of occupation in which they were employed.", "level": 4, "type": "outcome"}}
49
+ {"text": "access to healthcare", "id": 48, "metadata": {"definition": "outcome. measures of access, physical and financial, to healthcare services.", "level": 4, "type": "outcome"}}
50
+ {"text": "index of sexual & reproductive health", "id": 49, "metadata": {"definition": "outcome. composite/index measures of sexual and reproductive health outcomes and services.", "level": 4, "type": "outcome"}}
51
+ {"text": "customer satisfaction", "id": 50, "metadata": {"definition": "outcome. customer satisfaction measures for a product or service.", "level": 4, "type": "outcome"}}
52
+ {"text": "perception of politicians' responsiveness", "id": 51, "metadata": {"definition": "outcome. public perception of politicians' responsiveness to constituents concerns and accessibility. this can include constituencies' feelings of being heard by leaders.", "level": 4, "type": "outcome"}}
53
+ {"text": "attitudes toward open defecation", "id": 52, "metadata": {"definition": "outcome. attitudes toward open defecation, including levels of acceptance.", "level": 4, "type": "outcome"}}
54
+ {"text": "customer retention", "id": 53, "metadata": {"definition": "outcome. measures of customer retention, including returning or continuous customers.", "level": 4, "type": "outcome"}}
55
+ {"text": "index of firm behaviour", "id": 54, "metadata": {"definition": "outcome. composite/index measures related to firm behaviour and performance regarding generalised topics of public concern.", "level": 4, "type": "outcome"}}
56
+ {"text": "household expenditure on food", "id": 55, "metadata": {"definition": "outcome. amount or portion of expenditure on by the household.", "level": 4, "type": "outcome"}}
57
+ {"text": "perception of public service delivery", "id": 56, "metadata": {"definition": "outcome. public perception of service quality and accessibility.", "level": 4, "type": "outcome"}}
58
+ {"text": "handwashing behaviour", "id": 57, "metadata": {"definition": "outcome. all measures of how consistently participants practice the handwashing behaviours that they are taught.", "level": 4, "type": "outcome"}}
59
+ {"text": "social norms regarding violence", "id": 58, "metadata": {"definition": "outcome. this includes norms and behaviours surrounding violence, including support for political violence or armed groups, and attitudes towards the use of violence", "level": 4, "type": "outcome"}}
60
+ {"text": "women's earning/income after higher education", "id": 59, "metadata": {"definition": "outcome. measures of income women earned through paid work, defined as earnings, wages, or salaries. measures of earnings or wages through administrative data, as well as self-reported data where women had been asked about their earnings, wages, or salaries.", "level": 4, "type": "outcome"}}
61
+ {"text": "knowledge of handwashing practices", "id": 60, "metadata": {"definition": "outcome. knowledge of handwashing practices.", "level": 4, "type": "outcome"}}
62
+ {"text": "social trust", "id": 61, "metadata": {"definition": "outcome. any measure of trust between communities, their members, and across different social groups. it may include specific measures of respondents' perception of others', trust towards each other and tolerance.", "level": 4, "type": "outcome"}}
63
+ {"text": "acute respiratory infections (aris)", "id": 62, "metadata": {"definition": "outcome. any measure of acute illness in the upper respiratory tract, trachea, bronchi, bronchioles, alveoli, pleura, pleural cavity, and the muscles associated with breathing", "level": 4, "type": "outcome"}}
64
+ {"text": "wash all-cause mortality", "id": 63, "metadata": {"definition": "outcome. any measure of the number of deaths from any cause.", "level": 4, "type": "outcome"}}
65
+ {"text": "food insecurity prevalence", "id": 64, "metadata": {"definition": "outcome. measures of food insecurity in surrounding communities and within the household.", "level": 4, "type": "outcome"}}
66
+ {"text": "diarrhoeal disease", "id": 65, "metadata": {"definition": "outcome. all measures of diarrhoeal disease. all reasonable definitions of diarrhoea accepted (frequent, loose-watery stool). this is typically presented as number of incidences over a given period.", "level": 4, "type": "outcome"}}
67
+ {"text": "employee motivation", "id": 66, "metadata": {"definition": "outcome. any measure of employee motivation or the firm's ability to motivate employees.", "level": 4, "type": "outcome"}}
68
+ {"text": "employment share", "id": 67, "metadata": {"definition": "outcome. portion of the labour force in a particular sector.", "level": 4, "type": "outcome"}}
69
+ {"text": "index of empowerment", "id": 68, "metadata": {"definition": "outcome. composite/index measures of social or economic empowerment", "level": 4, "type": "outcome"}}
70
+ {"text": "participation and inclusion", "id": 69, "metadata": {"definition": "outcome. measures of participation and inclusion in social, business, and political activities.", "level": 4, "type": "outcome"}}
71
+ {"text": "resilience", "id": 70, "metadata": {"definition": "outcome. resilience is the ability to manage risks and recover from shocks, economically and psychologically, and can be measured either through observing a set of behaviours which demonstrate resilience or it can be a self-reported perception of resilience. the set of behaviours which demonstrates resilience are for example the diversification of business activity to manage risk, the strategies adopted to cope with unpredictable events such as a drought or an increase in input prices, or even mental health state after a loss.", "level": 4, "type": "outcome"}}
72
+ {"text": "self-employment earnings due to higher education", "id": 71, "metadata": {"definition": "outcome. self-employment earnings due to higher education.", "level": 4, "type": "outcome"}}
73
+ {"text": "business formalisation", "id": 72, "metadata": {"definition": "outcome. rate or number of businesses formally registered and tracked by government.", "level": 4, "type": "outcome"}}
74
+ {"text": "regular cleaning", "id": 73, "metadata": {"definition": "outcome. measures of regular cleaning and maintenance behaviour.", "level": 4, "type": "outcome"}}
75
+ {"text": "index of household wealth or assets", "id": 74, "metadata": {"definition": "outcome. composite/index measures of household saving and asset accumulation.", "level": 4, "type": "outcome"}}
76
+ {"text": "index of confidence in public institutions", "id": 75, "metadata": {"definition": "outcome. composite/index measures of public confidence in public institutions", "level": 4, "type": "outcome"}}
77
+ {"text": "employee training", "id": 76, "metadata": {"definition": "outcome. any measure of employee capacity building/training on the job.", "level": 4, "type": "outcome"}}
78
+ {"text": "perception of corruption", "id": 77, "metadata": {"definition": "outcome. public perception of corruption levels of public servants and elected representatives.", "level": 4, "type": "outcome"}}
79
+ {"text": "employment hours", "id": 78, "metadata": {"definition": "outcome. number of hours worked in specific time frame, usually either in a week or a month.", "level": 4, "type": "outcome"}}
models/retriever/level-4-small-no-negative-outcomes/document_index_db/embeddings.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1216e286a27fa8bb7445a17ab347c97cdabfde137b2a9538dff742fe84bfc508
3
+ size 122539
models/retriever/level-4-small-no-negative-outcomes/question_encoder/config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "intfloat/e5-small-v2",
3
+ "architectures": [
4
+ "GoldenRetrieverModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "auto_map": {
8
+ "AutoModel": "hf.GoldenRetrieverModel"
9
+ },
10
+ "classifier_dropout": null,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 384,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 1536,
16
+ "layer_norm_eps": 1e-12,
17
+ "max_position_embeddings": 512,
18
+ "model_type": "bert",
19
+ "num_attention_heads": 12,
20
+ "num_hidden_layers": 12,
21
+ "pad_token_id": 0,
22
+ "position_embedding_type": "absolute",
23
+ "projection_dim": null,
24
+ "torch_dtype": "float32",
25
+ "transformers_version": "4.33.3",
26
+ "type_vocab_size": 2,
27
+ "use_cache": true,
28
+ "vocab_size": 30522
29
+ }
models/retriever/level-4-small-no-negative-outcomes/question_encoder/hf.py ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Tuple, Union
2
+
3
+ import torch
4
+ from transformers import PretrainedConfig
5
+ from transformers.modeling_outputs import BaseModelOutputWithPoolingAndCrossAttentions
6
+ from transformers.models.bert.modeling_bert import BertModel
7
+
8
+
9
+ class GoldenRetrieverConfig(PretrainedConfig):
10
+ model_type = "bert"
11
+
12
+ def __init__(
13
+ self,
14
+ vocab_size=30522,
15
+ hidden_size=768,
16
+ num_hidden_layers=12,
17
+ num_attention_heads=12,
18
+ intermediate_size=3072,
19
+ hidden_act="gelu",
20
+ hidden_dropout_prob=0.1,
21
+ attention_probs_dropout_prob=0.1,
22
+ max_position_embeddings=512,
23
+ type_vocab_size=2,
24
+ initializer_range=0.02,
25
+ layer_norm_eps=1e-12,
26
+ pad_token_id=0,
27
+ position_embedding_type="absolute",
28
+ use_cache=True,
29
+ classifier_dropout=None,
30
+ projection_dim=None,
31
+ **kwargs,
32
+ ):
33
+ super().__init__(pad_token_id=pad_token_id, **kwargs)
34
+
35
+ self.vocab_size = vocab_size
36
+ self.hidden_size = hidden_size
37
+ self.num_hidden_layers = num_hidden_layers
38
+ self.num_attention_heads = num_attention_heads
39
+ self.hidden_act = hidden_act
40
+ self.intermediate_size = intermediate_size
41
+ self.hidden_dropout_prob = hidden_dropout_prob
42
+ self.attention_probs_dropout_prob = attention_probs_dropout_prob
43
+ self.max_position_embeddings = max_position_embeddings
44
+ self.type_vocab_size = type_vocab_size
45
+ self.initializer_range = initializer_range
46
+ self.layer_norm_eps = layer_norm_eps
47
+ self.position_embedding_type = position_embedding_type
48
+ self.use_cache = use_cache
49
+ self.classifier_dropout = classifier_dropout
50
+ self.projection_dim = projection_dim
51
+
52
+
53
+ class GoldenRetrieverModel(BertModel):
54
+ config_class = GoldenRetrieverConfig
55
+
56
+ def __init__(self, config, *args, **kwargs):
57
+ super().__init__(config)
58
+ self.layer_norm_layer = torch.nn.LayerNorm(
59
+ config.hidden_size, eps=config.layer_norm_eps
60
+ )
61
+ self.projection: torch.nn.Module | None = None
62
+ if config.projection_dim is not None:
63
+ self.projection = torch.nn.Sequential(
64
+ torch.nn.Linear(config.hidden_size, config.projection_dim),
65
+ torch.nn.LayerNorm(config.projection_dim),
66
+ )
67
+
68
+ def forward(
69
+ self, **kwargs
70
+ ) -> Union[Tuple[torch.Tensor], BaseModelOutputWithPoolingAndCrossAttentions]:
71
+ attention_mask = kwargs.get("attention_mask", None)
72
+ model_outputs = super().forward(**kwargs)
73
+ if attention_mask is None:
74
+ pooler_output = model_outputs.pooler_output
75
+ else:
76
+ token_embeddings = model_outputs.last_hidden_state
77
+ input_mask_expanded = (
78
+ attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
79
+ )
80
+ pooler_output = torch.sum(
81
+ token_embeddings * input_mask_expanded, 1
82
+ ) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)
83
+
84
+ pooler_output = self.layer_norm_layer(pooler_output)
85
+
86
+ if self.projection is not None:
87
+ pooler_output = self.projection(pooler_output)
88
+
89
+ if not kwargs.get("return_dict", True):
90
+ return (model_outputs[0], pooler_output) + model_outputs[2:]
91
+
92
+ return BaseModelOutputWithPoolingAndCrossAttentions(
93
+ last_hidden_state=model_outputs.last_hidden_state,
94
+ pooler_output=pooler_output,
95
+ past_key_values=model_outputs.past_key_values,
96
+ hidden_states=model_outputs.hidden_states,
97
+ attentions=model_outputs.attentions,
98
+ cross_attentions=model_outputs.cross_attentions,
99
+ )
models/retriever/level-4-small-no-negative-outcomes/question_encoder/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2ff7f63276ef10722db26f66a406bc4aa6f5a345dd177d243cb826bb7db48b7
3
+ size 133510894
models/retriever/level-4-small-no-negative-outcomes/question_encoder/special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
models/retriever/level-4-small-no-negative-outcomes/question_encoder/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
models/retriever/level-4-small-no-negative-outcomes/question_encoder/tokenizer_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "mask_token": "[MASK]",
6
+ "model_max_length": 512,
7
+ "pad_token": "[PAD]",
8
+ "sep_token": "[SEP]",
9
+ "strip_accents": null,
10
+ "tokenize_chinese_chars": true,
11
+ "tokenizer_class": "BertTokenizer",
12
+ "unk_token": "[UNK]"
13
+ }
models/retriever/level-4-small-no-negative-outcomes/question_encoder/vocab.txt ADDED
The diff for this file is too large to render. See raw diff