SSHHIVANI commited on
Commit
17bb5ec
·
verified ·
1 Parent(s): 512a9d4

Upload folder using huggingface_hub

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "embedding_dimension": 384,
3
+ "pooling_mode": "mean",
4
+ "include_prompt": true
5
+ }
README.md ADDED
@@ -0,0 +1,378 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:4555
9
+ - loss:MultipleNegativesRankingLoss
10
+ base_model: sentence-transformers/all-MiniLM-L6-v2
11
+ widget:
12
+ - source_sentence: Shahid Kapoor was in a film.
13
+ sentences:
14
+ - In addition to acting in films , Kapoor has sung several of her film songs .
15
+ - Two years later , he played a drug abusing singer in the crime drama Udta Punjab
16
+ , which won him the Filmfare Critics Award for Best Actor .
17
+ - Matthew Paige Damon -LRB- -LSB- ˈdeɪmən -RSB- born October 8 , 1970 -RRB- is an
18
+ American actor , film producer , and screenwriter .
19
+ - source_sentence: Robert Redford is a performer.
20
+ sentences:
21
+ - Grey 's Anatomy is an American medical drama television series that premiered
22
+ on American Broadcasting Company -LRB- ABC -RRB- as a mid-season replacement on
23
+ March 27 , 2005 .
24
+ - Charles Robert Redford Jr. -LRB- born August 18 , 1936 -RRB- is an American actor
25
+ , director , producer , businessman , environmentalist , and philanthropist .
26
+ - 'Redford ''s career began in 1960 as a guest star on numerous TV shows , including
27
+ : The Untouchables , Perry Mason , Alfred Hitchcock Presents , and The Twilight
28
+ Zone , among others .'
29
+ - source_sentence: Boeing 777 planes have two engines.
30
+ sentences:
31
+ - It is the world 's largest twinjet and has a typical seating capacity of 314 to
32
+ 396 passengers , with a range of 5240 to .
33
+ - Bush married Laura Welch in 1977 and ran unsuccessfully for the House of Representatives
34
+ shortly thereafter .
35
+ - The Boeing 777 is a family of long-range wide-body twin-engine jet airliners developed
36
+ and manufactured by Boeing Commercial Airplanes .
37
+ - source_sentence: The Academy Honorary Award was put in place for a prize formerly
38
+ named the Special Award.
39
+ sentences:
40
+ - The Academy Honorary Award -- instituted in 1948 for the 21st Academy Awards -LRB-
41
+ previously called the Special Award , which was first presented in early 1929
42
+ -RRB- -- is given annually by the Board of Governors of the Academy of Motion
43
+ Picture Arts and Sciences -LRB- AMPAS -RRB- to celebrate motion picture achievements
44
+ that are not covered by existing Academy Awards , although prior winners of competitive
45
+ Academy Awards are not excluded from receiving the Honorary Award .
46
+ - In 2011 , Hathaway voiced Jewel in the animated film Rio and hosted the 83rd Academy
47
+ Awards with James Franco , which was nominated for a Primetime Emmy Award for
48
+ Outstanding Special Class Program .
49
+ - The song was performed during the Super Bowl XXXVIII halftime show in 2004 .
50
+ - source_sentence: Instagram started supporting videos in 2015.
51
+ sentences:
52
+ - 'In 2015 , she reprised her role as Lindsay in Wet Hot American Summer for the
53
+ Netflix miniseries Wet Hot American Summer : First Day of Camp .'
54
+ - Instagram is a mobile , desktop , and internet-based photo-sharing application
55
+ and service that allows users to share pictures and videos either publicly or
56
+ privately .
57
+ - Support for videos was originally launched in June 2013 , and had a 15-second
58
+ maximum duration and limited quality , with Instagram later adding support for
59
+ widescreen and longer videos .
60
+ pipeline_tag: sentence-similarity
61
+ library_name: sentence-transformers
62
+ ---
63
+
64
+ # SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
65
+
66
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2). It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, classification, clustering, and more.
67
+
68
+ ## Model Details
69
+
70
+ ### Model Description
71
+ - **Model Type:** Sentence Transformer
72
+ - **Base model:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision 1110a243fdf4706b3f48f1d95db1a4f5529b4d41 -->
73
+ - **Maximum Sequence Length:** 256 tokens
74
+ - **Output Dimensionality:** 384 dimensions
75
+ - **Similarity Function:** Cosine Similarity
76
+ - **Supported Modality:** Text
77
+ <!-- - **Training Dataset:** Unknown -->
78
+ <!-- - **Language:** Unknown -->
79
+ <!-- - **License:** Unknown -->
80
+
81
+ ### Model Sources
82
+
83
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
84
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
85
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
86
+
87
+ ### Full Model Architecture
88
+
89
+ ```
90
+ SentenceTransformer(
91
+ (0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'BertModel'})
92
+ (1): Pooling({'embedding_dimension': 384, 'pooling_mode': 'mean', 'include_prompt': True})
93
+ (2): Normalize({})
94
+ )
95
+ ```
96
+
97
+ ## Usage
98
+
99
+ ### Direct Usage (Sentence Transformers)
100
+
101
+ First install the Sentence Transformers library:
102
+
103
+ ```bash
104
+ pip install -U sentence-transformers
105
+ ```
106
+ Then you can load this model and run inference.
107
+ ```python
108
+ from sentence_transformers import SentenceTransformer
109
+
110
+ # Download from the 🤗 Hub
111
+ model = SentenceTransformer("sentence_transformers_model_id")
112
+ # Run inference
113
+ sentences = [
114
+ 'Instagram started supporting videos in 2015.',
115
+ 'Support for videos was originally launched in June 2013 , and had a 15-second maximum duration and limited quality , with Instagram later adding support for widescreen and longer videos .',
116
+ 'Instagram is a mobile , desktop , and internet-based photo-sharing application and service that allows users to share pictures and videos either publicly or privately .',
117
+ ]
118
+ embeddings = model.encode(sentences)
119
+ print(embeddings.shape)
120
+ # [3, 384]
121
+
122
+ # Get the similarity scores for the embeddings
123
+ similarities = model.similarity(embeddings, embeddings)
124
+ print(similarities)
125
+ # tensor([[1.0000, 0.8020, 0.5034],
126
+ # [0.8020, 1.0000, 0.5358],
127
+ # [0.5034, 0.5358, 1.0000]])
128
+ ```
129
+ <!--
130
+ ### Direct Usage (Transformers)
131
+
132
+ <details><summary>Click to see the direct usage in Transformers</summary>
133
+
134
+ </details>
135
+ -->
136
+
137
+ <!--
138
+ ### Downstream Usage (Sentence Transformers)
139
+
140
+ You can finetune this model on your own dataset.
141
+
142
+ <details><summary>Click to expand</summary>
143
+
144
+ </details>
145
+ -->
146
+
147
+ <!--
148
+ ### Out-of-Scope Use
149
+
150
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
151
+ -->
152
+
153
+ <!--
154
+ ## Bias, Risks and Limitations
155
+
156
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
157
+ -->
158
+
159
+ <!--
160
+ ### Recommendations
161
+
162
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
163
+ -->
164
+
165
+ ## Training Details
166
+
167
+ ### Training Dataset
168
+
169
+ #### Unnamed Dataset
170
+
171
+ * Size: 4,555 training samples
172
+ * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>sentence_2</code>
173
+ * Approximate statistics based on the first 100 samples:
174
+ | | sentence_0 | sentence_1 | sentence_2 |
175
+ |:---------|:----------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
176
+ | type | string | string | string |
177
+ | modality | text | text | text |
178
+ | details | <ul><li>min: 6 tokens</li><li>mean: 11.45 tokens</li><li>max: 21 tokens</li></ul> | <ul><li>min: 13 tokens</li><li>mean: 37.74 tokens</li><li>max: 131 tokens</li></ul> | <ul><li>min: 9 tokens</li><li>mean: 35.88 tokens</li><li>max: 103 tokens</li></ul> |
179
+ * Samples:
180
+ | sentence_0 | sentence_1 | sentence_2 |
181
+ |:---------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
182
+ | <code>Grace Jones performed in 1984 film Conan the Destroyer.</code> | <code>In 1984 she made her first mainstream appearance as Zula in the fantasy-action film Conan the Destroyer alongside Arnold Schwarzenegger and Sarah Douglas , and subsequently appeared in the 1985 James Bond movie A View to a Kill as May Day .</code> | <code>In 2008 , he played Henry `` Mutt Williams '' Jones III in Indiana Jones and the Kingdom of the Crystal Skull , the fourth film in the Indiana Jones franchise .</code> |
183
+ | <code>Pornhub is a website for pornography.</code> | <code>Pornhub is a pornographic video sharing website and the largest pornography site on the Internet .</code> | <code>There are contanious -LSB- sic -RSB- sexual scenes , abusive words , audio pornography and a bit sensitive touch about one particular section of society '' .</code> |
184
+ | <code>The Beatles were an English soccer team.</code> | <code>In 2008 , the group topped Billboard magazine 's list of the all-time most successful `` Hot 100 '' artists ; , they hold the record for most number-one hits on the Hot 100 chart with twenty .</code> | <code>The Beatles were an English rock band formed in Liverpool in 1960 .</code> |
185
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
186
+ ```json
187
+ {
188
+ "scale": 20.0,
189
+ "similarity_fct": "cos_sim",
190
+ "gather_across_devices": false,
191
+ "directions": [
192
+ "query_to_doc"
193
+ ],
194
+ "partition_mode": "joint",
195
+ "hardness_mode": null,
196
+ "hardness_strength": 0.0
197
+ }
198
+ ```
199
+
200
+ ### Training Hyperparameters
201
+ #### Non-Default Hyperparameters
202
+
203
+ - `per_device_train_batch_size`: 32
204
+ - `per_device_eval_batch_size`: 32
205
+ - `multi_dataset_batch_sampler`: round_robin
206
+
207
+ #### All Hyperparameters
208
+ <details><summary>Click to expand</summary>
209
+
210
+ - `per_device_train_batch_size`: 32
211
+ - `num_train_epochs`: 3
212
+ - `max_steps`: -1
213
+ - `learning_rate`: 5e-05
214
+ - `lr_scheduler_type`: linear
215
+ - `lr_scheduler_kwargs`: None
216
+ - `warmup_steps`: 0
217
+ - `optim`: adamw_torch_fused
218
+ - `optim_args`: None
219
+ - `weight_decay`: 0.0
220
+ - `adam_beta1`: 0.9
221
+ - `adam_beta2`: 0.999
222
+ - `adam_epsilon`: 1e-08
223
+ - `optim_target_modules`: None
224
+ - `gradient_accumulation_steps`: 1
225
+ - `average_tokens_across_devices`: True
226
+ - `max_grad_norm`: 1
227
+ - `label_smoothing_factor`: 0.0
228
+ - `bf16`: False
229
+ - `fp16`: False
230
+ - `bf16_full_eval`: False
231
+ - `fp16_full_eval`: False
232
+ - `tf32`: None
233
+ - `gradient_checkpointing`: False
234
+ - `gradient_checkpointing_kwargs`: None
235
+ - `torch_compile`: False
236
+ - `torch_compile_backend`: None
237
+ - `torch_compile_mode`: None
238
+ - `use_liger_kernel`: False
239
+ - `liger_kernel_config`: None
240
+ - `use_cache`: False
241
+ - `neftune_noise_alpha`: None
242
+ - `torch_empty_cache_steps`: None
243
+ - `auto_find_batch_size`: False
244
+ - `log_on_each_node`: True
245
+ - `logging_nan_inf_filter`: True
246
+ - `include_num_input_tokens_seen`: no
247
+ - `log_level`: passive
248
+ - `log_level_replica`: warning
249
+ - `disable_tqdm`: False
250
+ - `project`: huggingface
251
+ - `trackio_space_id`: None
252
+ - `trackio_bucket_id`: None
253
+ - `trackio_static_space_id`: None
254
+ - `per_device_eval_batch_size`: 32
255
+ - `prediction_loss_only`: True
256
+ - `eval_on_start`: False
257
+ - `eval_do_concat_batches`: True
258
+ - `eval_use_gather_object`: False
259
+ - `eval_accumulation_steps`: None
260
+ - `include_for_metrics`: []
261
+ - `batch_eval_metrics`: False
262
+ - `save_only_model`: False
263
+ - `save_on_each_node`: False
264
+ - `enable_jit_checkpoint`: False
265
+ - `push_to_hub`: False
266
+ - `hub_private_repo`: None
267
+ - `hub_model_id`: None
268
+ - `hub_strategy`: every_save
269
+ - `hub_always_push`: False
270
+ - `hub_revision`: None
271
+ - `load_best_model_at_end`: False
272
+ - `ignore_data_skip`: False
273
+ - `restore_callback_states_from_checkpoint`: False
274
+ - `full_determinism`: False
275
+ - `seed`: 42
276
+ - `data_seed`: None
277
+ - `use_cpu`: False
278
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
279
+ - `parallelism_config`: None
280
+ - `dataloader_drop_last`: False
281
+ - `dataloader_num_workers`: 0
282
+ - `dataloader_pin_memory`: True
283
+ - `dataloader_persistent_workers`: False
284
+ - `dataloader_prefetch_factor`: None
285
+ - `remove_unused_columns`: True
286
+ - `label_names`: None
287
+ - `train_sampling_strategy`: random
288
+ - `length_column_name`: length
289
+ - `ddp_find_unused_parameters`: None
290
+ - `ddp_bucket_cap_mb`: None
291
+ - `ddp_broadcast_buffers`: False
292
+ - `ddp_static_graph`: None
293
+ - `ddp_backend`: None
294
+ - `ddp_timeout`: 1800
295
+ - `fsdp`: None
296
+ - `fsdp_config`: None
297
+ - `deepspeed`: None
298
+ - `debug`: []
299
+ - `skip_memory_metrics`: True
300
+ - `do_predict`: False
301
+ - `resume_from_checkpoint`: None
302
+ - `warmup_ratio`: None
303
+ - `local_rank`: -1
304
+ - `prompts`: None
305
+ - `batch_sampler`: batch_sampler
306
+ - `multi_dataset_batch_sampler`: round_robin
307
+ - `router_mapping`: {}
308
+ - `learning_rate_mapping`: {}
309
+
310
+ </details>
311
+
312
+ ### Training Time
313
+ - **Training**: 59.1 minutes
314
+
315
+ ### Framework Versions
316
+ - Python: 3.13.7
317
+ - Sentence Transformers: 5.7.0
318
+ - Transformers: 5.14.1
319
+ - PyTorch: 2.13.0+cpu
320
+ - Accelerate: 1.14.0
321
+ - Datasets: 5.0.1
322
+ - Tokenizers: 0.22.2
323
+
324
+ ## Additional Resources
325
+
326
+ - [Training and Finetuning Embedding Models with Sentence Transformers](https://huggingface.co/blog/train-sentence-transformers): the end-to-end guide for training or finetuning Sentence Transformer models.
327
+ - [Introduction to Matryoshka Embedding Models](https://huggingface.co/blog/matryoshka): variable-size embeddings that can be truncated with minimal quality loss.
328
+ - [Binary and Scalar Embedding Quantization for Significantly Faster & Cheaper Retrieval](https://huggingface.co/blog/embedding-quantization): post-training compression of embedding vectors.
329
+ - [Multimodal Embedding & Reranker Models with Sentence Transformers](https://huggingface.co/blog/multimodal-sentence-transformers): use text, image, audio, and video models through the same API.
330
+ - [Training and Finetuning Multimodal Embedding & Reranker Models with Sentence Transformers](https://huggingface.co/blog/train-multimodal-sentence-transformers): train multimodal embedding models, with a Visual Document Retrieval walkthrough.
331
+
332
+ ## Citation
333
+
334
+ ### BibTeX
335
+
336
+ #### Sentence Transformers
337
+ ```bibtex
338
+ @inproceedings{reimers-2019-sentence-bert,
339
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
340
+ author = "Reimers, Nils and Gurevych, Iryna",
341
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
342
+ month = "11",
343
+ year = "2019",
344
+ publisher = "Association for Computational Linguistics",
345
+ url = "https://arxiv.org/abs/1908.10084",
346
+ }
347
+ ```
348
+
349
+ #### MultipleNegativesRankingLoss
350
+ ```bibtex
351
+ @misc{oord2019representationlearningcontrastivepredictive,
352
+ title={Representation Learning with Contrastive Predictive Coding},
353
+ author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
354
+ year={2019},
355
+ eprint={1807.03748},
356
+ archivePrefix={arXiv},
357
+ primaryClass={cs.LG},
358
+ url={https://arxiv.org/abs/1807.03748},
359
+ }
360
+ ```
361
+
362
+ <!--
363
+ ## Glossary
364
+
365
+ *Clearly define terms in order to be accessible across audiences.*
366
+ -->
367
+
368
+ <!--
369
+ ## Model Card Authors
370
+
371
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
372
+ -->
373
+
374
+ <!--
375
+ ## Model Card Contact
376
+
377
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
378
+ -->
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": null,
11
+ "gradient_checkpointing": false,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 384,
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 1536,
17
+ "is_decoder": false,
18
+ "layer_norm_eps": 1e-12,
19
+ "max_position_embeddings": 512,
20
+ "model_type": "bert",
21
+ "num_attention_heads": 12,
22
+ "num_hidden_layers": 6,
23
+ "pad_token_id": 0,
24
+ "position_embedding_type": "absolute",
25
+ "tie_word_embeddings": true,
26
+ "transformers_version": "5.14.1",
27
+ "type_vocab_size": 2,
28
+ "use_cache": false,
29
+ "vocab_size": 30522
30
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "pytorch": "2.13.0+cpu",
4
+ "sentence_transformers": "5.7.0",
5
+ "transformers": "5.14.1"
6
+ },
7
+ "default_prompt_name": null,
8
+ "model_type": "SentenceTransformer",
9
+ "prompts": {
10
+ "document": "",
11
+ "query": ""
12
+ },
13
+ "similarity_fn_name": "cosine"
14
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:197301da25939dd3b21a1f93ad2f441aa0ee4b72803a259ff13bb2d84d8b3aae
3
+ size 90864192
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
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_basic_tokenize": true,
5
+ "do_lower_case": true,
6
+ "is_local": false,
7
+ "local_files_only": false,
8
+ "mask_token": "[MASK]",
9
+ "max_length": 128,
10
+ "model_max_length": 256,
11
+ "never_split": null,
12
+ "pad_to_multiple_of": null,
13
+ "pad_token": "[PAD]",
14
+ "pad_token_type_id": 0,
15
+ "padding_side": "right",
16
+ "sep_token": "[SEP]",
17
+ "stride": 0,
18
+ "strip_accents": null,
19
+ "tokenize_chinese_chars": true,
20
+ "tokenizer_class": "BertTokenizer",
21
+ "truncation_side": "right",
22
+ "truncation_strategy": "longest_first",
23
+ "unk_token": "[UNK]"
24
+ }