tomaarsen HF Staff commited on
Commit
8e44d8f
·
verified ·
1 Parent(s): d0ef32f

Upload mLateOn-medical

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
1_Dense/config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "in_features": 768,
3
+ "out_features": 1536,
4
+ "bias": false,
5
+ "activation_function": "torch.nn.modules.linear.Identity",
6
+ "module_input_name": "token_embeddings",
7
+ "module_output_name": "token_embeddings",
8
+ "use_residual": true
9
+ }
1_Dense/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c6bb0de12278845733faecc363f8f81ce46362a32514713faa0ed8f324c4015
3
+ size 9437360
2_Dense/config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "in_features": 1536,
3
+ "out_features": 768,
4
+ "bias": false,
5
+ "activation_function": "torch.nn.modules.linear.Identity",
6
+ "module_input_name": "token_embeddings",
7
+ "module_output_name": "token_embeddings",
8
+ "use_residual": true
9
+ }
2_Dense/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b4f903b0d3651a642391cca3918b97d1716745cd486338bb7085d508e05ff0f
3
+ size 9437360
3_Dense/config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "in_features": 768,
3
+ "out_features": 128,
4
+ "bias": false,
5
+ "activation_function": "torch.nn.modules.linear.Identity",
6
+ "module_input_name": "token_embeddings",
7
+ "module_output_name": "token_embeddings"
8
+ }
3_Dense/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39b4429739db9e22faaee7bdb183f922f868e00fd06241ab5a40d275e37aa387
3
+ size 393304
4_MultiVectorMask/config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "skiplist_words": [
3
+ "!",
4
+ "\"",
5
+ "#",
6
+ "$",
7
+ "%",
8
+ "&",
9
+ "'",
10
+ "(",
11
+ ")",
12
+ "*",
13
+ "+",
14
+ ",",
15
+ "-",
16
+ ".",
17
+ "/",
18
+ ":",
19
+ ";",
20
+ "<",
21
+ "=",
22
+ ">",
23
+ "?",
24
+ "@",
25
+ "[",
26
+ "\\",
27
+ "]",
28
+ "^",
29
+ "_",
30
+ "`",
31
+ "{",
32
+ "|",
33
+ "}",
34
+ "~"
35
+ ],
36
+ "skiplist_tasks": [
37
+ "document"
38
+ ],
39
+ "keep_only_token_ids": null
40
+ }
5_Normalize/config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "module_input_name": "token_embeddings",
3
+ "module_output_name": "token_embeddings"
4
+ }
README.md ADDED
@@ -0,0 +1,546 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - multi-vector
5
+ - colbert
6
+ - late-interaction
7
+ - generated_from_trainer
8
+ - dataset_size:1000000
9
+ - loss:CachedMultiVectorMultipleNegativesRankingLoss
10
+ base_model: lightonai/mLateOn-unsupervised
11
+ widget:
12
+ - text: Cytomegalovirus³ (CMV)³ is³ a³ DNA³ virus³ that³ causes³ various³ dermatologic³
13
+ and³ systemic³ disorders,³especially³in³immunocompromised³ subjects. 1 ³Cutaneous³manifestation³of³CMV³is³
14
+ a³rare³condition³that³its³diagnosis³is³oten³made³ with³delay. 3 ³Surprisingly,³patients³with³in³autosomal³recessive³HIES³sufer³
15
+ from³eczema³and³recurrent³cutaneous³infections 3 ³and³se-vere³viral³infections³have³been³frequently³seen³in³DOCK8³
16
+ deiciency. 4 It³ should³ be³ emphasized³ that³ early³ diagnosis³ of³ cu-taneous³CMV³in³patients³with³underlying³immunodefi-ciencies³and³appropriate³treatment³are³essential³to³avoid³
17
+ dissemination³ of³ the³ disease,³ further³ complications³ and³ even³ death³ in³
18
+ such³ patients.³ However,³ further³ molecu-lar³studies³are³needed³to³make³definite³diagnosis³in³such³
19
+ cases.
20
+ - text: "Согласно результатам крупного когортного исследо-вания здоровых лиц без сахарного\
21
+ \ диабета, пришли к выводу, что повышение уровня ИАП-1 в начале иссле-дования\
22
+ \ было предиктором развития сахарного диабета в течение 5 лет наблюдений [51]\
23
+ \ . Следовательно, повы-шение уровня ИАП-1 при сахарном диабете может повышать\
24
+ \ риск развития атеросклеротических пора-жений и окклюзионных тромботических осложнений.\
25
+ \ Например, около 30% пациентов с инсультом страдают от сахарного диабета [7,\
26
+ \ 52] . Новые данные свиде-тельствуют о том, что снижение фибринолитической активности\
27
+ \ или повышение уровня ИАП-1 играют важную роль в развитии сосудистых заболеваний\
28
+ \ у пациентов с сахарным диабетом, поскольку усиленная потеря массы тела и снижение\
29
+ \ концентрации ИАП-1 в плазме крови позволяют снизить риск развития тромбоза у\
30
+ \ пациентов с инсулинорезистентностью и большим числом факторов риска развития\
31
+ \ сосудистых заболеваний [50] . Снижение уровня глюкозы или заболеваемости сахарным\
32
+ \ диабетом путем повышения чувствительности к инсулину также приводит к умень-шению\
33
+ \ уровня циркулирующего ИАП-1 и снижает скорость прогрессирования сахарного диабета.\
34
+ \ Это позволяет предположить, что ингибирование ИАП-1 может снизить прогрессирование\
35
+ \ сахарного диабета и связанных с ним сосудистых осложнений в группе пациентов\
36
+ \ высокого риска [53] .\n\n Артериальная гипертензия является основным фактором\
37
+ \ риска развития тромботических сосудис-тых заболеваний, включая ишемический инсульт\
38
+ \ [54] . Ускорение развития атеросклероза и повышение час-тоты разрыва бляшек\
39
+ \ могут повысить риск развития ишемических событий при артериальной гипертензии,\
40
+ \ однако становится все более очевидным, что артери-альная гипертензия (АГ) может\
41
+ \ смещать баланс гемос-таза в сторону протромботического состояния или состояния\
42
+ \ гиперкоагуляции [5] . У пациентов с АГ обна-ружили повышение активности ИАП-1\
43
+ \ и снижение активности ТАП в плазме и эндотелии, но основные механизмы этих явлений\
44
+ \ до сих пор не выяснены."
45
+ - text: How does leptin impact the expression and function of LDLR and PCSK9, and
46
+ what potential implications does this have for obesity and cardiovascular disease?
47
+ - text: "In such a situation if the distal perforators from the descending branch\
48
+ \ of the lateral circumflex femoral artery are intact, a flap can be designed\
49
+ \ on it and rotated 180 degree like a propeller flap to cover the defect over\
50
+ \ the knee. Extending the dissection into the muscle will help to avoid the kinking\
51
+ \ of the pedicle and increasing the reach. \n\n One such flap is lateral supragenicular\
52
+ \ artery perforator flap which has a constant anatomy and is located around 5.3\
53
+ \ cm from the superolateral corner of patella. This is marked by Doppler preoperatively\
54
+ \ and then isolated by surgical dissection. The flap can go up to the mid-thigh\
55
+ \ level. 42 \n\n This is based on cutaneous perforator from the large muscular\
56
+ \ branch of vastus medialis muscle from superficial femoral artery which traverses\
57
+ \ through the muscle and called medial vastus medialis artery. The perforator\
58
+ \ site is relatively constant and located ~9 cm proximal to the adductor tubercle.\
59
+ \ A line is drawn from mid-inguinal point to medial femoral condyle. From the\
60
+ \ midpoint of this line, another line is drawn to midpoint of superior border\
61
+ \ of patella. The perforator is located along this line and marked with Doppler\
62
+ \ and used for designing the flap. 43, 44 \n\n As the defects are over or around\
63
+ \ the mobile joint, they are immobilized postoperatively for a period of 2 to\
64
+ \ 3 weeks to allow the flap or the skin graft to heal well. As there is injury\
65
+ \ to the periarticular structures like the ligaments and the capsule, the chances\
66
+ \ of stiffness are high. Mobilization is started as soon as healing is achieved.\
67
+ \ In case repair or reconstruction of deeper structures like ligamentum patellae\
68
+ \ or quadriceps tendon has been done physiotherapy may be done as per the needs\
69
+ \ of the repaired structures. The extent of movement gained is dependent on the\
70
+ \ injury to deeper structures and scarring.\n\n Defects around the knee require\
71
+ \ careful assessment of the size of the defect and the condition of the surrounding\
72
+ \ skin and muscles to decide on the type of flap which is chosen to cover them.\
73
+ \ The flaps can be raised from the leg or thigh based on the size needed or the\
74
+ \ pattern of injury. In case both are injured, we need to use distant flaps in\
75
+ \ form of free flaps depending on the condition of the vessels. Prompt and early\
76
+ \ coverage of the knee with good pliable flap will go a long way in retaining\
77
+ \ good mobility of the joint."
78
+ - text: "Several studies suggest that symptomatic and jaundiced patients have a higher\
79
+ \ rate of SVC and SVR (8, 9, 18, 23, 25, (34) (35) (36) (37) , possibly associated\
80
+ \ with a better response of the immune system (29, 36) .\n\n The monitoring of\
81
+ \ viral kinetics can predict the SVC. RNA-HCV undetectable at week 4 in our series\
82
+ \ was related to a cure rate of 98%; in these patients treatment with PEG-IFN\
83
+ \ is unnecessary (35) . In contrast, only 69% of patients with detectable HCV-RNA\
84
+ \ at week 4 were cured. Those treated for persistent viremia at week 4 did not\
85
+ \ benefit over those untreated, implying that if there is not spontaneous viral\
86
+ \ clearance at week 4 a bad outcome is not improbable, and reinforces the value\
87
+ \ of the early determination of HCV-RNA (positive predictive value 95%).\n\n In\
88
+ \ patients with undetectable HCV-RNA at week 12 our results showed that 90% were\
89
+ \ cured versus only 9% with persistent viremia. Yet these patients did not benefit\
90
+ \ from treatment because the cure rate was identical for both those treated and\
91
+ \ untreated (91 and 92%). Treatment, therefore, would be unnecessary for patients\
92
+ \ with undetectable HCV-RNA at week 12.\n\n A new factor that can help to decide\
93
+ \ whether to treat or not to treat is the polymorphism in the IL28B gene region\
94
+ \ 8099917. Grebely et al. have found that TT homozygosity, but not GG/GT, was\
95
+ \ the only factor associated to SVC in patients with recent HCV. Furthermore,\
96
+ \ TT patients were more frequently icteric. These results could not be confirmed\
97
+ \ in treated patients. Based in these data, they suggested that this polymorphism\
98
+ \ must be investigated in patients with AHC and early treatment could be started\
99
+ \ in individuals with non-TT genotypes (38) .\n\n In summary, in Spain the most\
100
+ \ likely cause of AHC is nosocomial transmission, followed at a distance by IDUs\
101
+ \ and sexual transmission. Nearly 60% of AHC patients received antiviral therapy\
102
+ \ with a significantly higher SVR when compared to the untreated group. Given\
103
+ \ the high rate of spontaneous recovery, from our results, especially for jaundiced\
104
+ \ patients, treatment should not be initiated too early and it can be delayed\
105
+ \ until 12 weeks from symptomonset. At week 4, undetectable HCV-RNA was associated\
106
+ \ with a satisfactory outcome; thus, treatment could be avoided in these patients.\
107
+ \ HCV-RNA negativity at week 12 is also associated with a very high rate of viral\
108
+ \ clearance; on the contrary, the persistence of detectable viremia suggests a\
109
+ \ bad outcome."
110
+ datasets:
111
+ - tomaarsen/miriad-4.4M-split
112
+ pipeline_tag: feature-extraction
113
+ library_name: sentence-transformers
114
+ metrics:
115
+ - maxsim_accuracy@1
116
+ - maxsim_accuracy@10
117
+ - maxsim_precision@10
118
+ - maxsim_recall@10
119
+ - maxsim_ndcg@10
120
+ - maxsim_mrr@10
121
+ - maxsim_map@10
122
+ model-index:
123
+ - name: Multi-Vector Encoder
124
+ results:
125
+ - task:
126
+ type: multi-vector-information-retrieval
127
+ name: Multi Vector Information Retrieval
128
+ dataset:
129
+ name: monitor
130
+ type: monitor
131
+ metrics:
132
+ - type: maxsim_accuracy@1
133
+ value: 0.966
134
+ name: Maxsim Accuracy@1
135
+ - type: maxsim_accuracy@10
136
+ value: 0.996
137
+ name: Maxsim Accuracy@10
138
+ - type: maxsim_precision@10
139
+ value: 0.0996
140
+ name: Maxsim Precision@10
141
+ - type: maxsim_recall@10
142
+ value: 0.996
143
+ name: Maxsim Recall@10
144
+ - type: maxsim_ndcg@10
145
+ value: 0.9818833515858946
146
+ name: Maxsim Ndcg@10
147
+ - type: maxsim_mrr@10
148
+ value: 0.9772857142857143
149
+ name: Maxsim Mrr@10
150
+ - type: maxsim_map@10
151
+ value: 0.9772857142857143
152
+ name: Maxsim Map@10
153
+ - task:
154
+ type: multi-vector-information-retrieval
155
+ name: Multi Vector Information Retrieval
156
+ dataset:
157
+ name: final
158
+ type: final
159
+ metrics:
160
+ - type: maxsim_accuracy@1
161
+ value: 0.929
162
+ name: Maxsim Accuracy@1
163
+ - type: maxsim_accuracy@10
164
+ value: 0.989
165
+ name: Maxsim Accuracy@10
166
+ - type: maxsim_precision@10
167
+ value: 0.09890000000000002
168
+ name: Maxsim Precision@10
169
+ - type: maxsim_recall@10
170
+ value: 0.989
171
+ name: Maxsim Recall@10
172
+ - type: maxsim_ndcg@10
173
+ value: 0.9607570782648661
174
+ name: Maxsim Ndcg@10
175
+ - type: maxsim_mrr@10
176
+ value: 0.9514984126984127
177
+ name: Maxsim Mrr@10
178
+ - type: maxsim_map@10
179
+ value: 0.9514984126984127
180
+ name: Maxsim Map@10
181
+ ---
182
+
183
+ # Multi-Vector Encoder
184
+
185
+ This is a [Multi-Vector Encoder](https://www.sbert.net/docs/multi_vector_encoder/usage/usage.html) model finetuned from [lightonai/mLateOn-unsupervised](https://huggingface.co/lightonai/mLateOn-unsupervised) on the [miriad-4.4_m-split](https://huggingface.co/datasets/tomaarsen/miriad-4.4M-split) dataset using the [sentence-transformers](https://www.SBERT.net) library. It maps inputs to sequences of 128-dimensional token-level vectors and scores them with late interaction (MaxSim), useful for semantic search with late interaction.
186
+ ## Model Details
187
+
188
+ ### Model Description
189
+ - **Model Type:** Multi-Vector Encoder
190
+ - **Base model:** [lightonai/mLateOn-unsupervised](https://huggingface.co/lightonai/mLateOn-unsupervised) <!-- at revision bda45579e5aff37abc3f5cf3b64e3e56ac4176d1 -->
191
+ - **Maximum Sequence Length:** 8192 tokens
192
+ - **Output Dimensionality:** 128 dimensions
193
+ - **Similarity Function:** MaxSim
194
+ - **Supported Modality:** Text
195
+ - **Training Dataset:**
196
+ - [miriad-4.4_m-split](https://huggingface.co/datasets/tomaarsen/miriad-4.4M-split)
197
+ <!-- - **Language:** Unknown -->
198
+ <!-- - **License:** Unknown -->
199
+
200
+ ### Model Sources
201
+
202
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
203
+ - **Documentation:** [Multi-Vector Encoder Documentation](https://www.sbert.net/docs/multi_vector_encoder/usage/usage.html)
204
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
205
+ - **Hugging Face:** [Multi-Vector Encoders on Hugging Face](https://huggingface.co/models?library=sentence-transformers&other=multi-vector)
206
+
207
+ ### Full Model Architecture
208
+
209
+ ```
210
+ MultiVectorEncoder(
211
+ (0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'ModernBertModel'})
212
+ (1): Dense({'in_features': 768, 'out_features': 1536, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity', 'module_input_name': 'token_embeddings', 'module_output_name': 'token_embeddings', 'use_residual': True})
213
+ (2): Dense({'in_features': 1536, 'out_features': 768, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity', 'module_input_name': 'token_embeddings', 'module_output_name': 'token_embeddings', 'use_residual': True})
214
+ (3): Dense({'in_features': 768, 'out_features': 128, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity', 'module_input_name': 'token_embeddings', 'module_output_name': 'token_embeddings'})
215
+ (4): MultiVectorMask({'skiplist_words': ['!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', ':', ';', '<', '=', '>', '?', '@', '[', '\\', ']', '^', '_', '`', '{', '|', '}', '~'], 'skiplist_tasks': ['document'], 'keep_only_token_ids': None})
216
+ (5): Normalize({'module_input_name': 'token_embeddings', 'module_output_name': 'token_embeddings'})
217
+ )
218
+ ```
219
+
220
+ ## Usage
221
+
222
+ ### Direct Usage (Sentence Transformers)
223
+
224
+ First install the Sentence Transformers library:
225
+
226
+ ```bash
227
+ pip install -U sentence-transformers
228
+ ```
229
+ Then you can load this model and run inference.
230
+ ```python
231
+ from sentence_transformers import MultiVectorEncoder
232
+
233
+ # Download from the 🤗 Hub
234
+ model = MultiVectorEncoder("multi_vector_encoder_model_id")
235
+ # Run inference: each input becomes a sequence of per-token vectors (variable length).
236
+ queries = [
237
+ 'How does the polymorphism in the IL28B gene region 8099917 affect the response to treatment in patients with AHC?\n',
238
+ ]
239
+ documents = [
240
+ 'Several studies suggest that symptomatic and jaundiced patients have a higher rate of SVC and SVR (8, 9, 18, 23, 25, (34) (35) (36) (37) , possibly associated with a better response of the immune system (29, 36) .\n\n The monitoring of viral kinetics can predict the SVC. RNA-HCV undetectable at week 4 in our series was related to a cure rate of 98%; in these patients treatment with PEG-IFN is unnecessary (35) . In contrast, only 69% of patients with detectable HCV-RNA at week 4 were cured. Those treated for persistent viremia at week 4 did not benefit over those untreated, implying that if there is not spontaneous viral clearance at week 4 a bad outcome is not improbable, and reinforces the value of the early determination of HCV-RNA (positive predictive value 95%).\n\n In patients with undetectable HCV-RNA at week 12 our results showed that 90% were cured versus only 9% with persistent viremia. Yet these patients did not benefit from treatment because the cure rate was identical for both those treated and untreated (91 and 92%). Treatment, therefore, would be unnecessary for patients with undetectable HCV-RNA at week 12.\n\n A new factor that can help to decide whether to treat or not to treat is the polymorphism in the IL28B gene region 8099917. Grebely et al. have found that TT homozygosity, but not GG/GT, was the only factor associated to SVC in patients with recent HCV. Furthermore, TT patients were more frequently icteric. These results could not be confirmed in treated patients. Based in these data, they suggested that this polymorphism must be investigated in patients with AHC and early treatment could be started in individuals with non-TT genotypes (38) .\n\n In summary, in Spain the most likely cause of AHC is nosocomial transmission, followed at a distance by IDUs and sexual transmission. Nearly 60% of AHC patients received antiviral therapy with a significantly higher SVR when compared to the untreated group. Given the high rate of spontaneous recovery, from our results, especially for jaundiced patients, treatment should not be initiated too early and it can be delayed until 12 weeks from symptomonset. At week 4, undetectable HCV-RNA was associated with a satisfactory outcome; thus, treatment could be avoided in these patients. HCV-RNA negativity at week 12 is also associated with a very high rate of viral clearance; on the contrary, the persistence of detectable viremia suggests a bad outcome.',
241
+ "The ratio is therefore reliable for use in normalizing the excreted urinary cotinine concentration in urine spot samples, when 24-hour samples are not available or not practical. There has been much debate in the scientific community over whether the ratio is useful (38) , and this affirmative finding helps to settle that debate. In addition, the results indicate that cotinine is best used to distinguish recent smokers from nonsmokers. It is not possible to distinguish nonrecent smokers-those that reported being current smokers that did not smoke on the day of urine collection-from nonsmokers. Given the leveling off of the cotinine at higher smoking intensities, it is also difficult to use urinary cotinine to assess a person's smoking intensity at higher levels (greater CPD) of smoking.\n\n In the radiochemical analysis of the urine samples, the median 210 Pb activity concentration in the 24-hour urine samples of smokers (12 mBq) was statistically greater than that in nonsmokers (8 mBq). The median urinary 210 Po activity concentration in smokers (19 mBq) was also close to being statistically greater than that in nonsmokers (15 mBq Po is absorbed (39) , whereas only 15-20% of ingested 210 Pb is absorbed (40) ] to a larger extent than it is influenced by inhalation intakes or internal body stores. Most recently, a group in central Italy published their study of the 210 Po activity concentration in the 24-hour urine samples of 132 residents and also failed to find a statistically significant difference in the urine of smokers versus nonsmokers (41) .\n\n Significant correlations were observed, however, between the total urinary 210 Pb activity and the smoking indices (cotinine, CPD, years). Regression models indicated that CPD is statistically predicted by total urinary 210 Pb activity, although with less variability being accounted for than in the model using total urinary cotinine as a predictor. 210 Pb, however, with its longer apparent half-life, indicates past smoking (months), whereas cotinine, with its short half-life, indicates recent smoking (days). A logistic regression model indicated that a 1-unit increase in total urinary 210 Pb activity is associated with an estimated 25% increase in the odds of being a smoker, indicating that 210 Pb activity can be used to predict the probability of having smoked within the past months. Following validation, practical applications might include both epidemiologic studies and smoking cessation studies. For the latter, repeated intrasubject measurements could be made over time to monitor a person's progress in quitting smoking. In closing, the results of this study indicate a promising new use of 210 Pb as a biomarker in predicting a person's retrospective smoking status.\n\n No potential conflicts of interest were disclosed.",
242
+ "Patients with acyanotic CHD (with or without increased pulmonary blood flow) were reported to be more susceptible to developing pulmonary TB. No case of PTB was reported in patients with TOF, which is a cyanotic CHD with decreased pulmonary blood flow. Van der Merwe et al. explained that patients with cyanotic CHD have decreased pulmonary blood flow and cyanosis, which can inhibit the growth of M. tuberculosis whereas in acyanotic CHD, normal or increased pulmonary blood flow and normal pulmonary arterial saturation provides an encouraging environment for bacterial growth [4] . Ifere et al. have also reported two cases of PTB in presence of CHD other than TOF [5] . Olguntürk et al. reported PTB in a pediatric patient with tricuspid valve pathology, ASD, and pulmonary hypertension. The clinical suspicion was only confirmed on autopsy as all other investigations were negative [6] .\n\n To our knowledge, there are only two reported cases of pulmonary TB in the presence of TOF [7] [8] . Radovic et al. [7] reported a middle-aged male patient with sputum positive TB who was investigated for CHD because of deteriorating cyanosis and respiratory insufficiency, even with anti-TB drugs. Echo was consistent with TOF. Gunay et al. [8] presented a young female, a diagnosed case of TOF, with respiratory complains, who was diagnosed with PTB and managed with first-line anti-TB drugs for two months. However, the literature doesn't report any case of TOF with secondary PTB and secondary non-invasive pulmonary aspergilloma as in our reported case.\n\n There are various diagnostic tools for pulmonary aspergilloma, including serum GM level, BAL GM, culture of Aspergillus species in sputum or BAL fluid, and serum Aspergillus precipitating antibodies. BAL GM assays were more sensitive than serum GM assays [9] .\n\n Undiagnosed congenital heart defects rarely present in adults. Physicians dealing with PTB should keep a suspicion of underlying TOF in mind. Similarly, physicians dealing with known cases of TOF presenting with respiratory distress should also keep the differential diagnosis of pulmonary tuberculosis and aspergilloma in mind.\n\n Human subjects: Consent was obtained by all participants in this study.\n\n In compliance with the ICMJE uniform disclosure form, all authors declare the following: Payment/services info: All authors have declared that no financial support was received from any organization for the submitted work. Financial relationships: All authors have declared that they have no financial relationships at present or within the previous three years with any organizations that might have an interest in the submitted work. Other relationships: All authors have declared that there are no other relationships or activities that could appear to",
243
+ ]
244
+ query_embeddings = model.encode_query(queries)
245
+ document_embeddings = model.encode_document(documents)
246
+ print(query_embeddings[0].shape, document_embeddings[0].shape)
247
+ # (35, 128) (516, 128)
248
+
249
+ # Get the MaxSim similarity scores
250
+ similarities = model.similarity(query_embeddings, document_embeddings)
251
+ print(similarities)
252
+ # tensor([[29.7060, 10.7889, 9.2684]])
253
+ ```
254
+ <!--
255
+ ### Direct Usage (Transformers)
256
+
257
+ <details><summary>Click to see the direct usage in Transformers</summary>
258
+
259
+ </details>
260
+ -->
261
+
262
+ <!--
263
+ ### Downstream Usage (Sentence Transformers)
264
+
265
+ You can finetune this model on your own dataset.
266
+
267
+ <details><summary>Click to expand</summary>
268
+
269
+ </details>
270
+ -->
271
+
272
+ <!--
273
+ ### Out-of-Scope Use
274
+
275
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
276
+ -->
277
+
278
+ ## Evaluation
279
+
280
+ ### Metrics
281
+
282
+ #### Multi Vector Information Retrieval
283
+
284
+ * Datasets: `monitor` and `final`
285
+ * Evaluated with [<code>MultiVectorInformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/multi_vector_encoder/evaluation.html#sentence_transformers.multi_vector_encoder.evaluation.MultiVectorInformationRetrievalEvaluator)
286
+
287
+ | Metric | monitor | final |
288
+ |:--------------------|:-----------|:-----------|
289
+ | maxsim_accuracy@1 | 0.966 | 0.929 |
290
+ | maxsim_accuracy@10 | 0.996 | 0.989 |
291
+ | maxsim_precision@10 | 0.0996 | 0.0989 |
292
+ | maxsim_recall@10 | 0.996 | 0.989 |
293
+ | **maxsim_ndcg@10** | **0.9819** | **0.9608** |
294
+ | maxsim_mrr@10 | 0.9773 | 0.9515 |
295
+ | maxsim_map@10 | 0.9773 | 0.9515 |
296
+
297
+ <!--
298
+ ## Bias, Risks and Limitations
299
+
300
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
301
+ -->
302
+
303
+ <!--
304
+ ### Recommendations
305
+
306
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
307
+ -->
308
+
309
+ ## Training Details
310
+
311
+ ### Training Dataset
312
+
313
+ #### miriad-4.4_m-split
314
+
315
+ * Dataset: [miriad-4.4_m-split](https://huggingface.co/datasets/tomaarsen/miriad-4.4M-split) at [596b9ab](https://huggingface.co/datasets/tomaarsen/miriad-4.4M-split/tree/596b9ab305d52cb73644ed5b5004957c7bfaae40)
316
+ * Size: 1,000,000 training samples
317
+ * Columns: <code>question</code> and <code>passage_text</code>
318
+ * Approximate statistics based on the first 100 samples:
319
+ | | question | passage_text |
320
+ |:---------|:------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------|
321
+ | type | string | string |
322
+ | modality | text | text |
323
+ | details | <ul><li>min: 48 characters</li><li>mean: 106.6 characters</li><li>max: 317 characters</li></ul> | <ul><li>min: 2837 characters</li><li>mean: 4576.82 characters</li><li>max: 7387 characters</li></ul> |
324
+ * Samples:
325
+ | question | passage_text |
326
+ |:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
327
+ | <code>What factors may contribute to increased pulmonary conduit durability in patients who undergo the Ross operation compared to those with right ventricular outflow tract obstruction?<br></code> | <code>I n 1966, Ross and Somerville 1 reported the first use of an aortic homograft to establish right ventricle-to-pulmonary artery continuity in a patient with tetralogy of Fallot and pulmonary atresia. Since that time, pulmonary position homografts have been used in a variety of right-sided congenital heart lesions. Actuarial 5-year homograft survivals for cryopreserved homografts are reported to range between 55% and 94%, with the shortest durability noted in patients less than 2 years of age. 4 Pulmonary position homografts also are used to replace pulmonary autografts explanted to repair left-sided outflow disease (the Ross operation). Several factors may be likely to favor increased pulmonary conduit durability in Ross patients compared with those with right ventricular outflow tract obstruction, including later age at operation (allowing for larger homografts), more normal pulmonary artery architecture, absence of severe right ventricular hypertrophy, and more natural positioning of ...</code> |
328
+ | <code>How does MCAM expression in hMSC affect the growth and maintenance of hematopoietic progenitors?</code> | <code>After culture in a 3-dimensional hydrogel-based matrix, which constitutes hypoxic conditions, MCAM expression is lost. Concordantly, Tormin et al. demonstrated that MCAM is down-regulated under hypoxic conditions. 10 Furthermore, it was shown by others and our group that oxygen tension causes selective modification of hematopoietic cell and mesenchymal stromal cell interactions in co-culture systems as well as influence HSPC metabolism. [44] [45] [46] Thus, the observed differences between Sharma et al. and our data in HSPC supporting capacity of hMSC are likely due to the different culture conditions used. Further studies are required to clarify the influence of hypoxia in our model system. Altogether these findings provide further evidence for the importance of MCAM in supporting HSPC. Furthermore, previous reports have shown that MCAM is down-regulated in MSC after several passages as well as during aging and differentiation. 19, 47 Interestingly, MCAM overexpression in hMSC enhance...</code> |
329
+ | <code>What is the relationship between Fanconi anemia and breast and ovarian cancer susceptibility genes?<br></code> | <code>( 31 ) , of which 5% -10 % may be caused by genetic factors ( 32 ) , up to half a million of these patients may be at risk of secondary hereditary neoplasms. The historic observation of twofold to fi vefold increased risks of cancers of the ovary, thyroid, and connective tissue after breast cancer ( 33 ) presaged the later syndromic association of these tumors with inherited mutations of BRCA1, BRCA2, PTEN, and p53 ( 16 ) . By far the largest cumulative risk of a secondary cancer in BRCA mutation carriers is associated with cancer in the contralateral breast, which may reach a risk of 29.5% at 10 years ( 34 ) . The Breast Cancer Linkage Consortium ( 35 , 36 ) also documented threefold to fi vefold increased risks of subsequent cancers of prostate, pancreas, gallbladder, stomach, skin (melanoma), and uterus in BRCA2 mutation carriers and twofold increased risks of prostate and pancreas cancer in BRCA1 mutation carriers; these results are based largely on self-reported family history inf...</code> |
330
+ * Loss: [<code>CachedMultiVectorMultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/multi_vector_encoder/losses.html#cachedmultivectormultiplenegativesrankingloss) with these parameters:
331
+ ```json
332
+ {
333
+ "scale": 1.0,
334
+ "similarity_fct": "colbert_scores",
335
+ "mini_batch_size": 16,
336
+ "mini_batch_num_tokens": null,
337
+ "score_mini_batch_size": 16,
338
+ "gather_across_devices": false
339
+ }
340
+ ```
341
+
342
+ ### Training Hyperparameters
343
+ #### Non-Default Hyperparameters
344
+
345
+ - `per_device_train_batch_size`: 128
346
+ - `num_train_epochs`: 1
347
+ - `learning_rate`: 0.0001
348
+ - `warmup_steps`: 0.05
349
+ - `bf16`: True
350
+ - `per_device_eval_batch_size`: 16
351
+ - `prompts`: {'question': '[Q] ', 'passage_text': '[D] '}
352
+ - `batch_sampler`: no_duplicates
353
+ - `max_length`: 8192
354
+
355
+ #### All Hyperparameters
356
+ <details><summary>Click to expand</summary>
357
+
358
+ - `per_device_train_batch_size`: 128
359
+ - `num_train_epochs`: 1
360
+ - `max_steps`: -1
361
+ - `learning_rate`: 0.0001
362
+ - `lr_scheduler_type`: linear
363
+ - `lr_scheduler_kwargs`: None
364
+ - `warmup_steps`: 0.05
365
+ - `optim`: adamw_torch_fused
366
+ - `optim_args`: None
367
+ - `weight_decay`: 0.0
368
+ - `adam_beta1`: 0.9
369
+ - `adam_beta2`: 0.999
370
+ - `adam_epsilon`: 1e-08
371
+ - `optim_target_modules`: None
372
+ - `gradient_accumulation_steps`: 1
373
+ - `average_tokens_across_devices`: True
374
+ - `max_grad_norm`: 1.0
375
+ - `label_smoothing_factor`: 0.0
376
+ - `bf16`: True
377
+ - `fp16`: False
378
+ - `bf16_full_eval`: False
379
+ - `fp16_full_eval`: False
380
+ - `tf32`: None
381
+ - `gradient_checkpointing`: False
382
+ - `gradient_checkpointing_kwargs`: None
383
+ - `torch_compile`: False
384
+ - `torch_compile_backend`: None
385
+ - `torch_compile_mode`: None
386
+ - `use_liger_kernel`: False
387
+ - `liger_kernel_config`: None
388
+ - `use_cache`: False
389
+ - `neftune_noise_alpha`: None
390
+ - `torch_empty_cache_steps`: None
391
+ - `auto_find_batch_size`: False
392
+ - `log_on_each_node`: True
393
+ - `logging_nan_inf_filter`: True
394
+ - `include_num_input_tokens_seen`: no
395
+ - `log_level`: passive
396
+ - `log_level_replica`: warning
397
+ - `disable_tqdm`: False
398
+ - `project`: huggingface
399
+ - `trackio_space_id`: None
400
+ - `trackio_bucket_id`: None
401
+ - `trackio_static_space_id`: None
402
+ - `per_device_eval_batch_size`: 16
403
+ - `prediction_loss_only`: True
404
+ - `eval_on_start`: False
405
+ - `eval_do_concat_batches`: True
406
+ - `eval_use_gather_object`: False
407
+ - `eval_accumulation_steps`: None
408
+ - `include_for_metrics`: []
409
+ - `batch_eval_metrics`: False
410
+ - `save_only_model`: False
411
+ - `save_on_each_node`: False
412
+ - `enable_jit_checkpoint`: False
413
+ - `push_to_hub`: False
414
+ - `hub_private_repo`: None
415
+ - `hub_model_id`: None
416
+ - `hub_strategy`: every_save
417
+ - `hub_always_push`: False
418
+ - `hub_revision`: None
419
+ - `load_best_model_at_end`: False
420
+ - `ignore_data_skip`: False
421
+ - `restore_callback_states_from_checkpoint`: False
422
+ - `full_determinism`: False
423
+ - `seed`: 42
424
+ - `data_seed`: None
425
+ - `use_cpu`: False
426
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
427
+ - `parallelism_config`: None
428
+ - `dataloader_drop_last`: False
429
+ - `dataloader_num_workers`: 0
430
+ - `dataloader_pin_memory`: True
431
+ - `dataloader_persistent_workers`: False
432
+ - `dataloader_prefetch_factor`: None
433
+ - `remove_unused_columns`: True
434
+ - `label_names`: None
435
+ - `train_sampling_strategy`: random
436
+ - `length_column_name`: length
437
+ - `ddp_find_unused_parameters`: None
438
+ - `ddp_bucket_cap_mb`: None
439
+ - `ddp_broadcast_buffers`: False
440
+ - `ddp_static_graph`: None
441
+ - `ddp_backend`: None
442
+ - `ddp_timeout`: 1800
443
+ - `fsdp`: None
444
+ - `fsdp_config`: None
445
+ - `deepspeed`: None
446
+ - `debug`: []
447
+ - `skip_memory_metrics`: True
448
+ - `do_predict`: False
449
+ - `resume_from_checkpoint`: None
450
+ - `warmup_ratio`: None
451
+ - `local_rank`: -1
452
+ - `prompts`: {'question': '[Q] ', 'passage_text': '[D] '}
453
+ - `batch_sampler`: no_duplicates
454
+ - `multi_dataset_batch_sampler`: proportional
455
+ - `router_mapping`: {}
456
+ - `learning_rate_mapping`: {}
457
+ - `max_length`: 8192
458
+
459
+ </details>
460
+
461
+ ### Training Logs
462
+ | Epoch | Step | Training Loss | monitor_maxsim_ndcg@10 | final_maxsim_ndcg@10 |
463
+ |:------:|:----:|:-------------:|:----------------------:|:--------------------:|
464
+ | 0.0500 | 391 | 0.3596 | - | - |
465
+ | 0.1001 | 782 | 0.0226 | 0.9731 | - |
466
+ | 0.1501 | 1173 | 0.0196 | - | - |
467
+ | 0.2002 | 1564 | 0.0187 | 0.9733 | - |
468
+ | 0.2502 | 1955 | 0.0150 | - | - |
469
+ | 0.3003 | 2346 | 0.0158 | 0.9752 | - |
470
+ | 0.3503 | 2737 | 0.0141 | - | - |
471
+ | 0.4004 | 3128 | 0.0135 | 0.9806 | - |
472
+ | 0.4504 | 3519 | 0.0123 | - | - |
473
+ | 0.5004 | 3910 | 0.0121 | 0.9809 | - |
474
+ | 0.5505 | 4301 | 0.0118 | - | - |
475
+ | 0.6005 | 4692 | 0.0119 | 0.9776 | - |
476
+ | 0.6506 | 5083 | 0.0106 | - | - |
477
+ | 0.7006 | 5474 | 0.0103 | 0.9837 | - |
478
+ | 0.7507 | 5865 | 0.0085 | - | - |
479
+ | 0.8007 | 6256 | 0.0083 | 0.9809 | - |
480
+ | 0.8508 | 6647 | 0.0077 | - | - |
481
+ | 0.9008 | 7038 | 0.0076 | 0.9835 | - |
482
+ | 0.9509 | 7429 | 0.0069 | - | - |
483
+ | 1.0 | 7813 | - | 0.9819 | - |
484
+ | -1 | -1 | - | - | 0.9608 |
485
+
486
+
487
+ ### Training Time
488
+ - **Training**: 14.1 hours
489
+ - **Evaluation**: 25.3 minutes
490
+ - **Total**: 14.5 hours
491
+
492
+ ### Framework Versions
493
+ - Python: 3.11.13
494
+ - Sentence Transformers: 6.0.0
495
+ - Transformers: 5.14.1
496
+ - PyTorch: 2.11.0+cu128
497
+ - Accelerate: 1.5.2
498
+ - Datasets: 3.5.0
499
+ - Tokenizers: 0.22.2
500
+
501
+ ## Citation
502
+
503
+ ### BibTeX
504
+
505
+ #### Sentence Transformers
506
+ ```bibtex
507
+ @inproceedings{reimers-2019-sentence-bert,
508
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
509
+ author = "Reimers, Nils and Gurevych, Iryna",
510
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
511
+ month = "11",
512
+ year = "2019",
513
+ publisher = "Association for Computational Linguistics",
514
+ url = "https://arxiv.org/abs/1908.10084",
515
+ }
516
+ ```
517
+
518
+ #### CachedMultiVectorMultipleNegativesRankingLoss
519
+ ```bibtex
520
+ @misc{gao2021scaling,
521
+ title={Scaling Deep Contrastive Learning Batch Size under Memory Limited Setup},
522
+ author={Luyu Gao and Yunyi Zhang and Jiawei Han and Jamie Callan},
523
+ year={2021},
524
+ eprint={2101.06983},
525
+ archivePrefix={arXiv},
526
+ primaryClass={cs.LG}
527
+ }
528
+ ```
529
+
530
+ <!--
531
+ ## Glossary
532
+
533
+ *Clearly define terms in order to be accessible across audiences.*
534
+ -->
535
+
536
+ <!--
537
+ ## Model Card Authors
538
+
539
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
540
+ -->
541
+
542
+ <!--
543
+ ## Model Card Contact
544
+
545
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
546
+ -->
config.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertModel"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 2,
8
+ "classifier_activation": "gelu",
9
+ "classifier_bias": false,
10
+ "classifier_dropout": 0.0,
11
+ "classifier_pooling": "mean",
12
+ "cls_token_id": 1,
13
+ "decoder_bias": true,
14
+ "deterministic_flash_attn": false,
15
+ "dtype": "float32",
16
+ "embedding_dropout": 0.0,
17
+ "eos_token_id": 1,
18
+ "global_attn_every_n_layers": 3,
19
+ "gradient_checkpointing": false,
20
+ "hidden_activation": "gelu",
21
+ "hidden_size": 768,
22
+ "initializer_cutoff_factor": 2.0,
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 1152,
25
+ "layer_norm_eps": 1e-05,
26
+ "layer_types": [
27
+ "full_attention",
28
+ "sliding_attention",
29
+ "sliding_attention",
30
+ "full_attention",
31
+ "sliding_attention",
32
+ "sliding_attention",
33
+ "full_attention",
34
+ "sliding_attention",
35
+ "sliding_attention",
36
+ "full_attention",
37
+ "sliding_attention",
38
+ "sliding_attention",
39
+ "full_attention",
40
+ "sliding_attention",
41
+ "sliding_attention",
42
+ "full_attention",
43
+ "sliding_attention",
44
+ "sliding_attention",
45
+ "full_attention",
46
+ "sliding_attention",
47
+ "sliding_attention",
48
+ "full_attention"
49
+ ],
50
+ "local_attention": 128,
51
+ "mask_token_id": 4,
52
+ "max_position_embeddings": 8192,
53
+ "mlp_bias": false,
54
+ "mlp_dropout": 0.0,
55
+ "model_type": "modernbert",
56
+ "norm_bias": false,
57
+ "norm_eps": 1e-05,
58
+ "num_attention_heads": 12,
59
+ "num_hidden_layers": 22,
60
+ "pad_token_id": 4,
61
+ "position_embedding_type": "sans_pos",
62
+ "repad_logits_with_grad": false,
63
+ "rope_parameters": {
64
+ "full_attention": {
65
+ "rope_theta": 160000,
66
+ "rope_type": "default"
67
+ },
68
+ "sliding_attention": {
69
+ "rope_theta": 160000,
70
+ "rope_type": "default"
71
+ }
72
+ },
73
+ "sep_token_id": 1,
74
+ "sparse_pred_ignore_index": -100,
75
+ "sparse_prediction": false,
76
+ "tie_word_embeddings": true,
77
+ "transformers_version": "5.14.1",
78
+ "use_cache": false,
79
+ "vocab_size": 256002
80
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "pytorch": "2.11.0+cu128",
4
+ "sentence_transformers": "6.0.0",
5
+ "transformers": "5.14.1"
6
+ },
7
+ "default_prompt_name": null,
8
+ "model_type": "MultiVectorEncoder",
9
+ "prompts": {
10
+ "document": "[D] ",
11
+ "query": "[Q] "
12
+ },
13
+ "similarity_fn_name": "maxsim"
14
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8639f2a00f324b64c9a6d63ea13d12432c03adb131c91d900ba736247c9703cd
3
+ size 1227777920
modules.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.base.modules.transformer.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Dense",
12
+ "type": "sentence_transformers.base.modules.dense.Dense"
13
+ },
14
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Dense",
18
+ "type": "sentence_transformers.base.modules.dense.Dense"
19
+ },
20
+ {
21
+ "idx": 3,
22
+ "name": "3",
23
+ "path": "3_Dense",
24
+ "type": "sentence_transformers.base.modules.dense.Dense"
25
+ },
26
+ {
27
+ "idx": 4,
28
+ "name": "4",
29
+ "path": "4_MultiVectorMask",
30
+ "type": "sentence_transformers.multi_vector_encoder.modules.multi_vector_mask.MultiVectorMask"
31
+ },
32
+ {
33
+ "idx": 5,
34
+ "name": "5",
35
+ "path": "5_Normalize",
36
+ "type": "sentence_transformers.base.modules.normalize.Normalize"
37
+ }
38
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "transformer_task": "feature-extraction",
3
+ "modality_config": {
4
+ "text": {
5
+ "method": "forward",
6
+ "method_output_name": "last_hidden_state"
7
+ }
8
+ },
9
+ "module_output_name": "token_embeddings"
10
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ba332f5e19ec3f9f386a581a83e92e46de70c77224df1a10939a95d5079edb1
3
+ size 34363649
tokenizer_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<bos>",
4
+ "clean_up_tokenization_spaces": false,
5
+ "cls_token": "<bos>",
6
+ "eos_token": "<eos>",
7
+ "extra_special_tokens": [
8
+ "[Q] ",
9
+ "[D] "
10
+ ],
11
+ "is_local": false,
12
+ "local_files_only": false,
13
+ "mask_token": "<mask>",
14
+ "max_length": 299,
15
+ "model_input_names": [
16
+ "input_ids",
17
+ "attention_mask"
18
+ ],
19
+ "model_max_length": 8192,
20
+ "pad_to_multiple_of": null,
21
+ "pad_token": "<mask>",
22
+ "pad_token_type_id": 0,
23
+ "padding_side": "right",
24
+ "sep_token": "<eos>",
25
+ "spaces_between_special_tokens": false,
26
+ "stride": 0,
27
+ "tokenizer_class": "TokenizersBackend",
28
+ "truncation_side": "right",
29
+ "truncation_strategy": "longest_first",
30
+ "unk_token": "<unk>"
31
+ }