Matjac5 commited on
Commit
6034fd6
·
verified ·
1 Parent(s): 76056b7

Upload rag SentenceTransformer

Browse files
Files changed (3) hide show
  1. README.md +93 -79
  2. config.json +1 -1
  3. config_sentence_transformers.json +1 -1
README.md CHANGED
@@ -8,39 +8,53 @@ tags:
8
  - loss:MultipleNegativesRankingLoss
9
  base_model: Qwen/Qwen3-0.6B-Base
10
  widget:
11
- - source_sentence: how many seconds will a 450 m long train take to cross a man walking
12
- with a speed of 3 km / hr in the direction of the moving train if the speed of
13
- the train is 63 km / hr ?
14
- sentences:
15
- - ''''
16
- - '['
17
- - '2'
18
- - source_sentence: 'A patient of CSOM has choleastatoma and presents with veigo .
19
- Treatment of choice would be:'
 
 
 
 
 
 
20
  sentences:
21
- - A
22
  - ''''
23
  - ''''
24
- - source_sentence: Dhoni spent 25 percent of his earning last month on rent and 10
25
- percent less than what he spent on rent to purchase a new dishwasher. What percent
26
- of last month's earning did Dhoni have left over?
 
27
  sentences:
28
- - C
29
- - ''''
30
- - '%'
31
- - source_sentence: 'On the xy co-ordinate plane, point C is (5,-2) and point D is
32
- (-1,2). The point on line segment CD that is twice as far from C as from D is:'
 
33
  sentences:
34
- - '1'
35
- - n
36
- - y
37
- - source_sentence: car a runs at the speed of 35 km / hr & reaches its destination
38
- in 9 hr . car b runs at the speed of 43 km / h & reaches its destination in 10
39
- h . what is the respective ratio of distances covered by car a & car b ?
 
 
40
  sentences:
41
- - ' '
42
- - R
43
- - ''''
 
 
 
 
 
44
  pipeline_tag: sentence-similarity
45
  library_name: sentence-transformers
46
  ---
@@ -94,9 +108,9 @@ from sentence_transformers import SentenceTransformer
94
  model = SentenceTransformer("sentence_transformers_model_id")
95
  # Run inference
96
  sentences = [
97
- 'car a runs at the speed of 35 km / hr & reaches its destination in 9 hr . car b runs at the speed of 43 km / h & reaches its destination in 10 h . what is the respective ratio of distances covered by car a & car b ?',
98
- ' ',
99
- "'",
100
  ]
101
  embeddings = model.encode(sentences)
102
  print(embeddings.shape)
@@ -153,16 +167,16 @@ You can finetune this model on your own dataset.
153
  * Size: 268,861 training samples
154
  * Columns: <code>sentence_0</code> and <code>sentence_1</code>
155
  * Approximate statistics based on the first 1000 samples:
156
- | | sentence_0 | sentence_1 |
157
- |:--------|:-----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|
158
- | type | string | string |
159
- | details | <ul><li>min: 4 tokens</li><li>mean: 48.06 tokens</li><li>max: 128 tokens</li></ul> | <ul><li>min: 0 tokens</li><li>mean: 0.98 tokens</li><li>max: 1 tokens</li></ul> |
160
  * Samples:
161
- | sentence_0 | sentence_1 |
162
- |:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------|
163
- | <code>What is known to cause pedal Botryomycosis</code> | <code>A</code> |
164
- | <code>Two friends plan to walk along a 33-km trail, starting at opposite ends of the trail at the same time. If Friend P's rate is 20% faster than Friend Q's, how many kilometers will Friend P have walked when they pass each other?</code> | <code>5</code> |
165
- | <code>The average age of a husband and a wife is 23 years when they were married five years ago but now the average age of the husband, wife and child is 20 years(the child was born during the interval). What is the present age of the child?</code> | <code>)</code> |
166
  * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
167
  ```json
168
  {
@@ -174,9 +188,9 @@ You can finetune this model on your own dataset.
174
  ### Training Hyperparameters
175
  #### Non-Default Hyperparameters
176
 
177
- - `per_device_train_batch_size`: 16
178
- - `per_device_eval_batch_size`: 16
179
- - `num_train_epochs`: 1
180
  - `fp16`: True
181
  - `multi_dataset_batch_sampler`: round_robin
182
 
@@ -187,8 +201,8 @@ You can finetune this model on your own dataset.
187
  - `do_predict`: False
188
  - `eval_strategy`: no
189
  - `prediction_loss_only`: True
190
- - `per_device_train_batch_size`: 16
191
- - `per_device_eval_batch_size`: 16
192
  - `per_gpu_train_batch_size`: None
193
  - `per_gpu_eval_batch_size`: None
194
  - `gradient_accumulation_steps`: 1
@@ -200,7 +214,7 @@ You can finetune this model on your own dataset.
200
  - `adam_beta2`: 0.999
201
  - `adam_epsilon`: 1e-08
202
  - `max_grad_norm`: 1
203
- - `num_train_epochs`: 1
204
  - `max_steps`: -1
205
  - `lr_scheduler_type`: linear
206
  - `lr_scheduler_kwargs`: {}
@@ -302,45 +316,45 @@ You can finetune this model on your own dataset.
302
  ### Training Logs
303
  | Epoch | Step | Training Loss |
304
  |:------:|:-----:|:-------------:|
305
- | 0.0298 | 500 | 2.7788 |
306
- | 0.0595 | 1000 | 2.5217 |
307
- | 0.0893 | 1500 | 2.5004 |
308
- | 0.1190 | 2000 | 2.5451 |
309
- | 0.1488 | 2500 | 2.5165 |
310
- | 0.1785 | 3000 | 2.5384 |
311
- | 0.2083 | 3500 | 2.4994 |
312
- | 0.2380 | 4000 | 0.0 |
313
- | 0.2678 | 4500 | 0.0 |
314
- | 0.2975 | 5000 | 0.0 |
315
- | 0.3273 | 5500 | 0.0 |
316
- | 0.3571 | 6000 | 0.0 |
317
- | 0.3868 | 6500 | 0.0 |
318
- | 0.4166 | 7000 | 0.0 |
319
- | 0.4463 | 7500 | 0.0 |
320
- | 0.4761 | 8000 | 0.0 |
321
- | 0.5058 | 8500 | 0.0 |
322
- | 0.5356 | 9000 | 0.0 |
323
- | 0.5653 | 9500 | 0.0 |
324
- | 0.5951 | 10000 | 0.0 |
325
- | 0.6249 | 10500 | 0.0 |
326
- | 0.6546 | 11000 | 0.0 |
327
- | 0.6844 | 11500 | 0.0 |
328
- | 0.7141 | 12000 | 0.0 |
329
- | 0.7439 | 12500 | 0.0 |
330
- | 0.7736 | 13000 | 0.0 |
331
- | 0.8034 | 13500 | 0.0 |
332
- | 0.8331 | 14000 | 0.0 |
333
- | 0.8629 | 14500 | 0.0 |
334
- | 0.8926 | 15000 | 0.0 |
335
- | 0.9224 | 15500 | 0.0 |
336
- | 0.9522 | 16000 | 0.0 |
337
- | 0.9819 | 16500 | 0.0 |
338
 
339
 
340
  ### Framework Versions
341
  - Python: 3.11.13
342
  - Sentence Transformers: 4.1.0
343
- - Transformers: 4.52.3
344
  - PyTorch: 2.6.0+cu124
345
  - Accelerate: 1.7.0
346
  - Datasets: 3.6.0
 
8
  - loss:MultipleNegativesRankingLoss
9
  base_model: Qwen/Qwen3-0.6B-Base
10
  widget:
11
+ - source_sentence: 'There are seven thieves. They stole diamonds from a diamond merchant
12
+ and ran away. While running, night sets in and they decide to rest in the jungle.
13
+
14
+ When everybody was sleeping, two of them woke up and decided to divide the diamonds
15
+ equally among themselves. But when they divided the diamonds equally, one diamond
16
+ is left.
17
+
18
+ So they woke up the 3rd thief and tried to divide the diamonds equally again but
19
+ still one diamond was left. Then they woke up the 4th thief to divide the diamonds
20
+ equally again, and again one diamond was left. This happened with the 5th and
21
+ 6th thief – one diamond was still left.
22
+
23
+ Finally, they woke up the 7th thief and this time the diamonds were divided equally.
24
+
25
+ How many diamonds did they steal in total?'
26
  sentences:
 
27
  - ''''
28
  - ''''
29
+ - e
30
+ - source_sentence: 'praveen starts business with rs . 3220 and after 5 months , hari
31
+ joins with praveen as his partner . after a year , the profit is divided in the
32
+ ratio 2 : 3 . what is hari ’ s contribution in the capital ?'
33
  sentences:
34
+ - s
35
+ - '5'
36
+ - '['
37
+ - source_sentence: 'Which of the following is material of choice in class V
38
+
39
+ cavity with abfraction?'
40
  sentences:
41
+ - '['
42
+ - t
43
+ - G
44
+ - source_sentence: A right circular cylinder has a height of 25 and a radius of 5.
45
+ A rectangular solid with a height of 15 and a square base, is placed in the cylinder
46
+ such that each of the corners of the solid is tangent to the cylinder wall. Liquid
47
+ is then poured into the cylinder such that it reaches the rim. What is the volume
48
+ of the liquid?
49
  sentences:
50
+ - '5'
51
+ - '['
52
+ - '2'
53
+ - source_sentence: Cerebral angiography was performed by -
54
+ sentences:
55
+ - S
56
+ - t
57
+ - '2'
58
  pipeline_tag: sentence-similarity
59
  library_name: sentence-transformers
60
  ---
 
108
  model = SentenceTransformer("sentence_transformers_model_id")
109
  # Run inference
110
  sentences = [
111
+ 'Cerebral angiography was performed by -',
112
+ 'S',
113
+ '2',
114
  ]
115
  embeddings = model.encode(sentences)
116
  print(embeddings.shape)
 
167
  * Size: 268,861 training samples
168
  * Columns: <code>sentence_0</code> and <code>sentence_1</code>
169
  * Approximate statistics based on the first 1000 samples:
170
+ | | sentence_0 | sentence_1 |
171
+ |:--------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|
172
+ | type | string | string |
173
+ | details | <ul><li>min: 5 tokens</li><li>mean: 48.3 tokens</li><li>max: 128 tokens</li></ul> | <ul><li>min: 0 tokens</li><li>mean: 0.97 tokens</li><li>max: 1 tokens</li></ul> |
174
  * Samples:
175
+ | sentence_0 | sentence_1 |
176
+ |:--------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------|
177
+ | <code>A 1200 m long train crosses a tree in 120 sec, how much time will I take to pass a platform 1100 m long?</code> | <code>'</code> |
178
+ | <code>What is the opposite of rarefaction zones, where air molecules in waves are loosely packed?</code> | <code>[</code> |
179
+ | <code>if w is 40 percent less than e , e is 40 percent less than y , and z is 46 percent less than y , then z is greater than w by what percent of w ?</code> | <code>%</code> |
180
  * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
181
  ```json
182
  {
 
188
  ### Training Hyperparameters
189
  #### Non-Default Hyperparameters
190
 
191
+ - `per_device_train_batch_size`: 64
192
+ - `per_device_eval_batch_size`: 64
193
+ - `num_train_epochs`: 4
194
  - `fp16`: True
195
  - `multi_dataset_batch_sampler`: round_robin
196
 
 
201
  - `do_predict`: False
202
  - `eval_strategy`: no
203
  - `prediction_loss_only`: True
204
+ - `per_device_train_batch_size`: 64
205
+ - `per_device_eval_batch_size`: 64
206
  - `per_gpu_train_batch_size`: None
207
  - `per_gpu_eval_batch_size`: None
208
  - `gradient_accumulation_steps`: 1
 
214
  - `adam_beta2`: 0.999
215
  - `adam_epsilon`: 1e-08
216
  - `max_grad_norm`: 1
217
+ - `num_train_epochs`: 4
218
  - `max_steps`: -1
219
  - `lr_scheduler_type`: linear
220
  - `lr_scheduler_kwargs`: {}
 
316
  ### Training Logs
317
  | Epoch | Step | Training Loss |
318
  |:------:|:-----:|:-------------:|
319
+ | 0.1190 | 500 | 4.0939 |
320
+ | 0.2380 | 1000 | 3.7716 |
321
+ | 0.3571 | 1500 | 0.0 |
322
+ | 0.4761 | 2000 | 0.0 |
323
+ | 0.5951 | 2500 | 0.0 |
324
+ | 0.7141 | 3000 | 0.0 |
325
+ | 0.8331 | 3500 | 0.0 |
326
+ | 0.9522 | 4000 | 0.0 |
327
+ | 1.0712 | 4500 | 0.0 |
328
+ | 1.1902 | 5000 | 0.0 |
329
+ | 1.3092 | 5500 | 0.0 |
330
+ | 1.4282 | 6000 | 0.0 |
331
+ | 1.5473 | 6500 | 0.0 |
332
+ | 1.6663 | 7000 | 0.0 |
333
+ | 1.7853 | 7500 | 0.0 |
334
+ | 1.9043 | 8000 | 0.0 |
335
+ | 2.0233 | 8500 | 0.0 |
336
+ | 2.1423 | 9000 | 0.0 |
337
+ | 2.2614 | 9500 | 0.0 |
338
+ | 2.3804 | 10000 | 0.0 |
339
+ | 2.4994 | 10500 | 0.0 |
340
+ | 2.6184 | 11000 | 0.0 |
341
+ | 2.7374 | 11500 | 0.0 |
342
+ | 2.8565 | 12000 | 0.0 |
343
+ | 2.9755 | 12500 | 0.0 |
344
+ | 3.0945 | 13000 | 0.0 |
345
+ | 3.2135 | 13500 | 0.0 |
346
+ | 3.3325 | 14000 | 0.0 |
347
+ | 3.4516 | 14500 | 0.0 |
348
+ | 3.5706 | 15000 | 0.0 |
349
+ | 3.6896 | 15500 | 0.0 |
350
+ | 3.8086 | 16000 | 0.0 |
351
+ | 3.9276 | 16500 | 0.0 |
352
 
353
 
354
  ### Framework Versions
355
  - Python: 3.11.13
356
  - Sentence Transformers: 4.1.0
357
+ - Transformers: 4.52.4
358
  - PyTorch: 2.6.0+cu124
359
  - Accelerate: 1.7.0
360
  - Datasets: 3.6.0
config.json CHANGED
@@ -23,7 +23,7 @@
23
  "sliding_window": null,
24
  "tie_word_embeddings": true,
25
  "torch_dtype": "float32",
26
- "transformers_version": "4.52.3",
27
  "use_cache": true,
28
  "use_sliding_window": false,
29
  "vocab_size": 151936
 
23
  "sliding_window": null,
24
  "tie_word_embeddings": true,
25
  "torch_dtype": "float32",
26
+ "transformers_version": "4.52.4",
27
  "use_cache": true,
28
  "use_sliding_window": false,
29
  "vocab_size": 151936
config_sentence_transformers.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "__version__": {
3
  "sentence_transformers": "4.1.0",
4
- "transformers": "4.52.3",
5
  "pytorch": "2.6.0+cu124"
6
  },
7
  "prompts": {},
 
1
  {
2
  "__version__": {
3
  "sentence_transformers": "4.1.0",
4
+ "transformers": "4.52.4",
5
  "pytorch": "2.6.0+cu124"
6
  },
7
  "prompts": {},