rakshi719 commited on
Commit
a01c7d0
·
verified ·
1 Parent(s): 19c9a53

Upload folder using huggingface_hub

Browse files
step23A/1_Pooling/config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "embedding_dimension": 768,
3
+ "pooling_mode": "mean",
4
+ "include_prompt": true
5
+ }
step23A/README.md ADDED
@@ -0,0 +1,423 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:3651
8
+ - loss:MultipleNegativesRankingLoss
9
+ widget:
10
+ - source_sentence: Mugitangira prologue yigitabo cyanjye, nanditse ko kuvuka ari umukobwa
11
+ byangiza ubuzima bwawe, kandi kimwe mubibazo bikomeye navuze mubiganiro bitangira
12
+ nukuvuka ari igitsina gore.
13
+ sentences:
14
+ - At the beginning of the prologue of my book, I write that being born female is
15
+ dangerous to your health, and one of the critical issues that I spoke about in
16
+ the opening discussion is being born female.
17
+ - Hari abantu benshi bacumbikiwe muri ibyo byumba.
18
+ - This is what Sara and Mrs. and Mr. Kwame said
19
+ - source_sentence: Intumwa Pawulo yerekanye ko idini idashingiye ku migenzo n’imihango
20
+ sentences:
21
+ - It was a lot of fun to see how all the kids knew Sandrine and am looking forward
22
+ to doing other adventures with Kingfisher Journeys!
23
+ - The guide on our bus, Diderero, went out of his way to deliver a wonderful and
24
+ engaging experience...and the animals joined in on the fun.
25
+ - The apostle Paul pointed out that religion is not based on tradition and ritual
26
+ - source_sentence: Urakoze Rwandan adventures
27
+ sentences:
28
+ - Gorilla Trek Africa (GTA) provided transportation from the Kigali airport to the
29
+ hotel and back again (we stayed at 5 Volcanos -- more about that later), then
30
+ to and from the park area where you're dropped off by your GTA guide.
31
+ - 'Mutamuriza: Thank you for making our work it easier'
32
+ - Thanks Rwandan adventures!
33
+ - source_sentence: Intego zikomeye zigomba kongeraho kwemeza ko zifite intego zihagije
34
+ zijyanye n’ikirere kiri munsi ya 2 ° C.
35
+ sentences:
36
+ - Muri Amerika y'Epfo hubakwa toni zisaga miriyoni imwe.
37
+ - Intensity targets need to additionally ensure that they are ambitious enough to
38
+ be in line with the well-below 2°C climate scenario.
39
+ - Bavuga ko Hugh Hefner akeneye pilule imeze nk'amadayimoni.
40
+ - source_sentence: Hano hari kugabanuka kubuntu hafi ya bose!
41
+ sentences:
42
+ - There are generous discounts for nearly everyone!
43
+ - Umugabo w'igitsina gore yapfuye mu buryo buteye ubwoba.
44
+ - You can avoid a flood of information and prevent an information shortfall, which
45
+ could mean important measures not being implemented in time for deadlines.
46
+ pipeline_tag: sentence-similarity
47
+ library_name: sentence-transformers
48
+ metrics:
49
+ - pearson_cosine
50
+ - spearman_cosine
51
+ model-index:
52
+ - name: SentenceTransformer
53
+ results:
54
+ - task:
55
+ type: semantic-similarity
56
+ name: Semantic Similarity
57
+ dataset:
58
+ name: semrel2024 dev
59
+ type: semrel2024_dev
60
+ metrics:
61
+ - type: pearson_cosine
62
+ value: 0.5267270524066402
63
+ name: Pearson Cosine
64
+ - type: spearman_cosine
65
+ value: 0.5311528924947518
66
+ name: Spearman Cosine
67
+ ---
68
+
69
+ # SentenceTransformer
70
+
71
+ This is a [sentence-transformers](https://www.SBERT.net) model trained. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for retrieval.
72
+
73
+ ## Model Details
74
+
75
+ ### Model Description
76
+ - **Model Type:** Sentence Transformer
77
+ <!-- - **Base model:** [Unknown](https://huggingface.co/unknown) -->
78
+ - **Maximum Sequence Length:** 128 tokens
79
+ - **Output Dimensionality:** 768 dimensions
80
+ - **Similarity Function:** Cosine Similarity
81
+ - **Supported Modality:** Text
82
+ <!-- - **Training Dataset:** Unknown -->
83
+ <!-- - **Language:** Unknown -->
84
+ <!-- - **License:** Unknown -->
85
+
86
+ ### Model Sources
87
+
88
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
89
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
90
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
91
+
92
+ ### Full Model Architecture
93
+
94
+ ```
95
+ SentenceTransformer(
96
+ (0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'BertModel'})
97
+ (1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'mean', 'include_prompt': True})
98
+ )
99
+ ```
100
+
101
+ ## Usage
102
+
103
+ ### Direct Usage (Sentence Transformers)
104
+
105
+ First install the Sentence Transformers library:
106
+
107
+ ```bash
108
+ pip install -U sentence-transformers
109
+ ```
110
+ Then you can load this model and run inference.
111
+ ```python
112
+ from sentence_transformers import SentenceTransformer
113
+
114
+ # Download from the 🤗 Hub
115
+ model = SentenceTransformer("sentence_transformers_model_id")
116
+ # Run inference
117
+ sentences = [
118
+ 'Hano hari kugabanuka kubuntu hafi ya bose!',
119
+ 'There are generous discounts for nearly everyone!',
120
+ 'You can avoid a flood of information and prevent an information shortfall, which could mean important measures not being implemented in time for deadlines.',
121
+ ]
122
+ embeddings = model.encode(sentences)
123
+ print(embeddings.shape)
124
+ # [3, 768]
125
+
126
+ # Get the similarity scores for the embeddings
127
+ similarities = model.similarity(embeddings, embeddings)
128
+ print(similarities)
129
+ # tensor([[1.0000, 0.6076, 0.2924],
130
+ # [0.6076, 1.0000, 0.2560],
131
+ # [0.2924, 0.2560, 1.0000]])
132
+ ```
133
+ <!--
134
+ ### Direct Usage (Transformers)
135
+
136
+ <details><summary>Click to see the direct usage in Transformers</summary>
137
+
138
+ </details>
139
+ -->
140
+
141
+ <!--
142
+ ### Downstream Usage (Sentence Transformers)
143
+
144
+ You can finetune this model on your own dataset.
145
+
146
+ <details><summary>Click to expand</summary>
147
+
148
+ </details>
149
+ -->
150
+
151
+ <!--
152
+ ### Out-of-Scope Use
153
+
154
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
155
+ -->
156
+
157
+ ## Evaluation
158
+
159
+ ### Metrics
160
+
161
+ #### Semantic Similarity
162
+
163
+ * Dataset: `semrel2024_dev`
164
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.sentence_transformer.evaluation.EmbeddingSimilarityEvaluator)
165
+
166
+ | Metric | Value |
167
+ |:--------------------|:-----------|
168
+ | pearson_cosine | 0.5267 |
169
+ | **spearman_cosine** | **0.5312** |
170
+
171
+ <!--
172
+ ## Bias, Risks and Limitations
173
+
174
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
175
+ -->
176
+
177
+ <!--
178
+ ### Recommendations
179
+
180
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
181
+ -->
182
+
183
+ ## Training Details
184
+
185
+ ### Training Dataset
186
+
187
+ #### Unnamed Dataset
188
+
189
+ * Size: 3,651 training samples
190
+ * Columns: <code>anchor</code> and <code>positive</code>
191
+ * Approximate statistics based on the first 100 samples:
192
+ | | anchor | positive |
193
+ |:---------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
194
+ | type | string | string |
195
+ | modality | text | text |
196
+ | details | <ul><li>min: 6 tokens</li><li>mean: 18.33 tokens</li><li>max: 55 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 20.91 tokens</li><li>max: 63 tokens</li></ul> |
197
+ * Samples:
198
+ | anchor | positive |
199
+ |:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
200
+ | <code>Abantu bagenda, ukeneye ibicuruzwa bidasanzwe, byoroheje cyane hamwe nudushya twikoranabuhanga kandi ntangirira kuriyi myifatire kandi rwose nkunda ubucuruzi bwose.</code> | <code>The people traveling, you need the special product, very light with the technology innovation and I start from this attitude and really I do love all the business.</code> |
201
+ | <code>mugomba guhora mwishimye</code> | <code>you must always be happy</code> |
202
+ | <code>Twabonye izindi ntare mu majyaruguru, ntabwo rero zose zabuze.</code> | <code>And we saw other lions in the northern sector, so not all was lost.</code> |
203
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
204
+ ```json
205
+ {
206
+ "scale": 35,
207
+ "similarity_fct": "cos_sim",
208
+ "gather_across_devices": false,
209
+ "directions": [
210
+ "query_to_doc"
211
+ ],
212
+ "partition_mode": "joint",
213
+ "hardness_mode": null,
214
+ "hardness_strength": 0.0
215
+ }
216
+ ```
217
+
218
+ ### Training Hyperparameters
219
+ #### Non-Default Hyperparameters
220
+
221
+ - `per_device_train_batch_size`: 16
222
+ - `num_train_epochs`: 2
223
+ - `learning_rate`: 5e-06
224
+ - `warmup_steps`: 0.1
225
+ - `per_device_eval_batch_size`: 16
226
+ - `load_best_model_at_end`: True
227
+
228
+ #### All Hyperparameters
229
+ <details><summary>Click to expand</summary>
230
+
231
+ - `per_device_train_batch_size`: 16
232
+ - `num_train_epochs`: 2
233
+ - `max_steps`: -1
234
+ - `learning_rate`: 5e-06
235
+ - `lr_scheduler_type`: linear
236
+ - `lr_scheduler_kwargs`: None
237
+ - `warmup_steps`: 0.1
238
+ - `optim`: adamw_torch
239
+ - `optim_args`: None
240
+ - `weight_decay`: 0.0
241
+ - `adam_beta1`: 0.9
242
+ - `adam_beta2`: 0.999
243
+ - `adam_epsilon`: 1e-08
244
+ - `optim_target_modules`: None
245
+ - `gradient_accumulation_steps`: 1
246
+ - `average_tokens_across_devices`: True
247
+ - `max_grad_norm`: 1.0
248
+ - `label_smoothing_factor`: 0.0
249
+ - `bf16`: False
250
+ - `fp16`: False
251
+ - `bf16_full_eval`: False
252
+ - `fp16_full_eval`: False
253
+ - `tf32`: None
254
+ - `gradient_checkpointing`: False
255
+ - `gradient_checkpointing_kwargs`: None
256
+ - `torch_compile`: False
257
+ - `torch_compile_backend`: None
258
+ - `torch_compile_mode`: None
259
+ - `use_liger_kernel`: False
260
+ - `liger_kernel_config`: None
261
+ - `use_cache`: False
262
+ - `neftune_noise_alpha`: None
263
+ - `torch_empty_cache_steps`: None
264
+ - `auto_find_batch_size`: False
265
+ - `log_on_each_node`: True
266
+ - `logging_nan_inf_filter`: True
267
+ - `include_num_input_tokens_seen`: no
268
+ - `log_level`: passive
269
+ - `log_level_replica`: warning
270
+ - `disable_tqdm`: False
271
+ - `project`: huggingface
272
+ - `trackio_space_id`: None
273
+ - `trackio_bucket_id`: None
274
+ - `trackio_static_space_id`: None
275
+ - `per_device_eval_batch_size`: 16
276
+ - `prediction_loss_only`: True
277
+ - `eval_on_start`: False
278
+ - `eval_do_concat_batches`: True
279
+ - `eval_use_gather_object`: False
280
+ - `eval_accumulation_steps`: None
281
+ - `include_for_metrics`: []
282
+ - `batch_eval_metrics`: False
283
+ - `save_only_model`: False
284
+ - `save_on_each_node`: False
285
+ - `enable_jit_checkpoint`: False
286
+ - `push_to_hub`: False
287
+ - `hub_private_repo`: None
288
+ - `hub_model_id`: None
289
+ - `hub_strategy`: every_save
290
+ - `hub_always_push`: False
291
+ - `hub_revision`: None
292
+ - `load_best_model_at_end`: True
293
+ - `ignore_data_skip`: False
294
+ - `restore_callback_states_from_checkpoint`: False
295
+ - `full_determinism`: False
296
+ - `seed`: 42
297
+ - `data_seed`: None
298
+ - `use_cpu`: False
299
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
300
+ - `parallelism_config`: None
301
+ - `dataloader_drop_last`: False
302
+ - `dataloader_num_workers`: 0
303
+ - `dataloader_pin_memory`: True
304
+ - `dataloader_persistent_workers`: False
305
+ - `dataloader_prefetch_factor`: None
306
+ - `remove_unused_columns`: True
307
+ - `label_names`: None
308
+ - `train_sampling_strategy`: random
309
+ - `length_column_name`: length
310
+ - `ddp_find_unused_parameters`: None
311
+ - `ddp_bucket_cap_mb`: None
312
+ - `ddp_broadcast_buffers`: False
313
+ - `ddp_static_graph`: None
314
+ - `ddp_backend`: None
315
+ - `ddp_timeout`: 1800
316
+ - `fsdp`: []
317
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
318
+ - `deepspeed`: None
319
+ - `debug`: []
320
+ - `skip_memory_metrics`: True
321
+ - `do_predict`: False
322
+ - `resume_from_checkpoint`: None
323
+ - `warmup_ratio`: None
324
+ - `local_rank`: -1
325
+ - `prompts`: None
326
+ - `batch_sampler`: batch_sampler
327
+ - `multi_dataset_batch_sampler`: proportional
328
+ - `router_mapping`: {}
329
+ - `learning_rate_mapping`: {}
330
+
331
+ </details>
332
+
333
+ ### Training Logs
334
+ | Epoch | Step | Training Loss | semrel2024_dev_spearman_cosine |
335
+ |:-------:|:-------:|:-------------:|:------------------------------:|
336
+ | 0.0873 | 20 | 1.9500 | - |
337
+ | 0.1747 | 40 | 1.1022 | - |
338
+ | 0.2620 | 60 | 0.7373 | - |
339
+ | 0.3493 | 80 | 0.5006 | - |
340
+ | 0.4367 | 100 | 0.4222 | - |
341
+ | 0.5240 | 120 | 0.2813 | - |
342
+ | 0.6114 | 140 | 0.2375 | - |
343
+ | 0.6987 | 160 | 0.2114 | - |
344
+ | 0.7860 | 180 | 0.1936 | - |
345
+ | 0.8734 | 200 | 0.1677 | - |
346
+ | 0.9607 | 220 | 0.1842 | - |
347
+ | **1.0** | **229** | **-** | **0.5345** |
348
+ | 1.0480 | 240 | 0.1033 | - |
349
+ | 1.1354 | 260 | 0.1121 | - |
350
+ | 1.2227 | 280 | 0.0862 | - |
351
+ | 1.3100 | 300 | 0.0753 | - |
352
+ | 1.3974 | 320 | 0.1084 | - |
353
+ | 1.4847 | 340 | 0.1165 | - |
354
+ | 1.5721 | 360 | 0.0686 | - |
355
+ | 1.6594 | 380 | 0.1230 | - |
356
+ | 1.7467 | 400 | 0.0922 | - |
357
+ | 1.8341 | 420 | 0.0809 | - |
358
+ | 1.9214 | 440 | 0.1148 | - |
359
+ | 2.0 | 458 | - | 0.5312 |
360
+
361
+ * The bold row denotes the saved checkpoint.
362
+
363
+ ### Training Time
364
+ - **Training**: 6.3 hours
365
+ - **Evaluation**: 1.7 minutes
366
+ - **Total**: 6.4 hours
367
+
368
+ ### Framework Versions
369
+ - Python: 3.10.20
370
+ - Sentence Transformers: 5.5.1
371
+ - Transformers: 5.7.0
372
+ - PyTorch: 2.7.1+cu118
373
+ - Accelerate: 1.13.0
374
+ - Datasets: 5.0.0
375
+ - Tokenizers: 0.22.2
376
+
377
+ ## Citation
378
+
379
+ ### BibTeX
380
+
381
+ #### Sentence Transformers
382
+ ```bibtex
383
+ @inproceedings{reimers-2019-sentence-bert,
384
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
385
+ author = "Reimers, Nils and Gurevych, Iryna",
386
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
387
+ month = "11",
388
+ year = "2019",
389
+ publisher = "Association for Computational Linguistics",
390
+ url = "https://arxiv.org/abs/1908.10084",
391
+ }
392
+ ```
393
+
394
+ #### MultipleNegativesRankingLoss
395
+ ```bibtex
396
+ @misc{oord2019representationlearningcontrastivepredictive,
397
+ title={Representation Learning with Contrastive Predictive Coding},
398
+ author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
399
+ year={2019},
400
+ eprint={1807.03748},
401
+ archivePrefix={arXiv},
402
+ primaryClass={cs.LG},
403
+ url={https://arxiv.org/abs/1807.03748},
404
+ }
405
+ ```
406
+
407
+ <!--
408
+ ## Glossary
409
+
410
+ *Clearly define terms in order to be accessible across audiences.*
411
+ -->
412
+
413
+ <!--
414
+ ## Model Card Authors
415
+
416
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
417
+ -->
418
+
419
+ <!--
420
+ ## Model Card Contact
421
+
422
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
423
+ -->
step23A/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": 768,
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 3072,
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": 12,
23
+ "pad_token_id": 0,
24
+ "position_embedding_type": "absolute",
25
+ "tie_word_embeddings": true,
26
+ "transformers_version": "5.7.0",
27
+ "type_vocab_size": 2,
28
+ "use_cache": false,
29
+ "vocab_size": 30000
30
+ }
step23A/config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "pytorch": "2.7.1+cu118",
4
+ "sentence_transformers": "5.5.1",
5
+ "transformers": "5.7.0"
6
+ },
7
+ "default_prompt_name": null,
8
+ "model_type": "SentenceTransformer",
9
+ "prompts": {
10
+ "document": "",
11
+ "query": ""
12
+ },
13
+ "similarity_fn_name": "cosine"
14
+ }
step23A/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55002cafa2fe0055e08c0da75d5c933d7e71d87b40a08f7477081034c1bc5839
3
+ size 436347736
step23A/modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ ]
step23A/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
+ }
step23A/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
step23A/tokenizer_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "is_local": true,
6
+ "local_files_only": false,
7
+ "mask_token": "[MASK]",
8
+ "max_length": 128,
9
+ "model_max_length": 128,
10
+ "pad_to_multiple_of": null,
11
+ "pad_token": "[PAD]",
12
+ "pad_token_type_id": 0,
13
+ "padding_side": "right",
14
+ "sep_token": "[SEP]",
15
+ "stride": 0,
16
+ "strip_accents": null,
17
+ "tokenize_chinese_chars": true,
18
+ "tokenizer_class": "BertTokenizer",
19
+ "truncation_side": "right",
20
+ "truncation_strategy": "longest_first",
21
+ "unk_token": "[UNK]"
22
+ }