chandc commited on
Commit
4e44658
·
verified ·
1 Parent(s): 0540e23

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": 768,
3
+ "pooling_mode": "mean",
4
+ "include_prompt": true
5
+ }
2_Dense/config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "in_features": 768,
3
+ "out_features": 3072,
4
+ "bias": false,
5
+ "activation_function": "torch.nn.modules.linear.Identity",
6
+ "module_input_name": "sentence_embedding",
7
+ "module_output_name": "sentence_embedding"
8
+ }
2_Dense/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d856ce9923d5ebee4e0cedfb699945a4d5a698b19fef1b598185a37d6f5bf75
3
+ size 9437272
3_Dense/config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "in_features": 3072,
3
+ "out_features": 768,
4
+ "bias": false,
5
+ "activation_function": "torch.nn.modules.linear.Identity",
6
+ "module_input_name": "sentence_embedding",
7
+ "module_output_name": "sentence_embedding"
8
+ }
3_Dense/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1a496d5db494d468d6007cfec31a2f6e46cf2005032fe6960bb1359138efa1f
3
+ size 9437272
README.md ADDED
@@ -0,0 +1,354 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:3
8
+ - loss:MultipleNegativesRankingLoss
9
+ base_model: google/embeddinggemma-300m
10
+ pipeline_tag: sentence-similarity
11
+ library_name: sentence-transformers
12
+ ---
13
+
14
+ # SentenceTransformer based on google/embeddinggemma-300m
15
+
16
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [google/embeddinggemma-300m](https://huggingface.co/google/embeddinggemma-300m). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for retrieval.
17
+
18
+ ## Model Details
19
+
20
+ ### Model Description
21
+ - **Model Type:** Sentence Transformer
22
+ - **Base model:** [google/embeddinggemma-300m](https://huggingface.co/google/embeddinggemma-300m) <!-- at revision 57c266a740f537b4dc058e1b0cda161fd15afa75 -->
23
+ - **Maximum Sequence Length:** 2048 tokens
24
+ - **Output Dimensionality:** 768 dimensions
25
+ - **Similarity Function:** Cosine Similarity
26
+ - **Supported Modality:** Text
27
+ <!-- - **Training Dataset:** Unknown -->
28
+ <!-- - **Language:** Unknown -->
29
+ <!-- - **License:** Unknown -->
30
+
31
+ ### Model Sources
32
+
33
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
34
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
35
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
36
+
37
+ ### Full Model Architecture
38
+
39
+ ```
40
+ SentenceTransformer(
41
+ (0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'Gemma3TextModel'})
42
+ (1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'mean', 'include_prompt': True})
43
+ (2): Dense({'in_features': 768, 'out_features': 3072, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity', 'module_input_name': 'sentence_embedding', 'module_output_name': 'sentence_embedding'})
44
+ (3): Dense({'in_features': 3072, 'out_features': 768, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity', 'module_input_name': 'sentence_embedding', 'module_output_name': 'sentence_embedding'})
45
+ (4): Normalize({})
46
+ )
47
+ ```
48
+
49
+ ## Usage
50
+
51
+ ### Direct Usage (Sentence Transformers)
52
+
53
+ First install the Sentence Transformers library:
54
+
55
+ ```bash
56
+ pip install -U sentence-transformers
57
+ ```
58
+ Then you can load this model and run inference.
59
+ ```python
60
+ from sentence_transformers import SentenceTransformer
61
+
62
+ # Download from the 🤗 Hub
63
+ model = SentenceTransformer("chandc/my-embedding-gemma")
64
+ # Run inference
65
+ queries = [
66
+ 'Which planet is known as the Red Planet?',
67
+ ]
68
+ documents = [
69
+ "Venus is often called Earth's twin because of its similar size and proximity.",
70
+ 'Mars, known for its reddish appearance, is often referred to as the Red Planet.',
71
+ 'Saturn, famous for its rings, is sometimes mistaken for the Red Planet.',
72
+ ]
73
+ query_embeddings = model.encode_query(queries)
74
+ document_embeddings = model.encode_document(documents)
75
+ print(query_embeddings.shape, document_embeddings.shape)
76
+ # [1, 768] [3, 768]
77
+
78
+ # Get the similarity scores for the embeddings
79
+ similarities = model.similarity(query_embeddings, document_embeddings)
80
+ print(similarities)
81
+ # tensor([[0.2880, 0.6381, 0.4942]])
82
+ ```
83
+ <!--
84
+ ### Direct Usage (Transformers)
85
+
86
+ <details><summary>Click to see the direct usage in Transformers</summary>
87
+
88
+ </details>
89
+ -->
90
+
91
+ <!--
92
+ ### Downstream Usage (Sentence Transformers)
93
+
94
+ You can finetune this model on your own dataset.
95
+
96
+ <details><summary>Click to expand</summary>
97
+
98
+ </details>
99
+ -->
100
+
101
+ <!--
102
+ ### Out-of-Scope Use
103
+
104
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
105
+ -->
106
+
107
+ <!--
108
+ ## Bias, Risks and Limitations
109
+
110
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
111
+ -->
112
+
113
+ <!--
114
+ ### Recommendations
115
+
116
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
117
+ -->
118
+
119
+ ## Training Details
120
+
121
+ ### Training Dataset
122
+
123
+ #### Unnamed Dataset
124
+
125
+ * Size: 3 training samples
126
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
127
+ * Approximate statistics based on the first 3 samples:
128
+ | | anchor | positive | negative |
129
+ |:---------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
130
+ | type | string | string | string |
131
+ | modality | text | text | text |
132
+ | details | <ul><li>min: 10 tokens</li><li>mean: 12.0 tokens</li><li>max: 15 tokens</li></ul> | <ul><li>min: 13 tokens</li><li>mean: 15.33 tokens</li><li>max: 17 tokens</li></ul> | <ul><li>min: 12 tokens</li><li>mean: 12.67 tokens</li><li>max: 14 tokens</li></ul> |
133
+ * Samples:
134
+ | anchor | positive | negative |
135
+ |:--------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:------------------------------------------------------------------------|
136
+ | <code>How do I open a NISA account?</code> | <code>What is the procedure for starting a new tax-free investment account?</code> | <code>I want to check the balance of my regular savings account.</code> |
137
+ | <code>Are there fees for making an early repayment on a home loan?</code> | <code>If I pay back my house loan early, will there be any costs?</code> | <code>What is the management fee for this investment trust?</code> |
138
+ | <code>What is the coverage for medical insurance?</code> | <code>Tell me about the benefits of the health insurance plan.</code> | <code>What is the cancellation policy for my life insurance?</code> |
139
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
140
+ ```json
141
+ {
142
+ "scale": 20.0,
143
+ "similarity_fct": "cos_sim",
144
+ "gather_across_devices": false,
145
+ "directions": [
146
+ "query_to_doc"
147
+ ],
148
+ "partition_mode": "joint",
149
+ "hardness_mode": null,
150
+ "hardness_strength": 0.0
151
+ }
152
+ ```
153
+
154
+ ### Training Hyperparameters
155
+ #### Non-Default Hyperparameters
156
+
157
+ - `per_device_train_batch_size`: 1
158
+ - `learning_rate`: 2e-05
159
+ - `num_train_epochs`: 5
160
+ - `warmup_ratio`: 0.1
161
+ - `prompts`: task: sentence similarity | query:
162
+
163
+ #### All Hyperparameters
164
+ <details><summary>Click to expand</summary>
165
+
166
+ - `overwrite_output_dir`: False
167
+ - `do_predict`: False
168
+ - `prediction_loss_only`: True
169
+ - `per_device_train_batch_size`: 1
170
+ - `per_device_eval_batch_size`: 8
171
+ - `per_gpu_train_batch_size`: None
172
+ - `per_gpu_eval_batch_size`: None
173
+ - `gradient_accumulation_steps`: 1
174
+ - `eval_accumulation_steps`: None
175
+ - `torch_empty_cache_steps`: None
176
+ - `learning_rate`: 2e-05
177
+ - `weight_decay`: 0.0
178
+ - `adam_beta1`: 0.9
179
+ - `adam_beta2`: 0.999
180
+ - `adam_epsilon`: 1e-08
181
+ - `max_grad_norm`: 1.0
182
+ - `num_train_epochs`: 5
183
+ - `max_steps`: -1
184
+ - `lr_scheduler_type`: linear
185
+ - `lr_scheduler_kwargs`: {}
186
+ - `warmup_ratio`: 0.1
187
+ - `warmup_steps`: 0
188
+ - `log_level`: passive
189
+ - `log_level_replica`: warning
190
+ - `log_on_each_node`: True
191
+ - `logging_nan_inf_filter`: True
192
+ - `save_safetensors`: True
193
+ - `save_on_each_node`: False
194
+ - `save_only_model`: False
195
+ - `restore_callback_states_from_checkpoint`: False
196
+ - `no_cuda`: False
197
+ - `use_cpu`: False
198
+ - `use_mps_device`: False
199
+ - `seed`: 42
200
+ - `data_seed`: None
201
+ - `jit_mode_eval`: False
202
+ - `use_ipex`: False
203
+ - `bf16`: False
204
+ - `fp16`: False
205
+ - `fp16_opt_level`: O1
206
+ - `half_precision_backend`: auto
207
+ - `bf16_full_eval`: False
208
+ - `fp16_full_eval`: False
209
+ - `tf32`: None
210
+ - `local_rank`: 0
211
+ - `ddp_backend`: None
212
+ - `tpu_num_cores`: None
213
+ - `tpu_metrics_debug`: False
214
+ - `debug`: []
215
+ - `dataloader_drop_last`: False
216
+ - `dataloader_num_workers`: 0
217
+ - `dataloader_prefetch_factor`: None
218
+ - `past_index`: -1
219
+ - `disable_tqdm`: False
220
+ - `remove_unused_columns`: True
221
+ - `label_names`: None
222
+ - `load_best_model_at_end`: False
223
+ - `ignore_data_skip`: False
224
+ - `fsdp`: []
225
+ - `fsdp_min_num_params`: 0
226
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
227
+ - `fsdp_transformer_layer_cls_to_wrap`: None
228
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
229
+ - `parallelism_config`: None
230
+ - `deepspeed`: None
231
+ - `label_smoothing_factor`: 0.0
232
+ - `optim`: adamw_torch_fused
233
+ - `optim_args`: None
234
+ - `adafactor`: False
235
+ - `group_by_length`: False
236
+ - `length_column_name`: length
237
+ - `ddp_find_unused_parameters`: None
238
+ - `ddp_bucket_cap_mb`: None
239
+ - `ddp_broadcast_buffers`: False
240
+ - `dataloader_pin_memory`: True
241
+ - `dataloader_persistent_workers`: False
242
+ - `skip_memory_metrics`: True
243
+ - `use_legacy_prediction_loop`: False
244
+ - `push_to_hub`: False
245
+ - `resume_from_checkpoint`: None
246
+ - `hub_model_id`: None
247
+ - `hub_strategy`: every_save
248
+ - `hub_private_repo`: None
249
+ - `hub_always_push`: False
250
+ - `hub_revision`: None
251
+ - `gradient_checkpointing`: False
252
+ - `gradient_checkpointing_kwargs`: None
253
+ - `include_inputs_for_metrics`: False
254
+ - `include_for_metrics`: []
255
+ - `eval_do_concat_batches`: True
256
+ - `fp16_backend`: auto
257
+ - `push_to_hub_model_id`: None
258
+ - `push_to_hub_organization`: None
259
+ - `mp_parameters`:
260
+ - `auto_find_batch_size`: False
261
+ - `full_determinism`: False
262
+ - `torchdynamo`: None
263
+ - `ray_scope`: last
264
+ - `ddp_timeout`: 1800
265
+ - `torch_compile`: False
266
+ - `torch_compile_backend`: None
267
+ - `torch_compile_mode`: None
268
+ - `include_tokens_per_second`: False
269
+ - `include_num_input_tokens_seen`: False
270
+ - `neftune_noise_alpha`: None
271
+ - `optim_target_modules`: None
272
+ - `batch_eval_metrics`: False
273
+ - `eval_on_start`: False
274
+ - `use_liger_kernel`: False
275
+ - `liger_kernel_config`: None
276
+ - `eval_use_gather_object`: False
277
+ - `average_tokens_across_devices`: False
278
+ - `prompts`: task: sentence similarity | query:
279
+ - `batch_sampler`: batch_sampler
280
+ - `multi_dataset_batch_sampler`: proportional
281
+ - `router_mapping`: {}
282
+ - `learning_rate_mapping`: {}
283
+
284
+ </details>
285
+
286
+ ### Training Logs
287
+ | Epoch | Step | Training Loss |
288
+ |:-----:|:----:|:-------------:|
289
+ | 1.0 | 3 | 0.0483 |
290
+ | 2.0 | 6 | 0.0 |
291
+ | 3.0 | 9 | 0.0 |
292
+ | 4.0 | 12 | 0.0 |
293
+ | 5.0 | 15 | 0.0 |
294
+
295
+
296
+ ### Training Time
297
+ - **Training**: 47.2 seconds
298
+
299
+ ### Framework Versions
300
+ - Python: 3.12.13
301
+ - Sentence Transformers: 5.5.1
302
+ - Transformers: 4.57.0.dev0
303
+ - PyTorch: 2.11.0+cu128
304
+ - Accelerate: 1.13.0
305
+ - Datasets: 4.0.0
306
+ - Tokenizers: 0.22.2
307
+
308
+ ## Citation
309
+
310
+ ### BibTeX
311
+
312
+ #### Sentence Transformers
313
+ ```bibtex
314
+ @inproceedings{reimers-2019-sentence-bert,
315
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
316
+ author = "Reimers, Nils and Gurevych, Iryna",
317
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
318
+ month = "11",
319
+ year = "2019",
320
+ publisher = "Association for Computational Linguistics",
321
+ url = "https://arxiv.org/abs/1908.10084",
322
+ }
323
+ ```
324
+
325
+ #### MultipleNegativesRankingLoss
326
+ ```bibtex
327
+ @misc{oord2019representationlearningcontrastivepredictive,
328
+ title={Representation Learning with Contrastive Predictive Coding},
329
+ author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
330
+ year={2019},
331
+ eprint={1807.03748},
332
+ archivePrefix={arXiv},
333
+ primaryClass={cs.LG},
334
+ url={https://arxiv.org/abs/1807.03748},
335
+ }
336
+ ```
337
+
338
+ <!--
339
+ ## Glossary
340
+
341
+ *Clearly define terms in order to be accessible across audiences.*
342
+ -->
343
+
344
+ <!--
345
+ ## Model Card Authors
346
+
347
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
348
+ -->
349
+
350
+ <!--
351
+ ## Model Card Contact
352
+
353
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
354
+ -->
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image_soft_token>": 262144
3
+ }
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_sliding_window_pattern": 6,
3
+ "architectures": [
4
+ "Gemma3TextModel"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "attn_logit_softcapping": null,
9
+ "bos_token_id": 2,
10
+ "dtype": "float32",
11
+ "eos_token_id": 1,
12
+ "final_logit_softcapping": null,
13
+ "head_dim": 256,
14
+ "hidden_activation": "gelu_pytorch_tanh",
15
+ "hidden_size": 768,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 1152,
18
+ "layer_types": [
19
+ "sliding_attention",
20
+ "sliding_attention",
21
+ "sliding_attention",
22
+ "sliding_attention",
23
+ "sliding_attention",
24
+ "full_attention",
25
+ "sliding_attention",
26
+ "sliding_attention",
27
+ "sliding_attention",
28
+ "sliding_attention",
29
+ "sliding_attention",
30
+ "full_attention",
31
+ "sliding_attention",
32
+ "sliding_attention",
33
+ "sliding_attention",
34
+ "sliding_attention",
35
+ "sliding_attention",
36
+ "full_attention",
37
+ "sliding_attention",
38
+ "sliding_attention",
39
+ "sliding_attention",
40
+ "sliding_attention",
41
+ "sliding_attention",
42
+ "full_attention"
43
+ ],
44
+ "max_position_embeddings": 2048,
45
+ "model_type": "gemma3_text",
46
+ "num_attention_heads": 3,
47
+ "num_hidden_layers": 24,
48
+ "num_key_value_heads": 1,
49
+ "pad_token_id": 0,
50
+ "query_pre_attn_scalar": 256,
51
+ "rms_norm_eps": 1e-06,
52
+ "rope_local_base_freq": 10000.0,
53
+ "rope_scaling": null,
54
+ "rope_theta": 1000000.0,
55
+ "sliding_window": 257,
56
+ "transformers_version": "4.57.0.dev0",
57
+ "use_bidirectional_attention": true,
58
+ "use_cache": true,
59
+ "vocab_size": 262144
60
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "pytorch": "2.11.0+cu128",
4
+ "sentence_transformers": "5.5.1",
5
+ "transformers": "4.57.0.dev0"
6
+ },
7
+ "default_prompt_name": null,
8
+ "model_type": "SentenceTransformer",
9
+ "prompts": {
10
+ "BitextMining": "task: search result | query: ",
11
+ "Classification": "task: classification | query: ",
12
+ "Clustering": "task: clustering | query: ",
13
+ "InstructionRetrieval": "task: code retrieval | query: ",
14
+ "MultilabelClassification": "task: classification | query: ",
15
+ "PairClassification": "task: sentence similarity | query: ",
16
+ "Reranking": "task: search result | query: ",
17
+ "Retrieval": "task: search result | query: ",
18
+ "Retrieval-document": "title: none | text: ",
19
+ "Retrieval-query": "task: search result | query: ",
20
+ "STS": "task: sentence similarity | query: ",
21
+ "Summarization": "task: summarization | query: ",
22
+ "document": "title: none | text: ",
23
+ "query": "task: search result | query: "
24
+ },
25
+ "similarity_fn_name": "cosine"
26
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e145449aef04533b09a9664cad6080fc5223d8a2d345f618ca09ca8777a09286
3
+ size 1211486072
modules.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_Dense",
18
+ "type": "sentence_transformers.base.modules.dense.Dense"
19
+ },
20
+ {
21
+ "idx": 3,
22
+ "name": "3",
23
+ "path": "3_Dense",
24
+ "type": "sentence_transformers.base.modules.dense.Dense"
25
+ },
26
+ {
27
+ "idx": 4,
28
+ "name": "4",
29
+ "path": "4_Normalize",
30
+ "type": "sentence_transformers.sentence_transformer.modules.normalize.Normalize"
31
+ }
32
+ ]
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
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "boi_token": "<start_of_image>",
3
+ "bos_token": {
4
+ "content": "<bos>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "eoi_token": "<end_of_image>",
11
+ "eos_token": {
12
+ "content": "<eos>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "image_token": "<image_soft_token>",
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:216e2a79606fe879c9f17c529c71cd241338407fd5646b595ffd3c4b9ea1d503
3
+ size 33385262
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1299c11d7cf632ef3b4e11937501358ada021bbdf7c47638d13c0ee982f2e79c
3
+ size 4689074
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff