carlesoctav commited on
Commit
08cd874
·
verified ·
1 Parent(s): e3c0e47

Add SetFit model

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
3
+ "pooling_mode_cls_token": false,
4
+ "pooling_mode_mean_tokens": true,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
README.md ADDED
@@ -0,0 +1,313 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ license: apache-2.0
4
+ library_name: setfit
5
+ tags:
6
+ - setfit
7
+ - sentence-transformers
8
+ - text-classification
9
+ - generated_from_setfit_trainer
10
+ base_model: sentence-transformers/paraphrase-mpnet-base-v2
11
+ metrics:
12
+ - accuracy
13
+ - precision
14
+ - recall
15
+ - f1
16
+ widget:
17
+ - text: 'in the shadows of arrakis lie one secret... dune 2 is a masterpiece the film
18
+ starts exactly at the moment the first part ended. although according to villeneuve
19
+ it is designed to be understood without having seen the first part, i highly recommend
20
+ watching dune: part one before.the first half of the film is poetic. great shots
21
+ of the desert. developing new characters (especially fremen) that we had seen
22
+ briefly in the first part and, above all, we can see an evolution of some characters
23
+ that we already knew. i highlight here the character of stilgar (javier bardem)
24
+ and chani (zendaya), who undoubtedly gets one of the great performances of the
25
+ film. bravo to villeneuve for having developed chani''s character (wasted in herbert''s
26
+ novel), here chani shines until the end. bardem, is also a fundamental piece that
27
+ gives freshness to the serious and majestic plot, adding dynamism and even funny
28
+ moments.the second half of the film goes to paul atreides. i can''t say too much
29
+ here, only that we see one of the greatest evolutions of a character that i''ve
30
+ been seen in cinema. the last 45 minutes of the film are simply some of the best
31
+ i have ever witnessed on a screen. everything that was harvested in dune: part
32
+ one now makes complete sense. the characters of florence pugh and austin butler
33
+ stand out, the first one, in the background but being a totally key character,
34
+ especially for everything that is going to come (messiah); and the second one
35
+ for his excellent performance as a villain (far above the baron, a villain who
36
+ personally never convinced me).all of this is great, however, an element of equal
37
+ importance to everything mentioned was: the music of hans zimmer. spectacular
38
+ songs and sounds that make you simply feel vibrate (literally... if you see it
39
+ in imax) every moment inside you. it is no coincidence that nolan''s best films
40
+ have zimmer''s seal. his music creates art. his music creates blockbusters. not
41
+ because it''s commercial, but because it creates emotions within you. every note,
42
+ sound and song are placed at the right time and moment in the film. hans zimmer''s
43
+ music is undoubtedly the specie, the water of life... of dune: part two.with all
44
+ this we are left with what is not only the best science fiction film ever created,
45
+ but what is (be careful what i am going to say) the best film of this 21st century
46
+ (at least to date), with permission from the dark knight and interstellar.villeneuve
47
+ gives us a great masterpiece. here, however, the messiah is not paul atreides,
48
+ nor villeneuve himself... the messiah is the spectator. you. this film will push
49
+ you to be a better you, it will make you dream big, it will remind you that, like
50
+ paul, you can decide when to lead your life and inspire others. you are the chosen
51
+ one to, within a simple movie, find the gold that will make you better in your
52
+ daily life.this valuable lesson is not achieved by ordinary pieces of art, but
53
+ only by a few works... which some of us dare to call... masterpieces.because...
54
+ in the shadows of arrakis lie one secret... dune 2 is a masterpiece.'
55
+ - text: does justice to the books awesome! stunning! the film follows through the
56
+ spirit of the books with the ever-present internal turmoil of paul. it has the
57
+ feel of mysticism of the books. the cinematography is spectacular and so is hans
58
+ zimmer's music. the freemen and harkons are depicted really well and so is the
59
+ planet dune. at the same time, there are many details and happenings left behind,
60
+ so for people who have not read the books it's a bit difficult to follow the narrative.
61
+ the movie doesn't follow thoroughly the destiny of the other of the closest friends
62
+ and servents of the duke, who survived the massacre in part 1. 5 out of 8 found
63
+ this helpful. was this review helpful? sign in to vote. permalink
64
+ - text: epic but empty i'll precursor this by saying 1) i have not read the books
65
+ 2) i am a huge denis villeneuve fan 3) i found part one underwhelming.while i
66
+ find there to be many issues with this film, perhaps its biggest weakness imo
67
+ is that i hold no emotional connection with any of the characters, despite the
68
+ film's lengthy runtime. the protagonist's mother is written as incredibly annoying,
69
+ the villains are underused, florence pugh's character has 0 likability and acts
70
+ simply as a story device. bardem's character is ok and funny at times and brolin
71
+ doesn't have a standout moment. zendaya's character is the sole exception to this,
72
+ who is the beating heart of the film.at times, i also felt that chalamet, despite
73
+ being an amazing actor, is perhaps miscast, though having not read the material,
74
+ i cannot comment further on this.the pacing felt off, as it stays too long in
75
+ places it shouldn't, while sacrificing moments that could linger longer. this
76
+ coming from a person that enjoys long epics and slow burn films. the movie looks
77
+ outstanding though feels closer to a connection of rushed story beats. the direction
78
+ it takes with the main character also does not feel earned.perhaps the second
79
+ biggest issue is that i do not totally buy into the world that has been created.
80
+ it feels large but empty and lacking character. almost too clean and strange for
81
+ the sake of it. style over substance. we stay for most of the time in one or two
82
+ places which doesn't help. there were also some weird choice of cuts and jumps
83
+ in scenes that hampered the flow of the film.with that said, there are a couple
84
+ of epic moments that stood out, which are 1) the whole zendaya bazooka scene and
85
+ 2) the giant worm riding.overall, the film is enjoyable. however without engaging
86
+ characters, a believable world, and pacing issues, the film falls short of greatness,
87
+ perhaps way short.
88
+ - text: pure respect for the original book dune has got to be one of the hardest books
89
+ to translate into a film. so much of the writing comes from within each characters
90
+ head.watching denis villeneuve take every important detail and bring it to life
91
+ was nothing short of pure wonder. you can really tell that dune was one of his
92
+ favourite stories. his visual direction, the breathtaking audio, the beautiful
93
+ sets, and the top-tier acting are all big elements in the overall production...
94
+ but sometimes there's there's something else beyond that. the passion that really
95
+ shines through.one of the best movies ever made. period. kudos to everyone involved
96
+ in every aspect of the production. and a huge thank you to the studio for allowing
97
+ these people to perform their craft to the best of their abilities. 2 out of 3
98
+ found this helpful. was this review helpful? sign in to vote. permalink
99
+ - text: 'movie-making excellence!!! denis villeneuve''s dune: part two is one of the
100
+ best sci-fi fantasy movies to be ever produced.the adapted screenplay is almost
101
+ true to its source material. the "spice" of the book has been captured faithfully
102
+ and even there are few deviations from the book, i choose to believe the same
103
+ would have taken to adapt the movie in best possible manner.the soundtrack of
104
+ the movie by the han zimmer elevates the mood and make each scene feel meaningful
105
+ and epic. the sound design complements the visual prowess perfectly.dennis villeneue''s
106
+ dune trilogy will be his magnus opus. each shot has been carefully crafted to
107
+ almost perfection leaving no waste behind. we are truly blessed to witness his
108
+ work.with an ensemble cast of industry veterans and hollywood''s future biggest
109
+ and brightest stars, the casting of new characters can be considered as great.
110
+ each actor/actress have done justice to their roles with standout performances
111
+ by rebecca ferguson, zendaya, timothee and austin butler.production design, costumes
112
+ and make-up is excellenta must watch for every movie-goer. experience it in imax
113
+ if possible.'
114
+ pipeline_tag: text-classification
115
+ inference: true
116
+ model-index:
117
+ - name: SetFit with sentence-transformers/paraphrase-mpnet-base-v2 on data/raw/15239678.jsonl
118
+ results:
119
+ - task:
120
+ type: text-classification
121
+ name: Text Classification
122
+ dataset:
123
+ name: data/raw/15239678.jsonl
124
+ type: unknown
125
+ split: test
126
+ metrics:
127
+ - type: accuracy
128
+ value: 0.8571428571428571
129
+ name: Accuracy
130
+ - type: precision
131
+ value: 0.9959514170040485
132
+ name: Precision
133
+ - type: recall
134
+ value: 0.8512110726643599
135
+ name: Recall
136
+ - type: f1
137
+ value: 0.917910447761194
138
+ name: F1
139
+ ---
140
+
141
+ # SetFit with sentence-transformers/paraphrase-mpnet-base-v2 on data/raw/15239678.jsonl
142
+
143
+ This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [sentence-transformers/paraphrase-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-mpnet-base-v2) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
144
+
145
+ The model has been trained using an efficient few-shot learning technique that involves:
146
+
147
+ 1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
148
+ 2. Training a classification head with features from the fine-tuned Sentence Transformer.
149
+
150
+ ## Model Details
151
+
152
+ ### Model Description
153
+ - **Model Type:** SetFit
154
+ - **Sentence Transformer body:** [sentence-transformers/paraphrase-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-mpnet-base-v2)
155
+ - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
156
+ - **Maximum Sequence Length:** 512 tokens
157
+ - **Number of Classes:** 2 classes
158
+ <!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
159
+ - **Language:** en
160
+ - **License:** apache-2.0
161
+
162
+ ### Model Sources
163
+
164
+ - **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
165
+ - **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
166
+ - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
167
+
168
+ ### Model Labels
169
+ | Label | Examples |
170
+ |:---------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
171
+ | negative | <ul><li>'slow, uninspiring, borng i think the second film just confirmed that dune isn\'t for me.i found the first one rather long and a bit boring. this second part didn\'t do much to change my mind. i gave it a try through.some things didn\'t make sense.1. why, if there are rifles/laser weapons are the majority of the battles found hand to hand with swords? especially when protecting the valuable spice depot on arrakis. it seemed like a really illogical move and a terrible military tactic. i felt like it was done more for the visual "spectacle" of having hand to hand fighting but it didn\'t make sense in universe.2. the fremen seemingly have to trek great distances to get to these attack sites, there was a scene near the end where their army all.aprar st the top of the sand dune by the depot and would be absolutely knackered by the time they traversed the miles of sand between them and the enemy3. this brings me on to my point about them "riding" the worms as they seemingly have little control apart from nominal left and right movement. you never see them stopping the worms and dismounting. the worms never seem to stop so you would likely have to leap off, almost certainly to your death.linked into this there were scenes where there was a whole caravan of people including lady jessica in a fremen style sedan chair, how the hell did they all safely mount the worm and remain tethered and again how did they all dismount?lastly there was the horrible dirge of hans zimmer\'s "score". i know this is just personal taste, but i prefer music with a theme and melody rather than just atonal blats from a foghorn.i\'m sure dune fans will absolutely love this and i\'m pleased they\'ve got a faithful adaptation. i also recognise the efforts of the cast and crew i just found it to be overly long and a bit dull.this was a watch once and don\'t need to see it again film for me.i won\'t be watching the next one.so caught up in it\'s own mythology that it fails to give any interesting characters that you can root for.it inspires no emotional engagement when the characters are all dull.visually bland.'</li><li>"broke the story for no reason movies don't perfectly reflections the book and we shouldn't expect them to.that said, dune part 2 diverged in key areas for no good reason.the most inexplicable is that the whole storyline from 'will the tribe accept paul and jessica?' to paul uniting the tribes and leading them in the huge final battle takes place while jessica is pregnant. in the book her child is already about 3 - a far more plausible timescale.no changes to the movie would have been needed except adding the birth and the character of alia in a few scenes - the key one being the between the baron and the emperor.also, chani is shown as opposing paul and leaves him, the opposite of their relationship in the book.it's hard to see how a sequel can make these changes fit the storyline while keeping it intact."</li><li>"it just didn't work for me my apologies to all who were enthralled by dune ii. i respect your experience. maybe if i'd have seen dune i it would have helped but i don't think so. the jerry-rigging of several religions seemed pretentious and trite while the half-dozen plot threads unraveled regularly. sweeping cig backgrounds soon became tiresome. trying to keep supporting characters straight was difficult. i tried but even at the end i was unsure of what had happened to relationships, especially to the women characters. critics have outlined what it all was supposed to be about, but i found it a bit dull. maybe i'll wait for dune i on the streams. apologies to all. 5 out of 21 found this helpful. was this review helpful? sign in to vote. permalink"</li></ul> |
172
+ | positive | <ul><li>"a visual masterpiece dune part 2 is dope to the most extent.visually wonderful and elevative screenplay works big time.that sound mixing was from a different planet, outrageous at times. i'd be damned if visuals and sound won't win the oscars.it stays mostly true to the novel. it's been a few years since i've read it but i didn't find stark differences.there's an ample scope for all the lead cast and everyone did a fantastic job. timothee chalamet as paul artreidis and zendaya as chani had a terrific screen presence.a must watch.at times i felt that it was an indian film due to the screenplay and action sequences.8.5 stars."</li><li>"no words the best sequel i have ever seen in cinema. a masterpiece.coming into dune part two on day 2 of it's uk wide release and having already seen the unwavering reviews i was in high anticipation for what i believed could be the triumph in cinema we have been needing for quite some time. a feat that could actually set me up for disappointment. however, true to the words of my predecessors who saw the film before me, it was simply otherworldly.denis is a visionary. a creative mind that only comes around in hollywood once in a blue moon. this film is beautiful, it's vivid, it's dense in all the best ways.imax has to be a non negotiable. the images and sound are unlike many movies i have ever seen.go and see this picture immediately. 3 out of 4 found this helpful. was this review helpful? sign in to vote. permalink"</li><li>"a cinematic masterpiece.. i can't believe my eyes what just i experienced in theatre, this movie is one of the best cinematic experience i've ever had.. from opening scene to end credit every second is worth it.. epic score by hans zimmer elevates the experience, filled with beautiful shots and cinematography to a great scrrenplay and some top notch acting by every cast member dune 2 will be remembered as one of the best films of this generation even after 50 years later that's my guarantee.. denis villeneuve is one of the best director of this generation who gave us masterpiece like blade runner 2049 and currently working on 3rd part of this trilogy which i can't wait to see.. action scenes were great featuring big ships, blasters laser guns and every other kind of weapons, sound effects were amazing but most importantly screenplay was well paced and story featuring blend of sci fi and fantasy elements is absolute best of the best even though it is an adaptation of 1965 novel of same name it is one of the best adaptations ever.. i loved both movies and can't wait to see what happens in future because i enjoy films about the chosen one prophecy like star wars, the matrix and now this.. i won't give any spoiler here and will not talk about anything shown in the movie since you need to see this movie for yourself to feel the magic.. don't miss it at any cost.. watch it on the biggest screen possible especially imax to enjoy epic sound effects and see the larger than life picture you'll love it.."</li></ul> |
173
+
174
+ ## Evaluation
175
+
176
+ ### Metrics
177
+ | Label | Accuracy | Precision | Recall | F1 |
178
+ |:--------|:---------|:----------|:-------|:-------|
179
+ | **all** | 0.8571 | 0.9960 | 0.8512 | 0.9179 |
180
+
181
+ ## Uses
182
+
183
+ ### Direct Use for Inference
184
+
185
+ First install the SetFit library:
186
+
187
+ ```bash
188
+ pip install setfit
189
+ ```
190
+
191
+ Then you can load this model and run inference.
192
+
193
+ ```python
194
+ from setfit import SetFitModel
195
+
196
+ # Download from the 🤗 Hub
197
+ model = SetFitModel.from_pretrained("carlesoctav/SentimentClassifierDune64shot")
198
+ # Run inference
199
+ preds = model("does justice to the books awesome! stunning! the film follows through the spirit of the books with the ever-present internal turmoil of paul. it has the feel of mysticism of the books. the cinematography is spectacular and so is hans zimmer's music. the freemen and harkons are depicted really well and so is the planet dune. at the same time, there are many details and happenings left behind, so for people who have not read the books it's a bit difficult to follow the narrative. the movie doesn't follow thoroughly the destiny of the other of the closest friends and servents of the duke, who survived the massacre in part 1. 5 out of 8 found this helpful. was this review helpful? sign in to vote. permalink")
200
+ ```
201
+
202
+ <!--
203
+ ### Downstream Use
204
+
205
+ *List how someone could finetune this model on their own dataset.*
206
+ -->
207
+
208
+ <!--
209
+ ### Out-of-Scope Use
210
+
211
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
212
+ -->
213
+
214
+ <!--
215
+ ## Bias, Risks and Limitations
216
+
217
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
218
+ -->
219
+
220
+ <!--
221
+ ### Recommendations
222
+
223
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
224
+ -->
225
+
226
+ ## Training Details
227
+
228
+ ### Training Set Metrics
229
+ | Training set | Min | Median | Max |
230
+ |:-------------|:----|:---------|:-----|
231
+ | Word count | 108 | 228.9219 | 1595 |
232
+
233
+ | Label | Training Sample Count |
234
+ |:---------|:----------------------|
235
+ | negative | 64 |
236
+ | positive | 64 |
237
+
238
+ ### Training Hyperparameters
239
+ - batch_size: (16, 16)
240
+ - num_epochs: (1, 1)
241
+ - max_steps: -1
242
+ - sampling_strategy: oversampling
243
+ - body_learning_rate: (2e-05, 1e-05)
244
+ - head_learning_rate: 0.01
245
+ - loss: CosineSimilarityLoss
246
+ - distance_metric: cosine_distance
247
+ - margin: 0.25
248
+ - end_to_end: False
249
+ - use_amp: False
250
+ - warmup_proportion: 0.1
251
+ - seed: 42
252
+ - eval_max_steps: -1
253
+ - load_best_model_at_end: True
254
+
255
+ ### Training Results
256
+ | Epoch | Step | Training Loss | Validation Loss |
257
+ |:-------:|:-------:|:-------------:|:---------------:|
258
+ | 0.0019 | 1 | 0.2744 | - |
259
+ | 0.0962 | 50 | 0.0513 | - |
260
+ | 0.1923 | 100 | 0.0022 | - |
261
+ | 0.2885 | 150 | 0.0003 | - |
262
+ | 0.3846 | 200 | 0.0001 | - |
263
+ | 0.4808 | 250 | 0.0001 | - |
264
+ | 0.5769 | 300 | 0.0001 | - |
265
+ | 0.6731 | 350 | 0.0001 | - |
266
+ | 0.7692 | 400 | 0.0001 | - |
267
+ | 0.8654 | 450 | 0.0001 | - |
268
+ | 0.9615 | 500 | 0.0001 | - |
269
+ | **1.0** | **520** | **-** | **0.1845** |
270
+
271
+ * The bold row denotes the saved checkpoint.
272
+ ### Framework Versions
273
+ - Python: 3.10.11
274
+ - SetFit: 1.0.3
275
+ - Sentence Transformers: 2.5.1
276
+ - Transformers: 4.38.2
277
+ - PyTorch: 2.0.1
278
+ - Datasets: 2.18.0
279
+ - Tokenizers: 0.15.2
280
+
281
+ ## Citation
282
+
283
+ ### BibTeX
284
+ ```bibtex
285
+ @article{https://doi.org/10.48550/arxiv.2209.11055,
286
+ doi = {10.48550/ARXIV.2209.11055},
287
+ url = {https://arxiv.org/abs/2209.11055},
288
+ author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
289
+ keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
290
+ title = {Efficient Few-Shot Learning Without Prompts},
291
+ publisher = {arXiv},
292
+ year = {2022},
293
+ copyright = {Creative Commons Attribution 4.0 International}
294
+ }
295
+ ```
296
+
297
+ <!--
298
+ ## Glossary
299
+
300
+ *Clearly define terms in order to be accessible across audiences.*
301
+ -->
302
+
303
+ <!--
304
+ ## Model Card Authors
305
+
306
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
307
+ -->
308
+
309
+ <!--
310
+ ## Model Card Contact
311
+
312
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
313
+ -->
config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "exp/Dune2Classifier64shot/step_520",
3
+ "architectures": [
4
+ "MPNetModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-05,
15
+ "max_position_embeddings": 514,
16
+ "model_type": "mpnet",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 1,
20
+ "relative_attention_num_buckets": 32,
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.38.2",
23
+ "vocab_size": 30527
24
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "2.0.0",
4
+ "transformers": "4.7.0",
5
+ "pytorch": "1.9.0+cu102"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null
9
+ }
config_setfit.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "labels": [
3
+ "negative",
4
+ "positive"
5
+ ],
6
+ "normalize_embeddings": false
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ea14d6928c5a41ab0f31eace5c153fe78a34996cf2bade02d6fb97514dc80c9
3
+ size 437967672
model_head.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d47ad04c5caf47e03c41efcd026345e1455e6170d4dfeef5b712ba1cabb0287
3
+ size 6997
modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ }
14
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "[UNK]",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "104": {
28
+ "content": "[UNK]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "30526": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "do_basic_tokenize": true,
48
+ "do_lower_case": true,
49
+ "eos_token": "</s>",
50
+ "mask_token": "<mask>",
51
+ "max_length": 512,
52
+ "model_max_length": 512,
53
+ "never_split": null,
54
+ "pad_to_multiple_of": null,
55
+ "pad_token": "<pad>",
56
+ "pad_token_type_id": 0,
57
+ "padding_side": "right",
58
+ "sep_token": "</s>",
59
+ "stride": 0,
60
+ "strip_accents": null,
61
+ "tokenize_chinese_chars": true,
62
+ "tokenizer_class": "MPNetTokenizer",
63
+ "truncation_side": "right",
64
+ "truncation_strategy": "longest_first",
65
+ "unk_token": "[UNK]"
66
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff