Matjac5 commited on
Commit
cf70aa9
·
verified ·
1 Parent(s): d5b47fc

Delete README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -349
README.md DELETED
@@ -1,349 +0,0 @@
1
- ---
2
- tags:
3
- - sentence-transformers
4
- - sentence-similarity
5
- - feature-extraction
6
- - generated_from_trainer
7
- - dataset_size:2000
8
- - loss:MultipleNegativesRankingLoss
9
- base_model: Qwen/Qwen3-0.6B
10
- widget:
11
- - source_sentence: am was a pretty bad neighbour. He was annoying, and considered
12
- to be a what?
13
- sentences:
14
- - harm's way
15
- - hunting lodge
16
- - bore
17
- - source_sentence: Where does someone obtain a frying pan?
18
- sentences:
19
- - dale
20
- - enjoyment
21
- - department store
22
- - source_sentence: Many prison movies take place at what famous prison?
23
- sentences:
24
- - alcatraz
25
- - sail boats
26
- - painful
27
- - source_sentence: Where are you if the person next to you has a briefcase and you're
28
- accused of a misdeed?
29
- sentences:
30
- - afternoon
31
- - experience
32
- - courtroom
33
- - source_sentence: Where could you find a jellyfish that does not exist?
34
- sentences:
35
- - cartoon
36
- - energy
37
- - public building
38
- pipeline_tag: sentence-similarity
39
- library_name: sentence-transformers
40
- ---
41
-
42
- # SentenceTransformer based on Qwen/Qwen3-0.6B
43
-
44
- This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [Qwen/Qwen3-0.6B](https://huggingface.co/Qwen/Qwen3-0.6B). 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.
45
-
46
- ## Model Details
47
-
48
- ### Model Description
49
- - **Model Type:** Sentence Transformer
50
- - **Base model:** [Qwen/Qwen3-0.6B](https://huggingface.co/Qwen/Qwen3-0.6B) <!-- at revision e6de91484c29aa9480d55605af694f39b081c455 -->
51
- - **Maximum Sequence Length:** 128 tokens
52
- - **Output Dimensionality:** 1024 dimensions
53
- - **Similarity Function:** Cosine Similarity
54
- <!-- - **Training Dataset:** Unknown -->
55
- <!-- - **Language:** Unknown -->
56
- <!-- - **License:** Unknown -->
57
-
58
- ### Model Sources
59
-
60
- - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
61
- - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
62
- - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
63
-
64
- ### Full Model Architecture
65
-
66
- ```
67
- SentenceTransformer(
68
- (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: Qwen3Model
69
- (1): Pooling({'word_embedding_dimension': 1024, '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})
70
- )
71
- ```
72
-
73
- ## Usage
74
-
75
- ### Direct Usage (Sentence Transformers)
76
-
77
- First install the Sentence Transformers library:
78
-
79
- ```bash
80
- pip install -U sentence-transformers
81
- ```
82
-
83
- Then you can load this model and run inference.
84
- ```python
85
- from sentence_transformers import SentenceTransformer
86
-
87
- # Download from the 🤗 Hub
88
- model = SentenceTransformer("sentence_transformers_model_id")
89
- # Run inference
90
- sentences = [
91
- 'Where could you find a jellyfish that does not exist?',
92
- 'cartoon',
93
- 'public building',
94
- ]
95
- embeddings = model.encode(sentences)
96
- print(embeddings.shape)
97
- # [3, 1024]
98
-
99
- # Get the similarity scores for the embeddings
100
- similarities = model.similarity(embeddings, embeddings)
101
- print(similarities.shape)
102
- # [3, 3]
103
- ```
104
-
105
- <!--
106
- ### Direct Usage (Transformers)
107
-
108
- <details><summary>Click to see the direct usage in Transformers</summary>
109
-
110
- </details>
111
- -->
112
-
113
- <!--
114
- ### Downstream Usage (Sentence Transformers)
115
-
116
- You can finetune this model on your own dataset.
117
-
118
- <details><summary>Click to expand</summary>
119
-
120
- </details>
121
- -->
122
-
123
- <!--
124
- ### Out-of-Scope Use
125
-
126
- *List how the model may foreseeably be misused and address what users ought not to do with the model.*
127
- -->
128
-
129
- <!--
130
- ## Bias, Risks and Limitations
131
-
132
- *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
133
- -->
134
-
135
- <!--
136
- ### Recommendations
137
-
138
- *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
139
- -->
140
-
141
- ## Training Details
142
-
143
- ### Training Dataset
144
-
145
- #### Unnamed Dataset
146
-
147
- * Size: 2,000 training samples
148
- * Columns: <code>sentence_0</code> and <code>sentence_1</code>
149
- * Approximate statistics based on the first 1000 samples:
150
- | | sentence_0 | sentence_1 |
151
- |:--------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|
152
- | type | string | string |
153
- | details | <ul><li>min: 5 tokens</li><li>mean: 15.13 tokens</li><li>max: 49 tokens</li></ul> | <ul><li>min: 1 tokens</li><li>mean: 2.06 tokens</li><li>max: 6 tokens</li></ul> |
154
- * Samples:
155
- | sentence_0 | sentence_1 |
156
- |:--------------------------------------------------------------------------|:--------------------------|
157
- | <code>Where could you put some olives to keep them fresh?</code> | <code>refrigerator</code> |
158
- | <code>A monkey is native to what place that usually has no people?</code> | <code>rain forest</code> |
159
- | <code>What do criminals do when they are caught?</code> | <code>serving time</code> |
160
- * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
161
- ```json
162
- {
163
- "scale": 20.0,
164
- "similarity_fct": "cos_sim"
165
- }
166
- ```
167
-
168
- ### Training Hyperparameters
169
- #### Non-Default Hyperparameters
170
-
171
- - `per_device_train_batch_size`: 16
172
- - `per_device_eval_batch_size`: 16
173
- - `num_train_epochs`: 2
174
- - `multi_dataset_batch_sampler`: round_robin
175
-
176
- #### All Hyperparameters
177
- <details><summary>Click to expand</summary>
178
-
179
- - `overwrite_output_dir`: False
180
- - `do_predict`: False
181
- - `eval_strategy`: no
182
- - `prediction_loss_only`: True
183
- - `per_device_train_batch_size`: 16
184
- - `per_device_eval_batch_size`: 16
185
- - `per_gpu_train_batch_size`: None
186
- - `per_gpu_eval_batch_size`: None
187
- - `gradient_accumulation_steps`: 1
188
- - `eval_accumulation_steps`: None
189
- - `torch_empty_cache_steps`: None
190
- - `learning_rate`: 5e-05
191
- - `weight_decay`: 0.0
192
- - `adam_beta1`: 0.9
193
- - `adam_beta2`: 0.999
194
- - `adam_epsilon`: 1e-08
195
- - `max_grad_norm`: 1
196
- - `num_train_epochs`: 2
197
- - `max_steps`: -1
198
- - `lr_scheduler_type`: linear
199
- - `lr_scheduler_kwargs`: {}
200
- - `warmup_ratio`: 0.0
201
- - `warmup_steps`: 0
202
- - `log_level`: passive
203
- - `log_level_replica`: warning
204
- - `log_on_each_node`: True
205
- - `logging_nan_inf_filter`: True
206
- - `save_safetensors`: True
207
- - `save_on_each_node`: False
208
- - `save_only_model`: False
209
- - `restore_callback_states_from_checkpoint`: False
210
- - `no_cuda`: False
211
- - `use_cpu`: False
212
- - `use_mps_device`: False
213
- - `seed`: 42
214
- - `data_seed`: None
215
- - `jit_mode_eval`: False
216
- - `use_ipex`: False
217
- - `bf16`: False
218
- - `fp16`: False
219
- - `fp16_opt_level`: O1
220
- - `half_precision_backend`: auto
221
- - `bf16_full_eval`: False
222
- - `fp16_full_eval`: False
223
- - `tf32`: None
224
- - `local_rank`: 0
225
- - `ddp_backend`: None
226
- - `tpu_num_cores`: None
227
- - `tpu_metrics_debug`: False
228
- - `debug`: []
229
- - `dataloader_drop_last`: False
230
- - `dataloader_num_workers`: 0
231
- - `dataloader_prefetch_factor`: None
232
- - `past_index`: -1
233
- - `disable_tqdm`: False
234
- - `remove_unused_columns`: True
235
- - `label_names`: None
236
- - `load_best_model_at_end`: False
237
- - `ignore_data_skip`: False
238
- - `fsdp`: []
239
- - `fsdp_min_num_params`: 0
240
- - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
241
- - `fsdp_transformer_layer_cls_to_wrap`: None
242
- - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
243
- - `deepspeed`: None
244
- - `label_smoothing_factor`: 0.0
245
- - `optim`: adamw_torch
246
- - `optim_args`: None
247
- - `adafactor`: False
248
- - `group_by_length`: False
249
- - `length_column_name`: length
250
- - `ddp_find_unused_parameters`: None
251
- - `ddp_bucket_cap_mb`: None
252
- - `ddp_broadcast_buffers`: False
253
- - `dataloader_pin_memory`: True
254
- - `dataloader_persistent_workers`: False
255
- - `skip_memory_metrics`: True
256
- - `use_legacy_prediction_loop`: False
257
- - `push_to_hub`: False
258
- - `resume_from_checkpoint`: None
259
- - `hub_model_id`: None
260
- - `hub_strategy`: every_save
261
- - `hub_private_repo`: None
262
- - `hub_always_push`: False
263
- - `gradient_checkpointing`: False
264
- - `gradient_checkpointing_kwargs`: None
265
- - `include_inputs_for_metrics`: False
266
- - `include_for_metrics`: []
267
- - `eval_do_concat_batches`: True
268
- - `fp16_backend`: auto
269
- - `push_to_hub_model_id`: None
270
- - `push_to_hub_organization`: None
271
- - `mp_parameters`:
272
- - `auto_find_batch_size`: False
273
- - `full_determinism`: False
274
- - `torchdynamo`: None
275
- - `ray_scope`: last
276
- - `ddp_timeout`: 1800
277
- - `torch_compile`: False
278
- - `torch_compile_backend`: None
279
- - `torch_compile_mode`: None
280
- - `include_tokens_per_second`: False
281
- - `include_num_input_tokens_seen`: False
282
- - `neftune_noise_alpha`: None
283
- - `optim_target_modules`: None
284
- - `batch_eval_metrics`: False
285
- - `eval_on_start`: False
286
- - `use_liger_kernel`: False
287
- - `eval_use_gather_object`: False
288
- - `average_tokens_across_devices`: False
289
- - `prompts`: None
290
- - `batch_sampler`: batch_sampler
291
- - `multi_dataset_batch_sampler`: round_robin
292
-
293
- </details>
294
-
295
- ### Framework Versions
296
- - Python: 3.12.3
297
- - Sentence Transformers: 4.1.0
298
- - Transformers: 4.52.2
299
- - PyTorch: 2.7.0+cu126
300
- - Accelerate: 1.7.0
301
- - Datasets: 3.6.0
302
- - Tokenizers: 0.21.1
303
-
304
- ## Citation
305
-
306
- ### BibTeX
307
-
308
- #### Sentence Transformers
309
- ```bibtex
310
- @inproceedings{reimers-2019-sentence-bert,
311
- title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
312
- author = "Reimers, Nils and Gurevych, Iryna",
313
- booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
314
- month = "11",
315
- year = "2019",
316
- publisher = "Association for Computational Linguistics",
317
- url = "https://arxiv.org/abs/1908.10084",
318
- }
319
- ```
320
-
321
- #### MultipleNegativesRankingLoss
322
- ```bibtex
323
- @misc{henderson2017efficient,
324
- title={Efficient Natural Language Response Suggestion for Smart Reply},
325
- author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
326
- year={2017},
327
- eprint={1705.00652},
328
- archivePrefix={arXiv},
329
- primaryClass={cs.CL}
330
- }
331
- ```
332
-
333
- <!--
334
- ## Glossary
335
-
336
- *Clearly define terms in order to be accessible across audiences.*
337
- -->
338
-
339
- <!--
340
- ## Model Card Authors
341
-
342
- *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
343
- -->
344
-
345
- <!--
346
- ## Model Card Contact
347
-
348
- *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
349
- -->