JJTsao commited on
Commit
2682721
·
verified ·
1 Parent(s): 9a3dfcb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +61 -562
README.md CHANGED
@@ -1,592 +1,91 @@
1
  ---
 
2
  tags:
 
 
3
  - sentence-transformers
4
- - sentence-similarity
5
  - feature-extraction
6
- - generated_from_trainer
7
- - dataset_size:32382
8
  - loss:MultipleNegativesRankingLoss
9
- base_model: BAAI/bge-base-en-v1.5
10
- widget:
11
- - source_sentence: What are some must-watch animation films from the 2000s reflecting
12
- on dying and death and loss of loved one
13
- sentences:
14
- - 'Title: Che: Part One
15
-
16
- Genres: Drama, History, War
17
-
18
- Overview: The Argentine, begins as Che and a band of Cuban exiles (led by Fidel
19
- Castro) reach the Cuban shore from Mexico in 1956. Within two years, they mobilized
20
- popular support and an army and toppled the U.S.-friendly regime of dictator Fulgencio
21
- Batista.
22
-
23
- Tagline: Everyone knows the icon. Few know the man.
24
-
25
- Director: Steven Soderbergh
26
-
27
- Stars: Benicio del Toro, Demián Bichir, Santiago Cabrera
28
-
29
- Release Date: 2008-09-05
30
-
31
- Keywords: hero, central intelligence agency (cia), cuba, biography, che guevara,
32
- fidel castro, cuban revolution, 1950s'
33
- - 'Title: Ice Age
34
-
35
- Genres: Animation, Comedy, Family, Adventure
36
-
37
- Overview: With the impending ice age almost upon them, a mismatched trio of prehistoric
38
- critters – Manny the woolly mammoth, Diego the saber-toothed tiger and Sid the
39
- giant sloth – find an orphaned infant and decide to return it to its human parents.
40
- Along the way, the unlikely allies become friends but, when enemies attack, their
41
- quest takes on far nobler aims.
42
-
43
- Tagline: They came. They thawed. They conquered.
44
-
45
- Director: Chris Wedge
46
-
47
- Stars: Ray Romano, John Leguizamo, Denis Leary
48
-
49
- Release Date: 2002-03-10
50
-
51
- Keywords: dying and death, human evolution, parent child relationship, squirrel,
52
- loss of loved one, mammoth, sloth, villain, stone age, prehistory, prehistoric
53
- creature, saber-toothed tiger, cavemen, road movie, neanderthal, prehistoric man,
54
- dodo bird, nut, ground sloth, cheerful'
55
- - 'Title: Castle in the Sky
56
-
57
- Genres: Adventure, Fantasy, Animation, Action, Family
58
-
59
- Overview: A young boy and a girl with a magic crystal must race against pirates
60
- and foreign agents in a search for a legendary floating castle.
61
-
62
- Tagline: One day, a girl came down from the sky…
63
-
64
- Director: Hayao Miyazaki
65
-
66
- Stars: Keiko Yokozawa, Mayumi Tanaka, Minori Terada
67
-
68
- Release Date: 1986-08-02
69
-
70
- Keywords: army, flying, magic, mine, castle, lost civilisation, pirate, orphan,
71
- government agent, floating, pendant, blue sky, air pirate, crystal, anime, adventure,
72
- amused'
73
- - source_sentence: Stories of desperate characters lured into a life of crime for
74
- financial gain.
75
- sentences:
76
- - 'Title: Emily the Criminal
77
-
78
- Genres: Crime, Drama, Thriller
79
-
80
- Overview: Desperate for income, Emily takes a shady gig buying goods with stolen
81
- credit cards supplied by a charismatic middleman named Youcef. Seduced by the
82
- quick cash and illicit thrills, they hatch a plan to take their business to the
83
- next level.
84
-
85
- Tagline: High risks come with even higher rewards.
86
-
87
- Director: John Patton Ford
88
-
89
- Stars: Aubrey Plaza, Theo Rossi, Megalyn Echikunwoke
90
-
91
- Release Date: 2022-08-12
92
-
93
- Keywords: job interview, organized crime, los angeles, california, criminal underworld,
94
- credit card fraud, criminal record, food delivery, student debt'
95
- - 'Title: The Mummy
96
-
97
- Genres: Adventure, Action, Fantasy
98
-
99
- Overview: Dashing legionnaire Rick O''Connell stumbles upon the hidden ruins of
100
- Hamunaptra while in the midst of a battle to claim the area in 1920s Egypt. It
101
- has been over three thousand years since former High Priest Imhotep suffered a
102
- fate worse than death as a punishment for a forbidden love—along with a curse
103
- that guarantees eternal doom upon the world if he is ever awoken.
104
-
105
- Tagline: The sands will rise. The heavens will part. The power will be unleashed.
106
-
107
- Director: Stephen Sommers
108
-
109
- Stars: Brendan Fraser, Rachel Weisz, John Hannah
110
-
111
- Release Date: 1999-04-16
112
-
113
- Keywords: egypt, cairo, library, secret passage, pastor, pyramid, sandstorm, solar
114
- eclipse, mummy, foreign legion, nile, secret society, treasure hunt, remake, archaeologist,
115
- tomb, book of the dead, ancient egypt, opposites attract, 1920s, pharoah, good
116
- versus evil'
117
- - 'Title: Reality Bites
118
-
119
- Genres: Drama, Romance, Comedy
120
-
121
- Overview: A small circle of friends suffering from post-collegiate blues must
122
- confront the hard truth about life, love and the pursuit of gainful employment.
123
- As they struggle to map out survival guides for the future, the Gen-X quartet
124
- soon begins to realize that reality isn''t all it''s cracked up to be.
125
-
126
- Tagline: A comedy about love in the ''90s
127
-
128
- Director: Ben Stiller
129
-
130
- Stars: Winona Ryder, Ethan Hawke, Janeane Garofalo
131
-
132
- Release Date: 1994-02-18
133
-
134
- Keywords: yuppie, roommates, generations conflict, cohabitant, cabriolet, unemployed'
135
- - source_sentence: Heartwarming animated dramas about friendship and ambition.
136
- sentences:
137
- - "Title: Trapezium\nGenres: Animation, Drama, Music\nOverview: High school student\
138
- \ Yu Azuma will do whatever it takes to become an idol. Ready to make her dream\
139
- \ a reality, she recruits three girls from the four corners of her prefecture.\
140
- \ But the road to stardom hides unexpected trials.\nTagline: \nDirector: Masahiro\
141
- \ Shinohara\nStars: Asaki Yuikawa, Hina Youmiya, Reina Ueda\nRelease Date: 2024-05-10\n\
142
- Keywords: based on novel or book, anime, idol group, idol"
143
- - "Title: Jaat\nGenres: Action, Drama\nOverview: After a ruffian accidentally ruins\
144
- \ his meal, a traveler retorts violently and demands an apology, unintentionally\
145
- \ finding himself in a web of violence, crime and corruption spun by a feared\
146
- \ criminal.\nTagline: \nDirector: Gopichand Malineni\nStars: Sunny Deol, Randeep\
147
- \ Hooda, Saiyami Kher\nRelease Date: 2025-04-10\nKeywords: bollywood"
148
- - 'Title: Terminator: Dark Fate
149
-
150
- Genres: Science Fiction, Action, Adventure, Thriller
151
-
152
- Overview: Decades after Sarah Connor prevented Judgment Day, a lethal new Terminator
153
- is sent to eliminate the future leader of the resistance. In a fight to save mankind,
154
- battle-hardened Sarah Connor teams up with an unexpected ally and an enhanced
155
- super soldier to stop the deadliest Terminator yet.
156
-
157
- Tagline: Welcome to the day after judgement day
158
-
159
- Director: Tim Miller
160
-
161
- Stars: Linda Hamilton, Arnold Schwarzenegger, Mackenzie Davis
162
-
163
- Release Date: 2019-10-23
164
-
165
- Keywords: helicopter, mexico city, mexico, artificial intelligence (a.i.), cyborg,
166
- dystopia, time travel, sequel, plane crash'
167
- - source_sentence: Teen-centric horror movie with a chilling alien invasion plot
168
- sentences:
169
- - 'Title: The Faculty
170
-
171
- Genres: Horror, Science Fiction
172
-
173
- Overview: When some very creepy things start happening around school, the kids
174
- at Herrington High make the chilling discovery that confirms their worst suspicions:
175
- their teachers really are from another planet!
176
-
177
- Tagline: Take me to your teacher.
178
-
179
- Director: Robert Rodriguez
180
-
181
- Stars: Josh Hartnett, Elijah Wood, Jordana Brewster
182
-
183
- Release Date: 1998-12-25
184
-
185
- Keywords: drug dealer, high school, homophobia, paranoia, alien, teacher, alien
186
- invasion, drugs, alien infection, social status, parasite, creature feature, school
187
- nurse, body snatchers, alien parasites, parasites, body horror, teenager, teen
188
- scream'
189
- - 'Title: Mystic River
190
-
191
- Genres: Thriller, Crime, Drama, Mystery
192
-
193
- Overview: The lives of three men who were childhood friends are shattered when
194
- one of them suffers a family tragedy.
195
-
196
- Tagline: We bury our sins, we wash them clean.
197
-
198
- Director: Clint Eastwood
199
-
200
- Stars: Sean Penn, Tim Robbins, Kevin Bacon
201
-
202
- Release Date: 2003-10-07
203
-
204
- Keywords: child abuse, sexual abuse, workers'' quarter, based on novel or book,
205
- loss of loved one, suppressed past, boston, massachusetts, repayment, arbitrary
206
- law, loyalty, massachusetts, whodunit, biting, guilt, childhood sexual abuse,
207
- mysterious, grim, vengeance, poker race, sex abuse, forceful, ominous'
208
- - 'Title: On Swift Horses
209
-
210
- Genres: Drama, Romance
211
-
212
- Overview: In the 1950s, a seemingly sensible newlywed and her wayward brother-in-law
213
- undertake parallel journeys of risk, romance, and self-discovery.
214
-
215
- Tagline: How much would you gamble for love?
216
-
217
- Director: Daniel Minahan
218
-
219
- Stars: Daisy Edgar-Jones, Jacob Elordi, Will Poulter
220
-
221
- Release Date: 2025-04-24
222
-
223
- Keywords: casino, based on novel or book, gambling, lesbian relationship, 1950s,
224
- gay romance, gay relationship, same sex relationship, wistful, queer cinema, san
225
- diego, lgbt history, queer history, lesbian couple, gay couple, romantic, ambiguous,
226
- melodramatic, horse riding, queer love, queer romance, gay men, gay love story,
227
- gay love, lgbtq, queer sexuality, lgbtq+'
228
- - source_sentence: Movies about the dark side of Hollywood fame and power abuse
229
- sentences:
230
- - 'Title: Frances
231
-
232
- Genres: Drama
233
-
234
- Overview: The true story of Frances Farmer''s meteoric rise to fame in Hollywood
235
- and the tragic turn her life took when she was blacklisted.
236
-
237
- Tagline: Her story is shocking, disturbing, compelling... and true.
238
-
239
- Director: Graeme Clifford
240
-
241
- Stars: Jessica Lange, Sam Shepard, Kim Stanley
242
-
243
- Release Date: 1982-12-03
244
-
245
- Keywords: strong woman, falsely accused, insanity, movie business, feminism, biography,
246
- based on true story, evil mother, psychiatric hospital, female protagonist, hollywood,
247
- wrongful imprisonment, lost love, wrongful arrest, wrongful conviction, wrong
248
- diagnosis, lobotomy, frances farmer, power abuse, mother daughter relationship'
249
- - "Title: Come Drink with Me\nGenres: Action, Adventure\nOverview: Golden Swallow\
250
- \ is a fighter-for-hire who has been contracted by the local government to retrieve\
251
- \ the governor's kidnapped son. Holding him is a group of rebels who are demanding\
252
- \ that their leader be released from prison in return for the captured son. After\
253
- \ a brief encounter with the gang at a local restaurant, Golden Swallow is joined\
254
- \ by an inebriated wanderer Drunken Cat who aids her in her mission.\nTagline:\
255
- \ \nDirector: King Hu\nStars: Cheng Pei-Pei, Elliot Ngok Wah, Chen Hung-Lieh\n\
256
- Release Date: 1966-04-07\nKeywords: kung fu, hero, showdown, kidnapping, warrior\
257
- \ woman, gore, fistfight, forest, waterfall, murder, tough girl, monastery, heroine,\
258
- \ inn, severed hand, wuxia, kung fu master, inner strength, beggar clan, tavern\
259
- \ fight"
260
- - "Title: Deva\nGenres: Action, Thriller, Mystery, Crime\nOverview: Dev Ambre, a\
261
- \ ruthless cop, loses his memory in an accident just after he has finished solving\
262
- \ a murder case and now has to reinvestigate it while keeping his memory loss\
263
- \ a secret from everyone except DCP Farhan Khan.\nTagline: \nDirector: Rosshan\
264
- \ Andrrews\nStars: Shahid Kapoor, Pooja Hegde, Pavail Gulati\nRelease Date: 2025-01-31\n\
265
- Keywords: remake, based on movie, bollywood"
266
- pipeline_tag: sentence-similarity
267
  library_name: sentence-transformers
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
268
  ---
269
 
270
- # SentenceTransformer based on BAAI/bge-base-en-v1.5
271
 
272
- This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
273
 
274
- ## Model Details
275
 
276
- ### Model Description
277
- - **Model Type:** Sentence Transformer
278
- - **Base model:** [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5) <!-- at revision a5beb1e3e68b9ab74eb54cfd186867f64f240e1a -->
279
- - **Maximum Sequence Length:** 512 tokens
280
- - **Output Dimensionality:** 768 dimensions
281
- - **Similarity Function:** Cosine Similarity
282
- <!-- - **Training Dataset:** Unknown -->
283
- <!-- - **Language:** Unknown -->
284
- <!-- - **License:** Unknown -->
285
 
286
- ### Model Sources
287
 
288
- - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
289
- - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
290
- - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
291
 
292
- ### Full Model Architecture
 
 
 
293
 
294
- ```
295
- SentenceTransformer(
296
- (0): Transformer({'max_seq_length': 512, 'do_lower_case': True}) with Transformer model: BertModel
297
- (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
298
- (2): Normalize()
299
- )
300
- ```
301
 
302
- ## Usage
303
 
304
- ### Direct Usage (Sentence Transformers)
 
 
 
 
 
 
305
 
306
- First install the Sentence Transformers library:
 
 
 
307
 
308
- ```bash
309
- pip install -U sentence-transformers
310
- ```
311
 
312
- Then you can load this model and run inference.
 
313
  ```python
314
  from sentence_transformers import SentenceTransformer
315
 
316
- # Download from the 🤗 Hub
317
- model = SentenceTransformer("sentence_transformers_model_id")
318
- # Run inference
319
- sentences = [
320
- 'Movies about the dark side of Hollywood fame and power abuse',
321
- "Title: Frances\nGenres: Drama\nOverview: The true story of Frances Farmer's meteoric rise to fame in Hollywood and the tragic turn her life took when she was blacklisted.\nTagline: Her story is shocking, disturbing, compelling... and true.\nDirector: Graeme Clifford\nStars: Jessica Lange, Sam Shepard, Kim Stanley\nRelease Date: 1982-12-03\nKeywords: strong woman, falsely accused, insanity, movie business, feminism, biography, based on true story, evil mother, psychiatric hospital, female protagonist, hollywood, wrongful imprisonment, lost love, wrongful arrest, wrongful conviction, wrong diagnosis, lobotomy, frances farmer, power abuse, mother daughter relationship",
322
- "Title: Come Drink with Me\nGenres: Action, Adventure\nOverview: Golden Swallow is a fighter-for-hire who has been contracted by the local government to retrieve the governor's kidnapped son. Holding him is a group of rebels who are demanding that their leader be released from prison in return for the captured son. After a brief encounter with the gang at a local restaurant, Golden Swallow is joined by an inebriated wanderer Drunken Cat who aids her in her mission.\nTagline: \nDirector: King Hu\nStars: Cheng Pei-Pei, Elliot Ngok Wah, Chen Hung-Lieh\nRelease Date: 1966-04-07\nKeywords: kung fu, hero, showdown, kidnapping, warrior woman, gore, fistfight, forest, waterfall, murder, tough girl, monastery, heroine, inn, severed hand, wuxia, kung fu master, inner strength, beggar clan, tavern fight",
323
- ]
324
- embeddings = model.encode(sentences)
325
- print(embeddings.shape)
326
- # [3, 768]
327
-
328
- # Get the similarity scores for the embeddings
329
- similarities = model.similarity(embeddings, embeddings)
330
- print(similarities.shape)
331
- # [3, 3]
332
- ```
333
-
334
- <!--
335
- ### Direct Usage (Transformers)
336
-
337
- <details><summary>Click to see the direct usage in Transformers</summary>
338
-
339
- </details>
340
- -->
341
-
342
- <!--
343
- ### Downstream Usage (Sentence Transformers)
344
-
345
- You can finetune this model on your own dataset.
346
-
347
- <details><summary>Click to expand</summary>
348
-
349
- </details>
350
- -->
351
-
352
- <!--
353
- ### Out-of-Scope Use
354
-
355
- *List how the model may foreseeably be misused and address what users ought not to do with the model.*
356
- -->
357
-
358
- <!--
359
- ## Bias, Risks and Limitations
360
-
361
- *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
362
- -->
363
-
364
- <!--
365
- ### Recommendations
366
-
367
- *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
368
- -->
369
-
370
- ## Training Details
371
-
372
- ### Training Dataset
373
-
374
- #### Unnamed Dataset
375
-
376
- * Size: 32,382 training samples
377
- * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>sentence_2</code>
378
- * Approximate statistics based on the first 1000 samples:
379
- | | sentence_0 | sentence_1 | sentence_2 |
380
- |:--------|:----------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|
381
- | type | string | string | string |
382
- | details | <ul><li>min: 8 tokens</li><li>mean: 16.52 tokens</li><li>max: 38 tokens</li></ul> | <ul><li>min: 37 tokens</li><li>mean: 151.92 tokens</li><li>max: 330 tokens</li></ul> | <ul><li>min: 48 tokens</li><li>mean: 146.76 tokens</li><li>max: 301 tokens</li></ul> |
383
- * Samples:
384
- | sentence_0 | sentence_1 | sentence_2 |
385
- |:-------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
386
- | <code>Something like a drama story dealing with disturbed teenager or life</code> | <code>Title: I Never Promised You a Rose Garden<br>Genres: Drama<br>Overview: A disturbed and institutionalized 16-year-old girl struggles between fantasy and reality.<br>Tagline: When she tried to kill herself, it was just the beginning.<br>Director: Anthony Page<br>Stars: Kathleen Quinlan, Bibi Andersson, Ben Piazza<br>Release Date: 1977-07-14<br>Keywords: disturbed teenager</code> | <code>Title: Event Horizon<br>Genres: Horror, Science Fiction, Mystery<br>Overview: In 2047, a group of astronauts are sent to investigate and salvage the starship Event Horizon which disappeared mysteriously seven years before on its maiden voyage. However, it soon becomes evident that something sinister resides in its corridors.<br>Tagline: Infinite space. Infinite terror.<br>Director: Paul W. S. Anderson<br>Stars: Laurence Fishburne, Sam Neill, Kathleen Quinlan<br>Release Date: 1997-08-15<br>Keywords: space marine, nightmare, insanity, delusion, hallucination, space travel, cryogenics, gore, black hole, crew, flashback, evil spirit, alternate dimension, hellgate, religion, explosion, burning man, rescue team, super power, trapped in space, distress signal, 2040s, spaceship</code> |
387
- | <code>Stories of brave musketeers fighting against powerful adversaries for justice and love</code> | <code>Title: The Three Musketeers<br>Genres: Action, Adventure, Romance, Family<br>Overview: The young D'Artagnan arrives in Paris with dreams of becoming a King's musketeer. He meets and quarrels with three men, Athos, Porthos, and Aramis, each of whom challenges him to a duel. D'Artagnan finds out they are musketeers and is invited to join them in their efforts to oppose Cardinal Richelieu, who wishes to increase his already considerable power over the King. D'Artagnan must also juggle affairs with the charming Constance Bonancieux and the passionate Lady De Winter, a secret agent for the Cardinal.<br>Tagline: . . . One for All and All for Fun!<br>Director: Richard Lester<br>Stars: Michael York, Oliver Reed, Richard Chamberlain<br>Release Date: 1973-12-11<br>Keywords: france, paris, france, based on novel or book, swordplay, fight, satire, dressmaker, louis xiii, sword fight, swordsman, musketeer, extramarital affair, swashbuckler, diamond theft, sword duel, diamond necklace, cardinal, 17th century, queen jewe...</code> | <code>Title: The Brood<br>Genres: Horror, Science Fiction<br>Overview: A man tries to uncover an unconventional psychologist's therapy techniques on his institutionalized wife, while a series of brutal attacks committed by a brood of mutant children coincides with the husband's investigation.<br>Tagline: The Ultimate Experience in Inner Terror.<br>Director: David Cronenberg<br>Stars: Oliver Reed, Samantha Eggar, Art Hindle<br>Release Date: 1979-05-25<br>Keywords: toronto, canada, mutant, transformation, psychologist, divorce, psychotherapist, canuxploitation</code> |
388
- | <code>Critically acclaimed drama films directed by Sarah Polley exploring the themes of illiteracy and based on novel or book</code> | <code>Title: Women Talking<br>Genres: Drama<br>Overview: A group of women in an isolated religious colony struggle to reconcile their faith with a series of sexual assaults committed by the colony's men.<br>Tagline: Do nothing. Stay and fight. Leave.<br>Director: Sarah Polley<br>Stars: Rooney Mara, Claire Foy, Jessie Buckley<br>Release Date: 2022-12-23<br>Keywords: rape, based on novel or book, faith, illiteracy, bolivia, mennonites, religion, gang rape, teenage rape, meeting, duringcreditsstinger, woman director, sexual assault, abusive husband, 2000s, pregnancy from rape</code> | <code>Title: Alice in Wonderland<br>Genres: Family, Fantasy, Adventure<br>Overview: Alice, now 19 years old, returns to the whimsical world she first entered as a child and embarks on a journey to discover her true destiny.<br>Tagline: You're invited to a very important date.<br>Director: Tim Burton<br>Stars: Mia Wasikowska, Johnny Depp, Anne Hathaway<br>Release Date: 2010-03-03<br>Keywords: based on novel or book, queen, psychotic, fantasy world, taunting, live action remake, based on young adult novel, mischievous, absurd, dramatic, incredulous, amused, euphoric</code> |
389
- * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
390
- ```json
391
- {
392
- "scale": 20.0,
393
- "similarity_fct": "cos_sim"
394
- }
395
- ```
396
-
397
- ### Training Hyperparameters
398
- #### Non-Default Hyperparameters
399
-
400
- - `per_device_train_batch_size`: 32
401
- - `per_device_eval_batch_size`: 32
402
- - `num_train_epochs`: 4
403
- - `multi_dataset_batch_sampler`: round_robin
404
-
405
- #### All Hyperparameters
406
- <details><summary>Click to expand</summary>
407
-
408
- - `overwrite_output_dir`: False
409
- - `do_predict`: False
410
- - `eval_strategy`: no
411
- - `prediction_loss_only`: True
412
- - `per_device_train_batch_size`: 32
413
- - `per_device_eval_batch_size`: 32
414
- - `per_gpu_train_batch_size`: None
415
- - `per_gpu_eval_batch_size`: None
416
- - `gradient_accumulation_steps`: 1
417
- - `eval_accumulation_steps`: None
418
- - `torch_empty_cache_steps`: None
419
- - `learning_rate`: 5e-05
420
- - `weight_decay`: 0.0
421
- - `adam_beta1`: 0.9
422
- - `adam_beta2`: 0.999
423
- - `adam_epsilon`: 1e-08
424
- - `max_grad_norm`: 1
425
- - `num_train_epochs`: 4
426
- - `max_steps`: -1
427
- - `lr_scheduler_type`: linear
428
- - `lr_scheduler_kwargs`: {}
429
- - `warmup_ratio`: 0.0
430
- - `warmup_steps`: 0
431
- - `log_level`: passive
432
- - `log_level_replica`: warning
433
- - `log_on_each_node`: True
434
- - `logging_nan_inf_filter`: True
435
- - `save_safetensors`: True
436
- - `save_on_each_node`: False
437
- - `save_only_model`: False
438
- - `restore_callback_states_from_checkpoint`: False
439
- - `no_cuda`: False
440
- - `use_cpu`: False
441
- - `use_mps_device`: False
442
- - `seed`: 42
443
- - `data_seed`: None
444
- - `jit_mode_eval`: False
445
- - `use_ipex`: False
446
- - `bf16`: False
447
- - `fp16`: False
448
- - `fp16_opt_level`: O1
449
- - `half_precision_backend`: auto
450
- - `bf16_full_eval`: False
451
- - `fp16_full_eval`: False
452
- - `tf32`: None
453
- - `local_rank`: 0
454
- - `ddp_backend`: None
455
- - `tpu_num_cores`: None
456
- - `tpu_metrics_debug`: False
457
- - `debug`: []
458
- - `dataloader_drop_last`: False
459
- - `dataloader_num_workers`: 0
460
- - `dataloader_prefetch_factor`: None
461
- - `past_index`: -1
462
- - `disable_tqdm`: False
463
- - `remove_unused_columns`: True
464
- - `label_names`: None
465
- - `load_best_model_at_end`: False
466
- - `ignore_data_skip`: False
467
- - `fsdp`: []
468
- - `fsdp_min_num_params`: 0
469
- - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
470
- - `tp_size`: 0
471
- - `fsdp_transformer_layer_cls_to_wrap`: None
472
- - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
473
- - `deepspeed`: None
474
- - `label_smoothing_factor`: 0.0
475
- - `optim`: adamw_torch
476
- - `optim_args`: None
477
- - `adafactor`: False
478
- - `group_by_length`: False
479
- - `length_column_name`: length
480
- - `ddp_find_unused_parameters`: None
481
- - `ddp_bucket_cap_mb`: None
482
- - `ddp_broadcast_buffers`: False
483
- - `dataloader_pin_memory`: True
484
- - `dataloader_persistent_workers`: False
485
- - `skip_memory_metrics`: True
486
- - `use_legacy_prediction_loop`: False
487
- - `push_to_hub`: False
488
- - `resume_from_checkpoint`: None
489
- - `hub_model_id`: None
490
- - `hub_strategy`: every_save
491
- - `hub_private_repo`: None
492
- - `hub_always_push`: False
493
- - `gradient_checkpointing`: False
494
- - `gradient_checkpointing_kwargs`: None
495
- - `include_inputs_for_metrics`: False
496
- - `include_for_metrics`: []
497
- - `eval_do_concat_batches`: True
498
- - `fp16_backend`: auto
499
- - `push_to_hub_model_id`: None
500
- - `push_to_hub_organization`: None
501
- - `mp_parameters`:
502
- - `auto_find_batch_size`: False
503
- - `full_determinism`: False
504
- - `torchdynamo`: None
505
- - `ray_scope`: last
506
- - `ddp_timeout`: 1800
507
- - `torch_compile`: False
508
- - `torch_compile_backend`: None
509
- - `torch_compile_mode`: None
510
- - `include_tokens_per_second`: False
511
- - `include_num_input_tokens_seen`: False
512
- - `neftune_noise_alpha`: None
513
- - `optim_target_modules`: None
514
- - `batch_eval_metrics`: False
515
- - `eval_on_start`: False
516
- - `use_liger_kernel`: False
517
- - `eval_use_gather_object`: False
518
- - `average_tokens_across_devices`: False
519
- - `prompts`: None
520
- - `batch_sampler`: batch_sampler
521
- - `multi_dataset_batch_sampler`: round_robin
522
-
523
- </details>
524
-
525
- ### Training Logs
526
- | Epoch | Step | Training Loss |
527
- |:------:|:----:|:-------------:|
528
- | 0.4941 | 500 | 0.796 |
529
- | 0.9881 | 1000 | 0.517 |
530
- | 1.4822 | 1500 | 0.3748 |
531
- | 1.9763 | 2000 | 0.3682 |
532
- | 2.4704 | 2500 | 0.2839 |
533
- | 2.9644 | 3000 | 0.2849 |
534
- | 3.4585 | 3500 | 0.2392 |
535
- | 3.9526 | 4000 | 0.2373 |
536
-
537
-
538
- ### Framework Versions
539
- - Python: 3.11.12
540
- - Sentence Transformers: 3.4.1
541
- - Transformers: 4.51.3
542
- - PyTorch: 2.6.0+cu124
543
- - Accelerate: 1.6.0
544
- - Datasets: 3.5.1
545
- - Tokenizers: 0.21.1
546
-
547
- ## Citation
548
-
549
- ### BibTeX
550
-
551
- #### Sentence Transformers
552
- ```bibtex
553
- @inproceedings{reimers-2019-sentence-bert,
554
- title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
555
- author = "Reimers, Nils and Gurevych, Iryna",
556
- booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
557
- month = "11",
558
- year = "2019",
559
- publisher = "Association for Computational Linguistics",
560
- url = "https://arxiv.org/abs/1908.10084",
561
- }
562
- ```
563
-
564
- #### MultipleNegativesRankingLoss
565
- ```bibtex
566
- @misc{henderson2017efficient,
567
- title={Efficient Natural Language Response Suggestion for Smart Reply},
568
- author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
569
- year={2017},
570
- eprint={1705.00652},
571
- archivePrefix={arXiv},
572
- primaryClass={cs.CL}
573
- }
574
  ```
575
 
576
- <!--
577
- ## Glossary
578
 
579
- *Clearly define terms in order to be accessible across audiences.*
580
- -->
581
 
582
- <!--
583
- ## Model Card Authors
 
584
 
585
- *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
586
- -->
587
 
588
- <!--
589
- ## Model Card Contact
590
 
591
- *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
592
- -->
 
1
  ---
2
+ license: apache-2.0
3
  tags:
4
+ - retrieval
5
+ - movie-recommendation
6
  - sentence-transformers
7
+ - semantic-search
8
  - feature-extraction
 
 
9
  - loss:MultipleNegativesRankingLoss
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  library_name: sentence-transformers
11
+ model-index:
12
+ - name: fine-tuned movie retriever
13
+ results:
14
+ - task:
15
+ type: retrieval
16
+ name: Information Retrieval
17
+ metrics:
18
+ - name: Recall@1
19
+ type: recall
20
+ value: 0.456
21
+ - name: Recall@3
22
+ type: recall
23
+ value: 0.693
24
+ - name: Recall@5
25
+ type: recall
26
+ value: 0.758
27
+ - name: Recall@10
28
+ type: recall
29
+ value: 0.836
30
+ metrics:
31
+ - recall
32
+ base_model:
33
+ - BAAI/bge-base-en-v1.5
34
  ---
35
 
36
+ # 🎬 Fine-Tuned Movie Retriever (Rich Semantic & Metadata Queries + Smart Negatives)
37
 
38
+ [![Model](https://img.shields.io/badge/HuggingFace-Model-blue?logo=huggingface)](https://huggingface.co/your-username/my-st-model)
39
 
40
+ This is a custom fine-tuned sentence-transformer model designed for movie and TV recommendation systems. Optimized for high-quality vector retrieval in a movie and TV show recommendation RAG pipeline. Fine-tuning was done using ~32K synthetic natural language queries across metadata and vibe-based prompts:
41
 
42
+ - Enriched vibe-style natural language queries (e.g., Emotionally powerful space exploration film with themes of love and sacrifice.)
43
+ - Metadata-based natural language queries (e.g., Any crime movies from the 1990s directed by Quentin Tarantino about heist?)
44
+ - Smarter negative sampling (genre contrast, theme mismatch, star-topic confusion)
45
+ - A dataset of over 32,000 triplets (query, positive doc, negative doc)
 
 
 
 
 
46
 
 
47
 
48
+ ## 🧠 Training Details
 
 
49
 
50
+ - Base model: `BAAI/bge-base-en-v1.5`
51
+ - Loss function: `MultipleNegativesRankingLoss`
52
+ - Epochs: 4
53
+ - Optimized for: top-k semantic retrieval in RAG systems
54
 
 
 
 
 
 
 
 
55
 
56
+ ## 📈 Evaluation: Fine-tuned vs Base Model
57
 
58
+ | Metric | Fine-Tuned Model Score | Base Model Score |
59
+ |-------------|:----------------------:|:----------------:|
60
+ | Recall@1 | 0.456 | 0.214 |
61
+ | Recall@3 | 0.693 | 0.361 |
62
+ | Recall@5 | 0.758 | 0.422 |
63
+ | Recall@10 | 0.836 | 0.500 |
64
+ | MRR | 0.595 | 0.315 |
65
 
66
+ **Evaluation setup**:
67
+ - Dataset: 3,598 held-out metadata and vibe-style natural queries
68
+ - Method: Top-k ranking using cosine similarity between query and positive documents
69
+ - Goal: Assess top-k retrieval quality in recommendation-like settings
70
 
 
 
 
71
 
72
+ ## 📦 Usage
73
+
74
  ```python
75
  from sentence_transformers import SentenceTransformer
76
 
77
+ model = SentenceTransformer("jjtsao/fine-tuned_movie_retriever-bge-base-en-v1.5")
78
+ query_embedding = model.encode("mind-bending sci-fi thrillers from the 2000s about identity")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  ```
80
 
 
 
81
 
82
+ ## 🔍 Ideal Use Cases
 
83
 
84
+ - RAG-style movie recommendation apps
85
+ - Semantic filtering of large movie catalogs
86
+ - Query-document reranking pipelines
87
 
 
 
88
 
89
+ ## 📜 License
 
90
 
91
+ Apache 2.0 open for personal and commercial use.