KyleVoctree commited on
Commit
6aa7409
·
verified ·
1 Parent(s): aa5cb72

Add new SentenceTransformer model

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_Pooling/config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "embedding_dimension": 1024,
3
+ "pooling_mode": "lasttoken",
4
+ "include_prompt": true
5
+ }
README.md ADDED
@@ -0,0 +1,361 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:18851
8
+ - loss:MultipleNegativesRankingLoss
9
+ base_model: microsoft/harrier-oss-v1-0.6b
10
+ widget:
11
+ - source_sentence: Salt-grilled Boneless Galbi
12
+ sentences:
13
+ - 겉절이(1kg)
14
+ - 경포대밥상(떡갈비)(1인)
15
+ - 갈비살소금구이
16
+ - source_sentence: 1인세트마늘탕수육와 쟁반짜장
17
+ sentences:
18
+ - 가리비전복숙회
19
+ - C세트
20
+ - 1인세트마늘탕수육+쟁반짜장
21
+ - source_sentence: Set Menu A (M, 3 Servings) - Braised Boneless Cutlassfish + Grilled
22
+ Whole Cutlassfish
23
+ sentences:
24
+ - SET-A(중3인)순살갈치조림+통갈치구이
25
+ - 갈치구이(중)
26
+ - 가브리살(200g)
27
+ - source_sentence: 갈릭쉬림프피자 (M)
28
+ sentences:
29
+ - 경주법주생막걸리
30
+ - 갈릭쉬림프피자(M)
31
+ - 계란(1개)
32
+ - source_sentence: Braised Cutlassfish Set Menu
33
+ sentences:
34
+ - 갈치조림세트
35
+ - 1인세트마늘탕수육+새우볶음밥
36
+ - 1L보틀아메리카노(ICE)
37
+ pipeline_tag: sentence-similarity
38
+ library_name: sentence-transformers
39
+ ---
40
+
41
+ # SentenceTransformer based on microsoft/harrier-oss-v1-0.6b
42
+
43
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [microsoft/harrier-oss-v1-0.6b](https://huggingface.co/microsoft/harrier-oss-v1-0.6b). It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for retrieval.
44
+
45
+ ## Model Details
46
+
47
+ ### Model Description
48
+ - **Model Type:** Sentence Transformer
49
+ - **Base model:** [microsoft/harrier-oss-v1-0.6b](https://huggingface.co/microsoft/harrier-oss-v1-0.6b) <!-- at revision f9b9dc8d367d443f2479d27aa5d8d2850c0774ee -->
50
+ - **Maximum Sequence Length:** 32768 tokens
51
+ - **Output Dimensionality:** 1024 dimensions
52
+ - **Similarity Function:** Cosine Similarity
53
+ - **Supported Modality:** Text
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/huggingface/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({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'Qwen3Model'})
69
+ (1): Pooling({'embedding_dimension': 1024, 'pooling_mode': 'lasttoken', 'include_prompt': True})
70
+ (2): Normalize({})
71
+ )
72
+ ```
73
+
74
+ ## Usage
75
+
76
+ ### Direct Usage (Sentence Transformers)
77
+
78
+ First install the Sentence Transformers library:
79
+
80
+ ```bash
81
+ pip install -U sentence-transformers
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("Voctree/harrier-oss-v1-0.6b-finetuned")
89
+ # Run inference
90
+ sentences = [
91
+ 'Braised Cutlassfish Set Menu',
92
+ '갈치조림세트',
93
+ '1L보틀아메리카노(ICE)',
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)
102
+ # tensor([[ 1.0000, 0.5813, -0.1134],
103
+ # [ 0.5813, 1.0000, 0.0059],
104
+ # [-0.1134, 0.0059, 1.0000]])
105
+ ```
106
+ <!--
107
+ ### Direct Usage (Transformers)
108
+
109
+ <details><summary>Click to see the direct usage in Transformers</summary>
110
+
111
+ </details>
112
+ -->
113
+
114
+ <!--
115
+ ### Downstream Usage (Sentence Transformers)
116
+
117
+ You can finetune this model on your own dataset.
118
+
119
+ <details><summary>Click to expand</summary>
120
+
121
+ </details>
122
+ -->
123
+
124
+ <!--
125
+ ### Out-of-Scope Use
126
+
127
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
128
+ -->
129
+
130
+ <!--
131
+ ## Bias, Risks and Limitations
132
+
133
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
134
+ -->
135
+
136
+ <!--
137
+ ### Recommendations
138
+
139
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
140
+ -->
141
+
142
+ ## Training Details
143
+
144
+ ### Training Dataset
145
+
146
+ #### Unnamed Dataset
147
+
148
+ * Size: 18,851 training samples
149
+ * Columns: <code>anchor</code> and <code>positive</code>
150
+ * Approximate statistics based on the first 100 samples:
151
+ | | anchor | positive |
152
+ |:---------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
153
+ | type | string | string |
154
+ | modality | text | text |
155
+ | details | <ul><li>min: 3 tokens</li><li>mean: 12.14 tokens</li><li>max: 31 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 10.44 tokens</li><li>max: 20 tokens</li></ul> |
156
+ * Samples:
157
+ | anchor | positive |
158
+ |:---------------------------------------------|:---------------------------|
159
+ | <code>Yemen Mocha Mattari (Signature)</code> | <code>*시그니처*예멘모카마타리</code> |
160
+ | <code>시그니처예멘모카마타리</code> | <code>*시그니처*예멘모카마타리</code> |
161
+ | <code>With Ice</code> | <code>+아이스</code> |
162
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
163
+ ```json
164
+ {
165
+ "scale": 20.0,
166
+ "similarity_fct": "cos_sim",
167
+ "gather_across_devices": false,
168
+ "directions": [
169
+ "query_to_doc"
170
+ ],
171
+ "partition_mode": "joint",
172
+ "hardness_mode": null,
173
+ "hardness_strength": 0.0
174
+ }
175
+ ```
176
+
177
+ ### Training Hyperparameters
178
+ #### Non-Default Hyperparameters
179
+
180
+ - `per_device_train_batch_size`: 32
181
+ - `learning_rate`: 2e-05
182
+ - `warmup_steps`: 0.1
183
+ - `bf16`: True
184
+
185
+ #### All Hyperparameters
186
+ <details><summary>Click to expand</summary>
187
+
188
+ - `per_device_train_batch_size`: 32
189
+ - `num_train_epochs`: 3
190
+ - `max_steps`: -1
191
+ - `learning_rate`: 2e-05
192
+ - `lr_scheduler_type`: linear
193
+ - `lr_scheduler_kwargs`: None
194
+ - `warmup_steps`: 0.1
195
+ - `optim`: adamw_torch_fused
196
+ - `optim_args`: None
197
+ - `weight_decay`: 0.0
198
+ - `adam_beta1`: 0.9
199
+ - `adam_beta2`: 0.999
200
+ - `adam_epsilon`: 1e-08
201
+ - `optim_target_modules`: None
202
+ - `gradient_accumulation_steps`: 1
203
+ - `average_tokens_across_devices`: True
204
+ - `max_grad_norm`: 1.0
205
+ - `label_smoothing_factor`: 0.0
206
+ - `bf16`: True
207
+ - `fp16`: False
208
+ - `bf16_full_eval`: False
209
+ - `fp16_full_eval`: False
210
+ - `tf32`: None
211
+ - `gradient_checkpointing`: False
212
+ - `gradient_checkpointing_kwargs`: None
213
+ - `torch_compile`: False
214
+ - `torch_compile_backend`: None
215
+ - `torch_compile_mode`: None
216
+ - `use_liger_kernel`: False
217
+ - `liger_kernel_config`: None
218
+ - `use_cache`: False
219
+ - `neftune_noise_alpha`: None
220
+ - `torch_empty_cache_steps`: None
221
+ - `auto_find_batch_size`: False
222
+ - `log_on_each_node`: True
223
+ - `logging_nan_inf_filter`: True
224
+ - `include_num_input_tokens_seen`: no
225
+ - `log_level`: passive
226
+ - `log_level_replica`: warning
227
+ - `disable_tqdm`: False
228
+ - `project`: huggingface
229
+ - `trackio_space_id`: None
230
+ - `trackio_bucket_id`: None
231
+ - `trackio_static_space_id`: None
232
+ - `per_device_eval_batch_size`: 8
233
+ - `prediction_loss_only`: True
234
+ - `eval_on_start`: False
235
+ - `eval_do_concat_batches`: True
236
+ - `eval_use_gather_object`: False
237
+ - `eval_accumulation_steps`: None
238
+ - `include_for_metrics`: []
239
+ - `batch_eval_metrics`: False
240
+ - `save_only_model`: False
241
+ - `save_on_each_node`: False
242
+ - `enable_jit_checkpoint`: False
243
+ - `push_to_hub`: False
244
+ - `hub_private_repo`: None
245
+ - `hub_model_id`: None
246
+ - `hub_strategy`: every_save
247
+ - `hub_always_push`: False
248
+ - `hub_revision`: None
249
+ - `load_best_model_at_end`: False
250
+ - `ignore_data_skip`: False
251
+ - `restore_callback_states_from_checkpoint`: False
252
+ - `full_determinism`: False
253
+ - `seed`: 42
254
+ - `data_seed`: None
255
+ - `use_cpu`: False
256
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
257
+ - `parallelism_config`: None
258
+ - `dataloader_drop_last`: False
259
+ - `dataloader_num_workers`: 0
260
+ - `dataloader_pin_memory`: True
261
+ - `dataloader_persistent_workers`: False
262
+ - `dataloader_prefetch_factor`: None
263
+ - `remove_unused_columns`: True
264
+ - `label_names`: None
265
+ - `train_sampling_strategy`: random
266
+ - `length_column_name`: length
267
+ - `ddp_find_unused_parameters`: None
268
+ - `ddp_bucket_cap_mb`: None
269
+ - `ddp_broadcast_buffers`: False
270
+ - `ddp_static_graph`: None
271
+ - `ddp_backend`: None
272
+ - `ddp_timeout`: 1800
273
+ - `fsdp`: None
274
+ - `fsdp_config`: None
275
+ - `deepspeed`: None
276
+ - `debug`: []
277
+ - `skip_memory_metrics`: True
278
+ - `do_predict`: False
279
+ - `resume_from_checkpoint`: None
280
+ - `warmup_ratio`: None
281
+ - `local_rank`: -1
282
+ - `prompts`: None
283
+ - `batch_sampler`: batch_sampler
284
+ - `multi_dataset_batch_sampler`: proportional
285
+ - `router_mapping`: {}
286
+ - `learning_rate_mapping`: {}
287
+
288
+ </details>
289
+
290
+ ### Training Logs
291
+ | Epoch | Step | Training Loss |
292
+ |:------:|:----:|:-------------:|
293
+ | 0.3390 | 200 | 0.6930 |
294
+ | 0.6780 | 400 | 0.1709 |
295
+ | 1.0169 | 600 | 0.1044 |
296
+ | 1.3559 | 800 | 0.0650 |
297
+ | 1.6949 | 1000 | 0.0613 |
298
+ | 2.0339 | 1200 | 0.0557 |
299
+ | 2.3729 | 1400 | 0.0407 |
300
+ | 2.7119 | 1600 | 0.0406 |
301
+
302
+
303
+ ### Training Time
304
+ - **Training**: 30.8 minutes
305
+
306
+ ### Framework Versions
307
+ - Python: 3.12.13
308
+ - Sentence Transformers: 5.5.1
309
+ - Transformers: 5.10.1
310
+ - PyTorch: 2.11.0+cu128
311
+ - Accelerate: 1.13.0
312
+ - Datasets: 4.0.0
313
+ - Tokenizers: 0.22.2
314
+
315
+ ## Citation
316
+
317
+ ### BibTeX
318
+
319
+ #### Sentence Transformers
320
+ ```bibtex
321
+ @inproceedings{reimers-2019-sentence-bert,
322
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
323
+ author = "Reimers, Nils and Gurevych, Iryna",
324
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
325
+ month = "11",
326
+ year = "2019",
327
+ publisher = "Association for Computational Linguistics",
328
+ url = "https://arxiv.org/abs/1908.10084",
329
+ }
330
+ ```
331
+
332
+ #### MultipleNegativesRankingLoss
333
+ ```bibtex
334
+ @misc{oord2019representationlearningcontrastivepredictive,
335
+ title={Representation Learning with Contrastive Predictive Coding},
336
+ author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
337
+ year={2019},
338
+ eprint={1807.03748},
339
+ archivePrefix={arXiv},
340
+ primaryClass={cs.LG},
341
+ url={https://arxiv.org/abs/1807.03748},
342
+ }
343
+ ```
344
+
345
+ <!--
346
+ ## Glossary
347
+
348
+ *Clearly define terms in order to be accessible across audiences.*
349
+ -->
350
+
351
+ <!--
352
+ ## Model Card Authors
353
+
354
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
355
+ -->
356
+
357
+ <!--
358
+ ## Model Card Contact
359
+
360
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
361
+ -->
chat_template.jinja ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0].role == 'system' %}
4
+ {{- messages[0].content + '\n\n' }}
5
+ {%- endif %}
6
+ {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
7
+ {%- for tool in tools %}
8
+ {{- "\n" }}
9
+ {{- tool | tojson }}
10
+ {%- endfor %}
11
+ {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
12
+ {%- else %}
13
+ {%- if messages[0].role == 'system' %}
14
+ {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
15
+ {%- endif %}
16
+ {%- endif %}
17
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
18
+ {%- for message in messages[::-1] %}
19
+ {%- set index = (messages|length - 1) - loop.index0 %}
20
+ {%- if ns.multi_step_tool and message.role == "user" and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}
21
+ {%- set ns.multi_step_tool = false %}
22
+ {%- set ns.last_query_index = index %}
23
+ {%- endif %}
24
+ {%- endfor %}
25
+ {%- for message in messages %}
26
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
27
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
28
+ {%- elif message.role == "assistant" %}
29
+ {%- set content = message.content %}
30
+ {%- set reasoning_content = '' %}
31
+ {%- if message.reasoning_content is defined and message.reasoning_content is not none %}
32
+ {%- set reasoning_content = message.reasoning_content %}
33
+ {%- else %}
34
+ {%- if '</think>' in message.content %}
35
+ {%- set content = message.content.split('</think>')[-1].lstrip('\n') %}
36
+ {%- set reasoning_content = message.content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
37
+ {%- endif %}
38
+ {%- endif %}
39
+ {%- if loop.index0 > ns.last_query_index %}
40
+ {%- if loop.last or (not loop.last and reasoning_content) %}
41
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
42
+ {%- else %}
43
+ {{- '<|im_start|>' + message.role + '\n' + content }}
44
+ {%- endif %}
45
+ {%- else %}
46
+ {{- '<|im_start|>' + message.role + '\n' + content }}
47
+ {%- endif %}
48
+ {%- if message.tool_calls %}
49
+ {%- for tool_call in message.tool_calls %}
50
+ {%- if (loop.first and content) or (not loop.first) %}
51
+ {{- '\n' }}
52
+ {%- endif %}
53
+ {%- if tool_call.function %}
54
+ {%- set tool_call = tool_call.function %}
55
+ {%- endif %}
56
+ {{- '<tool_call>\n{"name": "' }}
57
+ {{- tool_call.name }}
58
+ {{- '", "arguments": ' }}
59
+ {%- if tool_call.arguments is string %}
60
+ {{- tool_call.arguments }}
61
+ {%- else %}
62
+ {{- tool_call.arguments | tojson }}
63
+ {%- endif %}
64
+ {{- '}\n</tool_call>' }}
65
+ {%- endfor %}
66
+ {%- endif %}
67
+ {{- '<|im_end|>\n' }}
68
+ {%- elif message.role == "tool" %}
69
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
70
+ {{- '<|im_start|>user' }}
71
+ {%- endif %}
72
+ {{- '\n<tool_response>\n' }}
73
+ {{- message.content }}
74
+ {{- '\n</tool_response>' }}
75
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
76
+ {{- '<|im_end|>\n' }}
77
+ {%- endif %}
78
+ {%- endif %}
79
+ {%- endfor %}
80
+ {%- if add_generation_prompt %}
81
+ {{- '<|im_start|>assistant\n' }}
82
+ {%- if enable_thinking is defined and enable_thinking is false %}
83
+ {{- '<think>\n\n</think>\n\n' }}
84
+ {%- endif %}
85
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3Model"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": null,
8
+ "dtype": "bfloat16",
9
+ "eos_token_id": 151645,
10
+ "head_dim": 128,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 1024,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_types": [
16
+ "full_attention",
17
+ "full_attention",
18
+ "full_attention",
19
+ "full_attention",
20
+ "full_attention",
21
+ "full_attention",
22
+ "full_attention",
23
+ "full_attention",
24
+ "full_attention",
25
+ "full_attention",
26
+ "full_attention",
27
+ "full_attention",
28
+ "full_attention",
29
+ "full_attention",
30
+ "full_attention",
31
+ "full_attention",
32
+ "full_attention",
33
+ "full_attention",
34
+ "full_attention",
35
+ "full_attention",
36
+ "full_attention",
37
+ "full_attention",
38
+ "full_attention",
39
+ "full_attention",
40
+ "full_attention",
41
+ "full_attention",
42
+ "full_attention",
43
+ "full_attention"
44
+ ],
45
+ "max_position_embeddings": 32768,
46
+ "max_window_layers": 28,
47
+ "model_type": "qwen3",
48
+ "num_attention_heads": 16,
49
+ "num_hidden_layers": 28,
50
+ "num_key_value_heads": 8,
51
+ "pad_token_id": 151643,
52
+ "rms_norm_eps": 1e-06,
53
+ "rope_parameters": {
54
+ "rope_theta": 1000000,
55
+ "rope_type": "default"
56
+ },
57
+ "sliding_window": null,
58
+ "tie_word_embeddings": true,
59
+ "transformers_version": "5.10.1",
60
+ "use_cache": false,
61
+ "use_sliding_window": false,
62
+ "vocab_size": 151936
63
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "pytorch": "2.11.0+cu128",
4
+ "sentence_transformers": "5.5.1",
5
+ "transformers": "5.10.1"
6
+ },
7
+ "default_prompt_name": null,
8
+ "model_type": "SentenceTransformer",
9
+ "prompts": {
10
+ "bitext_query": "Instruct: Retrieve parallel sentences\nQuery: ",
11
+ "document": "",
12
+ "query": "",
13
+ "sts_query": "Instruct: Retrieve semantically similar text\nQuery: ",
14
+ "web_search_query": "Instruct: Given a web search query, retrieve relevant passages that answer the query\nQuery: "
15
+ },
16
+ "similarity_fn_name": "cosine"
17
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e66790c559b7cac2b168eb0e8776d19aebf1e281c12436e6941751f58f4dcfae
3
+ size 1192133232
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_Pooling",
12
+ "type": "sentence_transformers.sentence_transformer.modules.pooling.Pooling"
13
+ },
14
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.sentence_transformer.modules.normalize.Normalize"
19
+ }
20
+ ]
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:6cf519278622d854311452949ee197ff7afb0fbb1e0fa16cc307a959d8e61764
3
+ size 11423969
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|im_end|>",
7
+ "errors": "replace",
8
+ "is_local": false,
9
+ "local_files_only": false,
10
+ "model_max_length": 32768,
11
+ "pad_token": "<|endoftext|>",
12
+ "split_special_tokens": false,
13
+ "tokenizer_class": "Qwen2Tokenizer",
14
+ "unk_token": null
15
+ }