yazied49 commited on
Commit
c869387
·
verified ·
1 Parent(s): da2bf78

Initial upload

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ 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
+ medical_chatbot_20k_model/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ medical_chatbot_20k_model/unigram.json filter=lfs diff=lfs merge=lfs -text
.ipynb_checkpoints/Untitled-checkpoint.ipynb ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [],
3
+ "metadata": {},
4
+ "nbformat": 4,
5
+ "nbformat_minor": 5
6
+ }
Untitled.ipynb ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 1,
6
+ "id": "983195ef",
7
+ "metadata": {},
8
+ "outputs": [
9
+ {
10
+ "data": {
11
+ "application/vnd.jupyter.widget-view+json": {
12
+ "model_id": "ad6db4fa42684664bfa46102f9075b69",
13
+ "version_major": 2,
14
+ "version_minor": 0
15
+ },
16
+ "text/plain": [
17
+ "VBox(children=(HTML(value='<center> <img\\nsrc=https://huggingface.co/front/assets/huggingface_logo-noborder.sv…"
18
+ ]
19
+ },
20
+ "metadata": {},
21
+ "output_type": "display_data"
22
+ }
23
+ ],
24
+ "source": [
25
+ "from huggingface_hub import login\n",
26
+ "\n",
27
+ "login()\n"
28
+ ]
29
+ },
30
+ {
31
+ "cell_type": "code",
32
+ "execution_count": null,
33
+ "id": "71bb7aa8",
34
+ "metadata": {},
35
+ "outputs": [
36
+ {
37
+ "data": {
38
+ "application/vnd.jupyter.widget-view+json": {
39
+ "model_id": "9262b4baa1584e74b874adf30f7da84a",
40
+ "version_major": 2,
41
+ "version_minor": 0
42
+ },
43
+ "text/plain": [
44
+ "tokenizer.json: 0%| | 0.00/17.1M [00:00<?, ?B/s]"
45
+ ]
46
+ },
47
+ "metadata": {},
48
+ "output_type": "display_data"
49
+ },
50
+ {
51
+ "data": {
52
+ "application/vnd.jupyter.widget-view+json": {
53
+ "model_id": "6c7cb2429f9d4bab9b174f42fa29b79e",
54
+ "version_major": 2,
55
+ "version_minor": 0
56
+ },
57
+ "text/plain": [
58
+ "Upload 3 LFS files: 0%| | 0/3 [00:00<?, ?it/s]"
59
+ ]
60
+ },
61
+ "metadata": {},
62
+ "output_type": "display_data"
63
+ },
64
+ {
65
+ "data": {
66
+ "application/vnd.jupyter.widget-view+json": {
67
+ "model_id": "ae8cdc79a1e24542acbda1c557678b86",
68
+ "version_major": 2,
69
+ "version_minor": 0
70
+ },
71
+ "text/plain": [
72
+ "model.safetensors: 0%| | 0.00/471M [00:00<?, ?B/s]"
73
+ ]
74
+ },
75
+ "metadata": {},
76
+ "output_type": "display_data"
77
+ },
78
+ {
79
+ "data": {
80
+ "application/vnd.jupyter.widget-view+json": {
81
+ "model_id": "4a92263a603b4c05af034c525d592922",
82
+ "version_major": 2,
83
+ "version_minor": 0
84
+ },
85
+ "text/plain": [
86
+ "unigram.json: 0%| | 0.00/14.8M [00:00<?, ?B/s]"
87
+ ]
88
+ },
89
+ "metadata": {},
90
+ "output_type": "display_data"
91
+ }
92
+ ],
93
+ "source": [
94
+ "from huggingface_hub import create_repo, upload_folder\n",
95
+ "\n",
96
+ "repo_name = \"NAdine\"\n",
97
+ "create_repo(repo_name, private=False)\n",
98
+ "\n",
99
+ "upload_folder(\n",
100
+ " folder_path=\".\", \n",
101
+ " repo_id=f\"yazied49/{repo_name}\",\n",
102
+ " commit_message=\"Initial upload\"\n",
103
+ ")\n"
104
+ ]
105
+ },
106
+ {
107
+ "cell_type": "code",
108
+ "execution_count": null,
109
+ "id": "6d873605",
110
+ "metadata": {},
111
+ "outputs": [],
112
+ "source": []
113
+ }
114
+ ],
115
+ "metadata": {
116
+ "kernelspec": {
117
+ "display_name": "Python 3 (ipykernel)",
118
+ "language": "python",
119
+ "name": "python3"
120
+ },
121
+ "language_info": {
122
+ "codemirror_mode": {
123
+ "name": "ipython",
124
+ "version": 3
125
+ },
126
+ "file_extension": ".py",
127
+ "mimetype": "text/x-python",
128
+ "name": "python",
129
+ "nbconvert_exporter": "python",
130
+ "pygments_lexer": "ipython3",
131
+ "version": "3.11.7"
132
+ }
133
+ },
134
+ "nbformat": 4,
135
+ "nbformat_minor": 5
136
+ }
medical_chatbot_20k_model/1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 384,
3
+ "pooling_mode_cls_token": false,
4
+ "pooling_mode_mean_tokens": true,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
medical_chatbot_20k_model/README.md ADDED
@@ -0,0 +1,378 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:20000
8
+ - loss:CosineSimilarityLoss
9
+ base_model: sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
10
+ widget:
11
+ - source_sentence: 'Question: Is this describing a (1) directly correlative relationship,
12
+ (2) conditionally causative relationship, (3) causative relationship, or (0) no
13
+ relationship.'
14
+ sentences:
15
+ - 'C: Iron deficiency anemia in the mother; normal Hb levels in the fetus'
16
+ - This is a conditionally causative relationship
17
+ - 'C: Decreasing carbohydrate intake, increasing fat intake'
18
+ - source_sentence: Please summerize the given abstract to a title
19
+ sentences:
20
+ - 'BatteryLab: A Collaborative Platform for Power Monitoring'
21
+ - hi ! good evening. i am chatbot answering your query. from the history, it seems
22
+ that you might have sustained some kind of trivial trauma while cutting woods
23
+ resulting in oozing of blood in the tissue forming a collection of blood (hematoma).
24
+ usually, small collections of blood get absorbed of their own. however, this may
25
+ not happen in cases where the blood clotting is hampered by the intake of blood
26
+ thinners as is in your case and the same might also get infected causing more
27
+ pain due to an abscess. if i were your doctor, i would consult your physician
28
+ who started your blood thinning agent for consideration of discontinuing these
29
+ medicines for some time till it heals up. if it does not even then, i would refer
30
+ you to a general surgeon for a clinical examination and further management. i
31
+ hope this information would help you in discussing with your family physician/treating
32
+ doctor in further management of your problem. please do not hesitate to ask in
33
+ case of any further doubts. thanks for choosing chatbot to clear doubts on your
34
+ health problems. wishing you an early recovery. chatbot. if i were your doctor,
35
+ - Effects of the psychoactive compounds in green tea on risky decision-making.
36
+ - source_sentence: Answer this question truthfully
37
+ sentences:
38
+ - Laparoscopic stomach-partitioning gastrojejunostomy with reduced-port techniques
39
+ for unresectable distal gastric cancer.
40
+ - hi, thanks for posting the query, i would suggest you to get an x-ray of the tooth
41
+ piece left in the socket, according to your clinical symptoms i suppose that you
42
+ might have developed an infection in the region which is radiating in the nearby
43
+ tooth region giving you such feeling, also take course of antibiotics and analgesics,
44
+ maintain a good oral hygiene, take lukewarm saline and antiseptic mouthwash rinses,
45
+ take an appointment with oral surgeon and get the piece removed. hope you find
46
+ this as helpful, take care!
47
+ - If you feel you are developing symptoms suggestive of Pneumocystis pneumonia contact
48
+ your health professional.
49
+ - source_sentence: If you are a doctor, please answer the medical questions based
50
+ on the patient's description.
51
+ sentences:
52
+ - Hazard control for communicable disease transport at Ornge
53
+ - hello and thank you for asking chatbot, i understand your concern. you are probably
54
+ experiencing low blood pressure when you stand up, called orthostatic hypotension.
55
+ as a result, not enough blood reaches your brain, and you feel lightheaded or
56
+ dizzy. here are some advices
57
+ - hi, thank you for posting your query. i have noted your symptoms. these are suggestive
58
+ of sciatica, or nerve compression in the lower back region due to slipped disc
59
+ in that location. disc prolapse leads to compression of the nerves, resulting
60
+ in low back pain, leg pain and tingling. symptoms may increase on walking. the
61
+ diagnosis can be confirmed by doing mri scan of the lumbosacral spine. good medical
62
+ treatments are available for this condition. i hope my answer helps. please get
63
+ back if you have any follow-up queries or if you require any additional information.
64
+ wishing you good health, chatbot. ly/
65
+ - source_sentence: Please summerize the given abstract to a title
66
+ sentences:
67
+ - Gastric mucormycosis with splenic invasion a rare abdominal complication of COVID-19
68
+ pneumonia
69
+ - 'Russian-Language Mobile Apps for Reducing Alcohol Use: Systematic Search and
70
+ Evaluation'
71
+ - Peacekeeping after Covid-19
72
+ pipeline_tag: sentence-similarity
73
+ library_name: sentence-transformers
74
+ ---
75
+
76
+ # SentenceTransformer based on sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
77
+
78
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2). It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
79
+
80
+ ## Model Details
81
+
82
+ ### Model Description
83
+ - **Model Type:** Sentence Transformer
84
+ - **Base model:** [sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2) <!-- at revision 86741b4e3f5cb7765a600d3a3d55a0f6a6cb443d -->
85
+ - **Maximum Sequence Length:** 128 tokens
86
+ - **Output Dimensionality:** 384 dimensions
87
+ - **Similarity Function:** Cosine Similarity
88
+ <!-- - **Training Dataset:** Unknown -->
89
+ <!-- - **Language:** Unknown -->
90
+ <!-- - **License:** Unknown -->
91
+
92
+ ### Model Sources
93
+
94
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
95
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
96
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
97
+
98
+ ### Full Model Architecture
99
+
100
+ ```
101
+ SentenceTransformer(
102
+ (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: BertModel
103
+ (1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
104
+ )
105
+ ```
106
+
107
+ ## Usage
108
+
109
+ ### Direct Usage (Sentence Transformers)
110
+
111
+ First install the Sentence Transformers library:
112
+
113
+ ```bash
114
+ pip install -U sentence-transformers
115
+ ```
116
+
117
+ Then you can load this model and run inference.
118
+ ```python
119
+ from sentence_transformers import SentenceTransformer
120
+
121
+ # Download from the 🤗 Hub
122
+ model = SentenceTransformer("sentence_transformers_model_id")
123
+ # Run inference
124
+ sentences = [
125
+ 'Please summerize the given abstract to a title',
126
+ 'Peacekeeping after Covid-19',
127
+ 'Russian-Language Mobile Apps for Reducing Alcohol Use: Systematic Search and Evaluation',
128
+ ]
129
+ embeddings = model.encode(sentences)
130
+ print(embeddings.shape)
131
+ # [3, 384]
132
+
133
+ # Get the similarity scores for the embeddings
134
+ similarities = model.similarity(embeddings, embeddings)
135
+ print(similarities.shape)
136
+ # [3, 3]
137
+ ```
138
+
139
+ <!--
140
+ ### Direct Usage (Transformers)
141
+
142
+ <details><summary>Click to see the direct usage in Transformers</summary>
143
+
144
+ </details>
145
+ -->
146
+
147
+ <!--
148
+ ### Downstream Usage (Sentence Transformers)
149
+
150
+ You can finetune this model on your own dataset.
151
+
152
+ <details><summary>Click to expand</summary>
153
+
154
+ </details>
155
+ -->
156
+
157
+ <!--
158
+ ### Out-of-Scope Use
159
+
160
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
161
+ -->
162
+
163
+ <!--
164
+ ## Bias, Risks and Limitations
165
+
166
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
167
+ -->
168
+
169
+ <!--
170
+ ### Recommendations
171
+
172
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
173
+ -->
174
+
175
+ ## Training Details
176
+
177
+ ### Training Dataset
178
+
179
+ #### Unnamed Dataset
180
+
181
+ * Size: 20,000 training samples
182
+ * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
183
+ * Approximate statistics based on the first 1000 samples:
184
+ | | sentence_0 | sentence_1 | label |
185
+ |:--------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:--------------------------------------------------------------|
186
+ | type | string | string | float |
187
+ | details | <ul><li>min: 7 tokens</li><li>mean: 15.87 tokens</li><li>max: 81 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 77.94 tokens</li><li>max: 128 tokens</li></ul> | <ul><li>min: 1.0</li><li>mean: 1.0</li><li>max: 1.0</li></ul> |
188
+ * Samples:
189
+ | sentence_0 | sentence_1 | label |
190
+ |:------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------|
191
+ | <code>Please summerize the given abstract to a title</code> | <code>Impact of National Containment Measures on Decelerating the Increase in Daily New Cases of COVID-19 in 54 Countries and 4 Epicenters of the Pandemic: Comparative Observational Study</code> | <code>1.0</code> |
192
+ | <code>Answer this question truthfully</code> | <code>Intracranial hypertension is defined as ICP greater than 20 mmHg. This condition occurs when there is increased pressure inside the skull, which can cause a range of symptoms and potentially lead to serious complications such as brain damage or herniation. Intracranial hypertension can be caused by a variety of factors, including head injury, brain tumors, infections, and certain medications. Treatment options may include medications to reduce pressure, surgery to relieve pressure or address underlying causes, or other supportive measures to manage symptoms and prevent complications.</code> | <code>1.0</code> |
193
+ | <code>Answer this question truthfully</code> | <code>The bone marrow is a rapidly proliferating population of cells that produces blood cells, including white blood cells, red blood cells, and platelets. 6-mercaptopurine and azathioprine are medications that are commonly used to treat autoimmune diseases and some types of cancer. However, because these drugs interfere with the production of new cells, they can also cause myelosuppression, which is a condition in which the bone marrow produces fewer blood cells than normal. This can lead to a variety of symptoms, including fatigue, weakness, and an increased risk of infection.</code> | <code>1.0</code> |
194
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
195
+ ```json
196
+ {
197
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
198
+ }
199
+ ```
200
+
201
+ ### Training Hyperparameters
202
+ #### Non-Default Hyperparameters
203
+
204
+ - `per_device_train_batch_size`: 16
205
+ - `per_device_eval_batch_size`: 16
206
+ - `num_train_epochs`: 1
207
+ - `multi_dataset_batch_sampler`: round_robin
208
+
209
+ #### All Hyperparameters
210
+ <details><summary>Click to expand</summary>
211
+
212
+ - `overwrite_output_dir`: False
213
+ - `do_predict`: False
214
+ - `eval_strategy`: no
215
+ - `prediction_loss_only`: True
216
+ - `per_device_train_batch_size`: 16
217
+ - `per_device_eval_batch_size`: 16
218
+ - `per_gpu_train_batch_size`: None
219
+ - `per_gpu_eval_batch_size`: None
220
+ - `gradient_accumulation_steps`: 1
221
+ - `eval_accumulation_steps`: None
222
+ - `torch_empty_cache_steps`: None
223
+ - `learning_rate`: 5e-05
224
+ - `weight_decay`: 0.0
225
+ - `adam_beta1`: 0.9
226
+ - `adam_beta2`: 0.999
227
+ - `adam_epsilon`: 1e-08
228
+ - `max_grad_norm`: 1
229
+ - `num_train_epochs`: 1
230
+ - `max_steps`: -1
231
+ - `lr_scheduler_type`: linear
232
+ - `lr_scheduler_kwargs`: {}
233
+ - `warmup_ratio`: 0.0
234
+ - `warmup_steps`: 0
235
+ - `log_level`: passive
236
+ - `log_level_replica`: warning
237
+ - `log_on_each_node`: True
238
+ - `logging_nan_inf_filter`: True
239
+ - `save_safetensors`: True
240
+ - `save_on_each_node`: False
241
+ - `save_only_model`: False
242
+ - `restore_callback_states_from_checkpoint`: False
243
+ - `no_cuda`: False
244
+ - `use_cpu`: False
245
+ - `use_mps_device`: False
246
+ - `seed`: 42
247
+ - `data_seed`: None
248
+ - `jit_mode_eval`: False
249
+ - `use_ipex`: False
250
+ - `bf16`: False
251
+ - `fp16`: False
252
+ - `fp16_opt_level`: O1
253
+ - `half_precision_backend`: auto
254
+ - `bf16_full_eval`: False
255
+ - `fp16_full_eval`: False
256
+ - `tf32`: None
257
+ - `local_rank`: 0
258
+ - `ddp_backend`: None
259
+ - `tpu_num_cores`: None
260
+ - `tpu_metrics_debug`: False
261
+ - `debug`: []
262
+ - `dataloader_drop_last`: False
263
+ - `dataloader_num_workers`: 0
264
+ - `dataloader_prefetch_factor`: None
265
+ - `past_index`: -1
266
+ - `disable_tqdm`: False
267
+ - `remove_unused_columns`: True
268
+ - `label_names`: None
269
+ - `load_best_model_at_end`: False
270
+ - `ignore_data_skip`: False
271
+ - `fsdp`: []
272
+ - `fsdp_min_num_params`: 0
273
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
274
+ - `tp_size`: 0
275
+ - `fsdp_transformer_layer_cls_to_wrap`: None
276
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
277
+ - `deepspeed`: None
278
+ - `label_smoothing_factor`: 0.0
279
+ - `optim`: adamw_torch
280
+ - `optim_args`: None
281
+ - `adafactor`: False
282
+ - `group_by_length`: False
283
+ - `length_column_name`: length
284
+ - `ddp_find_unused_parameters`: None
285
+ - `ddp_bucket_cap_mb`: None
286
+ - `ddp_broadcast_buffers`: False
287
+ - `dataloader_pin_memory`: True
288
+ - `dataloader_persistent_workers`: False
289
+ - `skip_memory_metrics`: True
290
+ - `use_legacy_prediction_loop`: False
291
+ - `push_to_hub`: False
292
+ - `resume_from_checkpoint`: None
293
+ - `hub_model_id`: None
294
+ - `hub_strategy`: every_save
295
+ - `hub_private_repo`: None
296
+ - `hub_always_push`: False
297
+ - `gradient_checkpointing`: False
298
+ - `gradient_checkpointing_kwargs`: None
299
+ - `include_inputs_for_metrics`: False
300
+ - `include_for_metrics`: []
301
+ - `eval_do_concat_batches`: True
302
+ - `fp16_backend`: auto
303
+ - `push_to_hub_model_id`: None
304
+ - `push_to_hub_organization`: None
305
+ - `mp_parameters`:
306
+ - `auto_find_batch_size`: False
307
+ - `full_determinism`: False
308
+ - `torchdynamo`: None
309
+ - `ray_scope`: last
310
+ - `ddp_timeout`: 1800
311
+ - `torch_compile`: False
312
+ - `torch_compile_backend`: None
313
+ - `torch_compile_mode`: None
314
+ - `include_tokens_per_second`: False
315
+ - `include_num_input_tokens_seen`: False
316
+ - `neftune_noise_alpha`: None
317
+ - `optim_target_modules`: None
318
+ - `batch_eval_metrics`: False
319
+ - `eval_on_start`: False
320
+ - `use_liger_kernel`: False
321
+ - `eval_use_gather_object`: False
322
+ - `average_tokens_across_devices`: False
323
+ - `prompts`: None
324
+ - `batch_sampler`: batch_sampler
325
+ - `multi_dataset_batch_sampler`: round_robin
326
+
327
+ </details>
328
+
329
+ ### Training Logs
330
+ | Epoch | Step | Training Loss |
331
+ |:-----:|:----:|:-------------:|
332
+ | 0.4 | 500 | 0.4093 |
333
+ | 0.8 | 1000 | 0.0074 |
334
+
335
+
336
+ ### Framework Versions
337
+ - Python: 3.11.12
338
+ - Sentence Transformers: 3.4.1
339
+ - Transformers: 4.51.3
340
+ - PyTorch: 2.6.0+cu124
341
+ - Accelerate: 1.6.0
342
+ - Datasets: 3.5.1
343
+ - Tokenizers: 0.21.1
344
+
345
+ ## Citation
346
+
347
+ ### BibTeX
348
+
349
+ #### Sentence Transformers
350
+ ```bibtex
351
+ @inproceedings{reimers-2019-sentence-bert,
352
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
353
+ author = "Reimers, Nils and Gurevych, Iryna",
354
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
355
+ month = "11",
356
+ year = "2019",
357
+ publisher = "Association for Computational Linguistics",
358
+ url = "https://arxiv.org/abs/1908.10084",
359
+ }
360
+ ```
361
+
362
+ <!--
363
+ ## Glossary
364
+
365
+ *Clearly define terms in order to be accessible across audiences.*
366
+ -->
367
+
368
+ <!--
369
+ ## Model Card Authors
370
+
371
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
372
+ -->
373
+
374
+ <!--
375
+ ## Model Card Contact
376
+
377
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
378
+ -->
medical_chatbot_20k_model/config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "gradient_checkpointing": false,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 384,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 1536,
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.51.3",
22
+ "type_vocab_size": 2,
23
+ "use_cache": true,
24
+ "vocab_size": 250037
25
+ }
medical_chatbot_20k_model/config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.4.1",
4
+ "transformers": "4.51.3",
5
+ "pytorch": "2.6.0+cu124"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": "cosine"
10
+ }
medical_chatbot_20k_model/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6bf2b7f7b686c842efb64fb84d3258d4ed8c86c5681f99c73e67ed0dce3b4d61
3
+ size 470637416
medical_chatbot_20k_model/modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ }
14
+ ]
medical_chatbot_20k_model/sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 128,
3
+ "do_lower_case": false
4
+ }
medical_chatbot_20k_model/special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
medical_chatbot_20k_model/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cad551d5600a84242d0973327029452a1e3672ba6313c2a3c3d69c4310e12719
3
+ size 17082987
medical_chatbot_20k_model/tokenizer_config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": false,
46
+ "cls_token": "<s>",
47
+ "do_lower_case": true,
48
+ "eos_token": "</s>",
49
+ "extra_special_tokens": {},
50
+ "mask_token": "<mask>",
51
+ "max_length": 128,
52
+ "model_max_length": 128,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "<pad>",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "</s>",
58
+ "stride": 0,
59
+ "strip_accents": null,
60
+ "tokenize_chinese_chars": true,
61
+ "tokenizer_class": "BertTokenizer",
62
+ "truncation_side": "right",
63
+ "truncation_strategy": "longest_first",
64
+ "unk_token": "<unk>"
65
+ }
medical_chatbot_20k_model/unigram.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da145b5e7700ae40f16691ec32a0b1fdc1ee3298db22a31ea55f57a966c4a65d
3
+ size 14763260