FINGU-AI commited on
Commit
fa038e6
1 Parent(s): 90b08e0

Upload folder using huggingface_hub

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 1536,
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
+ }
2_Dense/config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"in_features": 1536, "out_features": 1024, "bias": true, "activation_function": "torch.nn.modules.linear.Identity"}
2_Dense/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32700832aa24ced2f7bd6208eb3f39989029ad7c61a4dc93ebf4acf2af6a34ba
3
+ size 6295712
README.md CHANGED
@@ -1,3 +1,437 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: dunzhang/stella_en_1.5B_v5
3
+ datasets: []
4
+ language: []
5
+ library_name: sentence-transformers
6
+ pipeline_tag: sentence-similarity
7
+ tags:
8
+ - sentence-transformers
9
+ - sentence-similarity
10
+ - feature-extraction
11
+ - generated_from_trainer
12
+ - dataset_size:99000
13
+ - loss:MultipleNegativesSymmetricRankingLoss
14
+ widget:
15
+ - source_sentence: 'Instruct: Given a web search query, retrieve relevant passages
16
+ that answer the query.
17
+
18
+ Query: Glay'
19
+ sentences:
20
+ - The Theory of Good and Evil is a 1907 book about ethics by the English philosopher
21
+ Hastings Rashdall, in which the author expounds a theory he calls "ideal utilitarianism".
22
+ It has been seen as Rashdall's most important philosophical work.
23
+ - GLAY is a Japanese rock band , formed in Hakodate in 1988 . Glay primarily composes
24
+ songs in the rock and pop genres , but they have also arranged songs using elements
25
+ from a wide variety of genres , including punk , electronic , R&B , progressive
26
+ rock , folk , reggae , gospel , and ska . Originally a visual kei band , the group
27
+ slowly shifted to less dramatic attire through the years . As of 2008 , Glay had
28
+ sold an estimated 51 million records ; 28 million singles and 23 million albums
29
+ , making them one of the top ten best-selling artists of all time in Japan .
30
+ - Aashirwad is a 1968 Bollywood film , directed by Hrishikesh Mukherjee . The film
31
+ stars Ashok Kumar and Sanjeev Kumar . The film is notable for its inclusion
32
+ of a rap-like song performed by Ashok Kumar , `` Rail Gaadi '' .
33
+ - source_sentence: 'Instruct: Given a web search query, retrieve relevant passages
34
+ that answer the query.
35
+
36
+ Query: Indexing does not work with index package'
37
+ sentences:
38
+ - 'I am trying to do indexing with the following code: \documentclass[a4paper]{article} \usepackage{index} \makeindex \newindex{aut}{adx}{and}{Name
39
+ Index} \begin{document} Hellow \index[aut]{FiRST} \printindex[aut] \end{document} Acccording
40
+ to documention of the `index` package it should work. But makeindex creates empty
41
+ `.idx` and `.ind`. If I run code like this: \documentclass[a4paper]{article} \usepackage{index} \makeindex \begin{document} Hellow
42
+ \index{FiRST} \printindex \end{document} It runs. But I need to have
43
+ user-defined index. Please help me with it. I''ve searched for several hours on
44
+ internet, but without success.'
45
+ - 'Body materials may include, but are not limited to, any of these materials:'
46
+ - Berberis aemulans is a shrub endemic to the region of Sichuan in southern China.
47
+ It grows there in thickets and on slopes at elevations of 2900-3200 m.Berberis
48
+ aemulans is a deciduous shrub up to 2 m tall, with spines along the branches.
49
+ Leaves are simple, elliptical to ovate, up to 4 cm long, lighter in color on the
50
+ underside because of a waxy layer. Flowers are in simple racemes of only a few
51
+ flowers. Berries egg-shaped, orange, up to 16 mm long.
52
+ - source_sentence: 'Instruct: Given a web search query, retrieve relevant passages
53
+ that answer the query.
54
+
55
+ Query: Parodi''s hemispingus'
56
+ sentences:
57
+ - Another event dubbed a "Battle of the Sexes" took place during the 1998 Australian
58
+ Open[51] between Karsten Braasch and the Williams sisters. Venus and Serena Williams
59
+ had claimed that they could beat any male player ranked outside the world's top
60
+ 200, so Braasch, then ranked 203rd, challenged them both. Braasch was described
61
+ by one journalist as "a man whose training regime centered around a pack of cigarettes
62
+ and more than a couple bottles of ice cold lager".[52][51] The matches took place
63
+ on court number 12 in Melbourne Park,[53] after Braasch had finished a round of
64
+ golf and two shandies. He first took on Serena and after leading 5–0, beat her
65
+ 6–1. Venus then walked on court and again Braasch was victorious, this time winning
66
+ 6–2.[54] Braasch said afterwards, "500 and above, no chance". He added that he
67
+ had played like someone ranked 600th in order to keep the game "fun".[55] Braasch
68
+ said the big difference was that men can chase down shots much easier, and that
69
+ men put spin on the ball that the women can't handle. The Williams sisters adjusted
70
+ their claim to beating men outside the top 350.[51]
71
+ - The Parodi 's hemispingus ( Hemispingus parodii ) is a species of bird in the
72
+ family Thraupidae that is endemic to Peru . Its natural habitat is subtropical
73
+ or tropical moist montane forests .
74
+ - 'I need help because my Minecraft launcher doesn''t work... It''s been a long
75
+ time I haven''t played Minecraft and until now it worked nicely. But now that
76
+ I want to play on it again and I run the launcher, this appears (click images
77
+ to enlarge): ![enter image description here](http://i.stack.imgur.com/hvD9R.png)
78
+ At the bottom left of the screen the profile names keep loading (normally my username
79
+ appears in the box) and as you can see I am unable to click on the "Play" button.
80
+ I tried creating another profile but it doesn''t work because soon after they
81
+ ask to enter my Minecraft username and password. The password I entered disappears
82
+ and it keeps loading (I''ve tried waiting like, 30 minutes and it still doesn''t
83
+ work) so this is definitely not normal. ![enter image description here](http://i.stack.imgur.com/yDYjX.png)
84
+ ![enter image description here](http://i.stack.imgur.com/4Nf1L.png) ![enter image
85
+ description here](http://i.stack.imgur.com/T6cJu.png) So basically I can''t play
86
+ on Minecraft anymore (version 1.7.9)... P.S. I use Windows 7.'
87
+ - source_sentence: 'Instruct: Given a web search query, retrieve relevant passages
88
+ that answer the query.
89
+
90
+ Query: Mahabharata'
91
+ sentences:
92
+ - The epic employs the story within a story structure, otherwise known as frametales,
93
+ popular in many Indian religious and non-religious works. It is first recited
94
+ at Takshashila by the sage Vaiśampāyana,[12][13] a disciple of Vyāsa, to the King
95
+ Janamejaya who is the great-grandson of the Pāṇḍava prince Arjuna. The story is
96
+ then recited again by a professional storyteller named Ugraśrava Sauti, many years
97
+ later, to an assemblage of sages performing the 12-year sacrifice for the king
98
+ Saunaka Kulapati in the Naimiśa Forest.
99
+ - 'Guncati (Serbian Cyrillic: Гунцати) is a suburban settlement of Belgrade, the
100
+ capital of Serbia. It is located in the municipality of Barajevo.Guncati is located
101
+ west of the municipal seat of Barajevo, halfway between the Belgrade-Bar railway
102
+ and Ibarska magistrala (Highway of Ibar).It is a rural settlement with a steady
103
+ population growth: from 1,718 (Census 1991) to 2,102 (Census 2002).'
104
+ - Beck 's Brewery , also known as Brauerei Beck & Co. , is a brewery in the northern
105
+ German city of Bremen . In 2001 , Interbrew agreed to buy Brauerei Beck for 1.8
106
+ billion euro ; at that time it was the fourth largest brewer in Germany . US manufacture
107
+ of Beck 's Brew has been based in St. Louis , Missouri , since early 2012 but
108
+ some customers have rebelled against the US market version . Since 2008 , it
109
+ has been owned by the Interbrew subsidiary of Anheuser-Busch InBev SA/NV . The
110
+ Beck 's Art Label Campaign has offered artists the opportunity to provide designs
111
+ to replace the brand 's label . It started in London in 1987 with Gilbert and
112
+ George . The artists created an art label , because Beck 's sponsored their retrospective
113
+ at the Hayward Gallery . The labels of the 2000 limited edition Beck 's bottles
114
+ were matching their exhibition poster . Other participants of the Art Label Campaign
115
+ are members of the loose group `` Young British Artists '' and nominees or winners
116
+ of the Turner Prize . Damien Hirst for example , designed a label for Beck 's
117
+ in 1995 , showing his famous spots . In 2000 , Tracey Emin created a label , which
118
+ shows herself , posing in a bathtub . Furthermore , Rachel Whiteread designed
119
+ a label in 1993 , presenting her artwork `` house '' , which was also financed
120
+ by Beck 's . The Art Label Campaign has also been parodied by Matthew Higgs ,
121
+ who is a member of the British art collective `` Bank '' . In the Bank exhibition
122
+ `` The Charge of the Light Brigade '' in 1995 , he brewed a beer , called `` Kunstlerbrau
123
+ '' . In 2012 , Beck 's started giving young and independent musicians the opportunity
124
+ to design a label for the Beck 's bottle . Beck 's summer 2009 limited-edition
125
+ labels were designed by the musical groups Hard-Fi and Ladyhawke .
126
+ - source_sentence: 'Instruct: Given a web search query, retrieve relevant passages
127
+ that answer the query.
128
+
129
+ Query: Ahu A Umi Heiau'
130
+ sentences:
131
+ - The 1967 All-Ireland Intermediate Hurling Championship was the seventh staging
132
+ of the All-Ireland hurling championship. The championship ended on 17 September
133
+ 1967.Tipperary were the defending champions, however, they were defeated in the
134
+ provincial championship. London won the title after defeating Cork by 1-9 to 1-5
135
+ in the final.
136
+ - 'The digit ratio is the ratio of the lengths of different digits or fingers typically
137
+ measured from the midpoint of bottom crease ( where the finger joins the hand
138
+ ) to the tip of the finger . It has been suggested by some scientists that the
139
+ ratio of two digits in particular , the 2nd ( index finger ) and 4th ( ring finger
140
+ ) , is affected by exposure to androgens , e.g. , testosterone while in the uterus
141
+ and that this 2D :4 D ratio can be considered a crude measure for prenatal androgen
142
+ exposure , with lower 2D :4 D ratios pointing to higher prenatal androgen exposure
143
+ . The 2D :4 D ratio is calculated by dividing the length of the index finger of
144
+ a given hand by the length of the ring finger of the same hand . A longer index
145
+ finger will result in a ratio higher than 1 , while a longer ring finger will
146
+ result in a ratio lower than 1 . The 2D :4 D digit ratio is sexually dimorphic
147
+ : although the second digit is typically shorter in both females and males , the
148
+ difference between the lengths of the two digits is greater in males than in females
149
+ . A number of studies have shown a correlation between the 2D :4 D digit ratio
150
+ and various physical and behavioral traits .'
151
+ - Ahu A ʻ Umi Heiau means "shrine at the temple of ʻ Umi" in the Hawaiian Language.
152
+ ---
153
+
154
+ # SentenceTransformer based on dunzhang/stella_en_1.5B_v5
155
+
156
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [dunzhang/stella_en_1.5B_v5](https://huggingface.co/dunzhang/stella_en_1.5B_v5). It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
157
+
158
+ ## Model Details
159
+
160
+ ### Model Description
161
+ - **Model Type:** Sentence Transformer
162
+ - **Base model:** [dunzhang/stella_en_1.5B_v5](https://huggingface.co/dunzhang/stella_en_1.5B_v5) <!-- at revision 129dc50d3ca5f0f5ee0ce8944f65a8553c0f26e0 -->
163
+ - **Maximum Sequence Length:** 8096 tokens
164
+ - **Output Dimensionality:** 1024 tokens
165
+ - **Similarity Function:** Cosine Similarity
166
+ <!-- - **Training Dataset:** Unknown -->
167
+ <!-- - **Language:** Unknown -->
168
+ <!-- - **License:** Unknown -->
169
+
170
+ ### Model Sources
171
+
172
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
173
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
174
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
175
+
176
+ ### Full Model Architecture
177
+
178
+ ```
179
+ SentenceTransformer(
180
+ (0): Transformer({'max_seq_length': 8096, 'do_lower_case': False}) with Transformer model: Qwen2Model
181
+ (1): Pooling({'word_embedding_dimension': 1536, '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})
182
+ (2): Dense({'in_features': 1536, 'out_features': 1024, 'bias': True, 'activation_function': 'torch.nn.modules.linear.Identity'})
183
+ )
184
+ ```
185
+
186
+ ## Usage
187
+
188
+ ### Direct Usage (Sentence Transformers)
189
+
190
+ First install the Sentence Transformers library:
191
+
192
+ ```bash
193
+ pip install -U sentence-transformers
194
+ ```
195
+
196
+ Then you can load this model and run inference.
197
+ ```python
198
+ from sentence_transformers import SentenceTransformer
199
+
200
+ # Download from the 🤗 Hub
201
+ model = SentenceTransformer("sentence_transformers_model_id")
202
+ # Run inference
203
+ sentences = [
204
+ 'Instruct: Given a web search query, retrieve relevant passages that answer the query.\nQuery: Ahu A Umi Heiau',
205
+ 'Ahu A ʻ Umi Heiau means "shrine at the temple of ʻ Umi" in the Hawaiian Language.',
206
+ 'The digit ratio is the ratio of the lengths of different digits or fingers typically measured from the midpoint of bottom crease ( where the finger joins the hand ) to the tip of the finger . It has been suggested by some scientists that the ratio of two digits in particular , the 2nd ( index finger ) and 4th ( ring finger ) , is affected by exposure to androgens , e.g. , testosterone while in the uterus and that this 2D :4 D ratio can be considered a crude measure for prenatal androgen exposure , with lower 2D :4 D ratios pointing to higher prenatal androgen exposure . The 2D :4 D ratio is calculated by dividing the length of the index finger of a given hand by the length of the ring finger of the same hand . A longer index finger will result in a ratio higher than 1 , while a longer ring finger will result in a ratio lower than 1 . The 2D :4 D digit ratio is sexually dimorphic : although the second digit is typically shorter in both females and males , the difference between the lengths of the two digits is greater in males than in females . A number of studies have shown a correlation between the 2D :4 D digit ratio and various physical and behavioral traits .',
207
+ ]
208
+ embeddings = model.encode(sentences)
209
+ print(embeddings.shape)
210
+ # [3, 1024]
211
+
212
+ # Get the similarity scores for the embeddings
213
+ similarities = model.similarity(embeddings, embeddings)
214
+ print(similarities.shape)
215
+ # [3, 3]
216
+ ```
217
+
218
+ <!--
219
+ ### Direct Usage (Transformers)
220
+
221
+ <details><summary>Click to see the direct usage in Transformers</summary>
222
+
223
+ </details>
224
+ -->
225
+
226
+ <!--
227
+ ### Downstream Usage (Sentence Transformers)
228
+
229
+ You can finetune this model on your own dataset.
230
+
231
+ <details><summary>Click to expand</summary>
232
+
233
+ </details>
234
+ -->
235
+
236
+ <!--
237
+ ### Out-of-Scope Use
238
+
239
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
240
+ -->
241
+
242
+ <!--
243
+ ## Bias, Risks and Limitations
244
+
245
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
246
+ -->
247
+
248
+ <!--
249
+ ### Recommendations
250
+
251
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
252
+ -->
253
+
254
+ ## Training Details
255
+
256
+ ### Training Hyperparameters
257
+ #### Non-Default Hyperparameters
258
+
259
+ - `eval_strategy`: steps
260
+ - `per_device_eval_batch_size`: 4
261
+ - `gradient_accumulation_steps`: 4
262
+ - `learning_rate`: 2e-05
263
+ - `max_steps`: 1500
264
+ - `lr_scheduler_type`: cosine
265
+ - `warmup_ratio`: 0.1
266
+ - `warmup_steps`: 5
267
+ - `bf16`: True
268
+ - `tf32`: True
269
+ - `optim`: adamw_torch_fused
270
+ - `gradient_checkpointing`: True
271
+ - `gradient_checkpointing_kwargs`: {'use_reentrant': False}
272
+ - `batch_sampler`: no_duplicates
273
+
274
+ #### All Hyperparameters
275
+ <details><summary>Click to expand</summary>
276
+
277
+ - `overwrite_output_dir`: False
278
+ - `do_predict`: False
279
+ - `eval_strategy`: steps
280
+ - `prediction_loss_only`: True
281
+ - `per_device_train_batch_size`: 8
282
+ - `per_device_eval_batch_size`: 4
283
+ - `per_gpu_train_batch_size`: None
284
+ - `per_gpu_eval_batch_size`: None
285
+ - `gradient_accumulation_steps`: 4
286
+ - `eval_accumulation_steps`: None
287
+ - `learning_rate`: 2e-05
288
+ - `weight_decay`: 0.0
289
+ - `adam_beta1`: 0.9
290
+ - `adam_beta2`: 0.999
291
+ - `adam_epsilon`: 1e-08
292
+ - `max_grad_norm`: 1.0
293
+ - `num_train_epochs`: 3.0
294
+ - `max_steps`: 1500
295
+ - `lr_scheduler_type`: cosine
296
+ - `lr_scheduler_kwargs`: {}
297
+ - `warmup_ratio`: 0.1
298
+ - `warmup_steps`: 5
299
+ - `log_level`: passive
300
+ - `log_level_replica`: warning
301
+ - `log_on_each_node`: True
302
+ - `logging_nan_inf_filter`: True
303
+ - `save_safetensors`: True
304
+ - `save_on_each_node`: False
305
+ - `save_only_model`: False
306
+ - `restore_callback_states_from_checkpoint`: False
307
+ - `no_cuda`: False
308
+ - `use_cpu`: False
309
+ - `use_mps_device`: False
310
+ - `seed`: 42
311
+ - `data_seed`: None
312
+ - `jit_mode_eval`: False
313
+ - `use_ipex`: False
314
+ - `bf16`: True
315
+ - `fp16`: False
316
+ - `fp16_opt_level`: O1
317
+ - `half_precision_backend`: auto
318
+ - `bf16_full_eval`: False
319
+ - `fp16_full_eval`: False
320
+ - `tf32`: True
321
+ - `local_rank`: 0
322
+ - `ddp_backend`: None
323
+ - `tpu_num_cores`: None
324
+ - `tpu_metrics_debug`: False
325
+ - `debug`: []
326
+ - `dataloader_drop_last`: True
327
+ - `dataloader_num_workers`: 0
328
+ - `dataloader_prefetch_factor`: None
329
+ - `past_index`: -1
330
+ - `disable_tqdm`: False
331
+ - `remove_unused_columns`: True
332
+ - `label_names`: None
333
+ - `load_best_model_at_end`: False
334
+ - `ignore_data_skip`: False
335
+ - `fsdp`: []
336
+ - `fsdp_min_num_params`: 0
337
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
338
+ - `fsdp_transformer_layer_cls_to_wrap`: None
339
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
340
+ - `deepspeed`: None
341
+ - `label_smoothing_factor`: 0.0
342
+ - `optim`: adamw_torch_fused
343
+ - `optim_args`: None
344
+ - `adafactor`: False
345
+ - `group_by_length`: False
346
+ - `length_column_name`: length
347
+ - `ddp_find_unused_parameters`: None
348
+ - `ddp_bucket_cap_mb`: None
349
+ - `ddp_broadcast_buffers`: False
350
+ - `dataloader_pin_memory`: True
351
+ - `dataloader_persistent_workers`: False
352
+ - `skip_memory_metrics`: True
353
+ - `use_legacy_prediction_loop`: False
354
+ - `push_to_hub`: False
355
+ - `resume_from_checkpoint`: None
356
+ - `hub_model_id`: None
357
+ - `hub_strategy`: every_save
358
+ - `hub_private_repo`: False
359
+ - `hub_always_push`: False
360
+ - `gradient_checkpointing`: True
361
+ - `gradient_checkpointing_kwargs`: {'use_reentrant': False}
362
+ - `include_inputs_for_metrics`: False
363
+ - `eval_do_concat_batches`: True
364
+ - `fp16_backend`: auto
365
+ - `push_to_hub_model_id`: None
366
+ - `push_to_hub_organization`: None
367
+ - `mp_parameters`:
368
+ - `auto_find_batch_size`: False
369
+ - `full_determinism`: False
370
+ - `torchdynamo`: None
371
+ - `ray_scope`: last
372
+ - `ddp_timeout`: 1800
373
+ - `torch_compile`: False
374
+ - `torch_compile_backend`: None
375
+ - `torch_compile_mode`: None
376
+ - `dispatch_batches`: None
377
+ - `split_batches`: None
378
+ - `include_tokens_per_second`: False
379
+ - `include_num_input_tokens_seen`: False
380
+ - `neftune_noise_alpha`: None
381
+ - `optim_target_modules`: None
382
+ - `batch_eval_metrics`: False
383
+ - `batch_sampler`: no_duplicates
384
+ - `multi_dataset_batch_sampler`: proportional
385
+
386
+ </details>
387
+
388
+ ### Training Logs
389
+ | Epoch | Step | Training Loss | retrival loss |
390
+ |:------:|:----:|:-------------:|:-------------:|
391
+ | 0.6466 | 500 | 0.0424 | 0.0060 |
392
+ | 1.2932 | 1000 | 0.0073 | 0.0040 |
393
+
394
+
395
+ ### Framework Versions
396
+ - Python: 3.10.12
397
+ - Sentence Transformers: 3.0.1
398
+ - Transformers: 4.41.2
399
+ - PyTorch: 2.2.0+cu121
400
+ - Accelerate: 0.32.1
401
+ - Datasets: 2.20.0
402
+ - Tokenizers: 0.19.1
403
+
404
+ ## Citation
405
+
406
+ ### BibTeX
407
+
408
+ #### Sentence Transformers
409
+ ```bibtex
410
+ @inproceedings{reimers-2019-sentence-bert,
411
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
412
+ author = "Reimers, Nils and Gurevych, Iryna",
413
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
414
+ month = "11",
415
+ year = "2019",
416
+ publisher = "Association for Computational Linguistics",
417
+ url = "https://arxiv.org/abs/1908.10084",
418
+ }
419
+ ```
420
+
421
+ <!--
422
+ ## Glossary
423
+
424
+ *Clearly define terms in order to be accessible across audiences.*
425
+ -->
426
+
427
+ <!--
428
+ ## Model Card Authors
429
+
430
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
431
+ -->
432
+
433
+ <!--
434
+ ## Model Card Contact
435
+
436
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
437
+ -->
added_tokens.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "<|endoftext|>": 151643,
3
+ "<|im_end|>": 151645,
4
+ "<|im_start|>": 151644
5
+ }
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dunzhang/stella_en_1.5B_v5",
3
+ "architectures": [
4
+ "Qwen2Model"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "auto_map": {
8
+ "AutoModel": "dunzhang/stella_en_1.5B_v5--modeling_qwen.Qwen2Model",
9
+ "AutoModelForCausalLM": "dunzhang/stella_en_1.5B_v5--modeling_qwen.Qwen2ForCausalLM",
10
+ "AutoModelForSequenceClassification": "dunzhang/stella_en_1.5B_v5--modeling_qwen.Qwen2ForSequenceClassification"
11
+ },
12
+ "bos_token_id": 151643,
13
+ "eos_token_id": 151643,
14
+ "hidden_act": "silu",
15
+ "hidden_size": 1536,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 8960,
18
+ "max_position_embeddings": 131072,
19
+ "max_window_layers": 21,
20
+ "model_type": "qwen2",
21
+ "num_attention_heads": 12,
22
+ "num_hidden_layers": 28,
23
+ "num_key_value_heads": 2,
24
+ "rms_norm_eps": 1e-06,
25
+ "rope_theta": 1000000.0,
26
+ "sliding_window": 131072,
27
+ "tie_word_embeddings": false,
28
+ "torch_dtype": "bfloat16",
29
+ "transformers_version": "4.41.2",
30
+ "use_cache": true,
31
+ "use_sliding_window": false,
32
+ "vocab_size": 151646
33
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.0.1",
4
+ "transformers": "4.41.2",
5
+ "pytorch": "2.2.0+cu121"
6
+ },
7
+ "prompts": {
8
+ "s2p_query": "Instruct: Given a web search query, retrieve relevant passages that answer the query.\nQuery: ",
9
+ "s2s_query": "Instruct: Retrieve semantically similar text.\nQuery: "
10
+ },
11
+ "default_prompt_name": null,
12
+ "similarity_fn_name": "cosine"
13
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ec8a392f95a1f155b4d57972b154604cc70ff25352b4254cad88946040fab0c
3
+ size 3086574240
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Dense",
18
+ "type": "sentence_transformers.models.Dense"
19
+ }
20
+ ]
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11c670a746630413f1f536caf0ba77cb46b08aef11b3845af2114daffd7c83d8
3
+ size 6185963010
rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:159cd6c963eb6b01d75717fcb81492f36eb18f1afa0c1a66f97b36c513bd9f0e
3
+ size 14960
rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d0ce6947923edf04c42bdbbc2f882b694dc995513bb185049afc416a54f51e2
3
+ size 14960
rng_state_2.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b07d14c4598c4559ff05eb9786c7151630ae77cfb373a1716b25fdab1d689f90
3
+ size 14960
rng_state_3.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5227cda574fd4d158de436f6a372175b834abfe7c0d44be4bace22574878d70
3
+ size 14960
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1c966d855305dbdbe3e7516b03da5b72d250a16a08641463cf1ff44c6809016
3
+ size 1064
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 8096,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>"
5
+ ],
6
+ "eos_token": {
7
+ "content": "<|endoftext|>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "pad_token": {
14
+ "content": "<|endoftext|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ }
20
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_eos_token": true,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "additional_special_tokens": [
31
+ "<|im_start|>",
32
+ "<|im_end|>"
33
+ ],
34
+ "auto_map": {
35
+ "AutoTokenizer": [
36
+ "dunzhang/stella_en_1.5B_v5--tokenization_qwen.Qwen2Tokenizer",
37
+ "dunzhang/stella_en_1.5B_v5--tokenization_qwen.Qwen2TokenizerFast"
38
+ ]
39
+ },
40
+ "bos_token": null,
41
+ "chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
42
+ "clean_up_tokenization_spaces": false,
43
+ "eos_token": "<|endoftext|>",
44
+ "errors": "replace",
45
+ "model_max_length": 512,
46
+ "pad_token": "<|endoftext|>",
47
+ "split_special_tokens": false,
48
+ "tokenizer_class": "Qwen2Tokenizer",
49
+ "unk_token": null
50
+ }
trainer_state.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.2932428063368897,
5
+ "eval_steps": 500,
6
+ "global_step": 1000,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.6466214031684449,
13
+ "grad_norm": 1.7960103750228882,
14
+ "learning_rate": 1.5060539027168317e-05,
15
+ "loss": 0.0424,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.6466214031684449,
20
+ "eval_retrival_loss": 0.0060070110484957695,
21
+ "eval_retrival_runtime": 2.5865,
22
+ "eval_retrival_samples_per_second": 386.62,
23
+ "eval_retrival_steps_per_second": 24.357,
24
+ "step": 500
25
+ },
26
+ {
27
+ "epoch": 1.2932428063368897,
28
+ "grad_norm": 0.3418584167957306,
29
+ "learning_rate": 5.030361696847706e-06,
30
+ "loss": 0.0073,
31
+ "step": 1000
32
+ },
33
+ {
34
+ "epoch": 1.2932428063368897,
35
+ "eval_retrival_loss": 0.004016744904220104,
36
+ "eval_retrival_runtime": 2.5619,
37
+ "eval_retrival_samples_per_second": 390.338,
38
+ "eval_retrival_steps_per_second": 24.591,
39
+ "step": 1000
40
+ }
41
+ ],
42
+ "logging_steps": 500,
43
+ "max_steps": 1500,
44
+ "num_input_tokens_seen": 0,
45
+ "num_train_epochs": 2,
46
+ "save_steps": 500,
47
+ "stateful_callbacks": {
48
+ "TrainerControl": {
49
+ "args": {
50
+ "should_epoch_stop": false,
51
+ "should_evaluate": false,
52
+ "should_log": false,
53
+ "should_save": true,
54
+ "should_training_stop": false
55
+ },
56
+ "attributes": {}
57
+ }
58
+ },
59
+ "total_flos": 0.0,
60
+ "train_batch_size": 8,
61
+ "trial_name": null,
62
+ "trial_params": null
63
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49382efc5de7184fd84cdf4d63f6b4a17f5f1b7ed4f3c22b66dfa4d94673ed04
3
+ size 5368
vocab.json ADDED
The diff for this file is too large to render. See raw diff