CrossEncoder based on BAAI/bge-reranker-v2-m3

This is a Cross Encoder model finetuned from BAAI/bge-reranker-v2-m3 using the sentence-transformers library. It computes scores for pairs of texts, which can be used for text reranking and semantic search.

Model Details

Model Description

  • Model Type: Cross Encoder
  • Base model: BAAI/bge-reranker-v2-m3
  • Maximum Sequence Length: 1024 tokens
  • Number of Output Labels: 1 label

Model Sources

Usage

Direct Usage (Sentence Transformers)

First install the Sentence Transformers library:

pip install -U sentence-transformers

Then you can load this model and run inference.

from sentence_transformers import CrossEncoder

# Download from the 🤗 Hub
model = CrossEncoder("cross_encoder_model_id")
# Get scores for pairs of texts
pairs = [
    ['Are Qaleh Karimi and Tabaq Sar located in the same country?', 'Khalileh Sara, Talesh. Khalileh Sara( also Romanized as Khalīleh Sarā; also known as Khalīl Ḩayāţī- ye Maḩalleh and Khalīl Sarā- ye Ḩavīq) is a village in Haviq Rural District, Haviq District, Talesh County, Gilan Province, Iran. At the 2006 census, its population was 447, in 80 families.</s>Abdel Karim el Kably. Abdel Karim el Kabli, sometimes spelled el Kably or al Kabli, is a Sudanese singer, poet, composer, songwriter and humanitarian known for his songs with themes of love, passion, nationalism, Sudanese culture and folklore.</s>Qaleh Tarfi. Qaleh Tarfi( also Romanized as Qal‘eh Ţarfī and Qal ‘ eh- ye Ţarfī) is a village in Soveyseh Rural District, in the Soveyseh District of Karun County, Khuzestan Province, Iran. At the 2006 census, its population was 529, in 83 families.</s>Qaleh Tak, Kiar. Qaleh Tak( also Romanized as Qal‘eh Tak; also known as Ghal‘eh Tak) is a village in Kiar -e Gharbi Rural District, in the Central District of Kiar County, Chaharmahal and Bakhtiari Province, Iran. At the 2006 census, its population was 822, in 208 families.</s>Qaleh Vari. Qaleh Vari( also Romanized as Qal‘eh Vārī) is a village in Dasht -e Zahab Rural District, in the Central District of Sarpol -e Zahab County, Kermanshah Province, Iran. At the 2006 census, its population was 569, in 104 families.</s>Qaleh Karimi. Qaleh Karimi( also Romanized as Qal‘eh Karīmī) is a village in Juyom Rural District, Juyom District, Larestan County, Fars Province, Iran. At the 2006 census, its population was 16, in 5 families.'],
    ['What is the place of birth of the director of film Tracked In The Snow Country?', 'Ben Coccio. Benjamin Coccio( born August 2, 1975) is an American filmmaker from Niskayuna, New York. He is best known for his feature film work, directing" Zero Day" and co-writing" The Place Beyond The Pines".</s>Vic Sarin. Vic Sarin( born 1945) is an Indian- born Canadian/ American film director, producer and screenwriter. His work as a cinematographer includes" PartitionMargaret\'s Museum Whale MusicNowhere to HideNorman\'s Awesome Experience", and" Riel". He also directed such projects as" Partition", and" Wind at My Back". Sarin was born in Kashmir, India.</s>Larry Clark. Lawrence Donald Clark (born January 19, 1943) is an American film director, photographer, writer and film producer who is best known for his controversial teen film "Kids" (1995) and his photography book "Tulsa". His work focuses primarily on youth who casually engage in illegal drug use, underage sex, and violence, and who are part of a specific subculture, such as surfing, punk rock, or skateboarding.</s>Sam Irvin. Sam Irvin( born June 14, 1956) is an American film and television director, producer, screenwriter, actor, author and film teacher. Irvin\'s directing credits include" Guilty as ChargedOblivionElvira\'s Haunted Hills", and all the episodes of two television series:" Dante\'s Cove" and" From Here on OUT". His other credits include co-executive producer of Bill Condon\'s Academy Award- winner" Gods and Monsters"; associate producer of Brian De Palma\'s" Home Movies"; and historical consultant on the Tony Award- winner" Liza\'s at the Palace". Irvin also wrote the biography( Simon& Schuster). Between projects, Irvin teaches graduate courses on directing at the University of Southern California School of Cinematic Arts.</s>Fritz Kiersch. George Keith "Fritz" Kiersch (born July 23, 1951 in Alpine, Texas) is an American film director, writer and producer. He is perhaps best known for directing the horror film "Children of the Corn" and the drama "Tuff Turf". Currently, Kiersch is the head of Point Park University\'s Cinema Arts Program.</s>Sam Irvin. Sam Irvin( born June 14, 1956) is an American film and television director, producer, screenwriter, actor, author and film teacher. Irvin\'s directing credits include" Guilty as ChargedOblivionElvira\'s Haunted Hills", and all the episodes of two television series:" Dante\'s Cove" and" From Here on OUT". His other credits include co-executive producer of Bill Condon\'s Academy Award- winner" Gods and Monsters"; associate producer of Brian De Palma\'s" Home Movies"; and historical consultant on the Tony Award- winner" Liza\'s at the Palace". Irvin also wrote the biography( Simon& Schuster). Between projects, Irvin teaches graduate courses on directing at the University of Southern California School of Cinematic Arts.'],
    ['Who is the father of the director of film Aanivaer?', 'Lars von Trier. Lars von Trier( born Lars Trier; 30 April 1956) is a Danish film director and screenwriter with a prolific and controversial career spanning almost four decades. His work is known for its genre and technical innovation; confrontational examination of existential, social, and political issues; and his treatment of subjects such as mercy, sacrifice, and mental health. Among his more than 100 awards and 200 nominations at film festivals worldwide, von Trier has received: the Palme d\' Or( for" Dancer in the Dark"), the Grand Prix( for" Breaking the Waves"), the Prix du Jury( for" Europa"), and the Technical Grand Prize( for" The Element of Crime" and" Europa") at the Cannes Film Festival. Von Trier is the founder and shareholder of the international film production company Zentropa Films, which has sold more than 350 million tickets and garnered seven Academy Award nominations over the past 25 years.</s>Lars von Trier. Lars von Trier (born Lars Trier; 30 April 1956) is a Danish film director and screenwriter with a prolific and controversial career spanning almost four decades. His work is known for its genre and technical innovation; confrontational examination of existential, social, and political issues; and his treatment of subjects such as mercy, sacrifice, and mental health. Among his more than 100 awards and 200 nominations at film festivals worldwide, von Trier has received: the Palme d\'Or (for "Dancer in the Dark"), the Grand Prix (for "Breaking the Waves"), the Prix du Jury (for "Europa"), and the Technical Grand Prize (for "The Element of Crime" and "Europa") at the Cannes Film Festival. Von Trier is the founder and shareholder of the international film production company Zentropa Films, which has sold more than 350million tickets and garnered seven Academy Award nominations over the past 25years.</s>A. V. Meiyappan. Avichi Meiyappa Chettiar (28 July 1907 – 12 August 1979), also known as A. V. Meiyappan or AVM, was an Indian film producer, director and philanthropist who established AVM Productions in Vadapalani, Chennai. He is widely regarded as one of the pioneers of Tamil cinema, and one of three movie moguls of the South Indian film industry along with S. S. Vasan and L. V. Prasad. His production company AVM Productions is the only production company in Kollywood (Tamil film industry) to run successfully for five decades and three generations. AVM was born in Karaikudi in a well-to-do Nagarathar family. He moved to Chennai (then known as Madras) at an early age and established Saraswathi Stores which sold gramophone records. Subsequently, he entered the film industry and started directing his own films. After some initial setbacks, AVM delivered a string of hits in the early 1940s. Following the immense success of his 1947 film "Nam Iruvar", AVM moved to film production and established AVM Productions in Chennai, first at Santhome and then at Kodambakkam. In 1951, AVM entered the Hindi film industry with the film "Bahar" starring Vyjayanthimala. By the time he died in 1979, he had produced 167 films. Notable films produced by AVM Productions are "VazhkaiBaharParasakthiHum Panchhi Ek Daal KeBhookailasKalathur KannammaServer Sundaram" and "Major Chandrakanth". AVM also directed a number of films in the 1930s and 1940s, the notable ones being "Alli ArjunaBhookailasSabapathySri Valli" and "Nam Iruvar".</s>Jeeva (director). Jeeva( born 21 September 1963 – 26 June 2007) was an acclaimed Indian filmmaker, cinematographer and film director in Malayalam cinema, Tamil cinema and Bollywood. He was one of an established Director of Photographer in the late 90s and early 2000s. He legally changed his name to Rahil Tanveer after converting to Islam.</s>A. V. Meiyappan. Avichi Meiyappa Chettiar (28 July 1907 – 12 August 1979), also known as A. V. Meiyappan or AVM, was an Indian film producer, director and philanthropist who established AVM Productions in Vadapalani, Chennai. He is widely regarded as one of the pioneers of Tamil cinema, and one of three movie moguls of the South Indian film industry along with S. S. Vasan and L. V. Prasad. His production company AVM Productions is the only production company in Kollywood (Tamil film industry) to run successfully for five decades and three generations. AVM was born in Karaikudi in a well-to-do Nagarathar family. He moved to Chennai (then known as Madras) at an early age and established Saraswathi Stores which sold gramophone records. Subsequently, he entered the film industry and started directing his own films. After some initial setbacks, AVM delivered a string of hits in the early 1940s. Following the immense success of his 1947 film "Nam Iruvar", AVM moved to film production and established AVM Productions in Chennai, first at Santhome and then at Kodambakkam. In 1951, AVM entered the Hindi film industry with the film "Bahar" starring Vyjayanthimala. By the time he died in 1979, he had produced 167 films. Notable films produced by AVM Productions are "VazhkaiBaharParasakthiHum Panchhi Ek Daal KeBhookailasKalathur KannammaServer Sundaram" and "Major Chandrakanth". AVM also directed a number of films in the 1930s and 1940s, the notable ones being "Alli ArjunaBhookailasSabapathySri Valli" and "Nam Iruvar".</s>A. V. Meiyappan. Avichi Meiyappa Chettiar (28 July 1907 – 12 August 1979), also known as A. V. Meiyappan or AVM, was an Indian film producer, director and philanthropist who established AVM Productions in Vadapalani, Chennai. He is widely regarded as one of the pioneers of Tamil cinema, and one of three movie moguls of the South Indian film industry along with S. S. Vasan and L. V. Prasad. His production company AVM Productions is the only production company in Kollywood (Tamil film industry) to run successfully for five decades and three generations. AVM was born in Karaikudi in a well-to-do Nagarathar family. He moved to Chennai (then known as Madras) at an early age and established Saraswathi Stores which sold gramophone records. Subsequently, he entered the film industry and started directing his own films. After some initial setbacks, AVM delivered a string of hits in the early 1940s. Following the immense success of his 1947 film "Nam Iruvar", AVM moved to film production and established AVM Productions in Chennai, first at Santhome and then at Kodambakkam. In 1951, AVM entered the Hindi film industry with the film "Bahar" starring Vyjayanthimala. By the time he died in 1979, he had produced 167 films. Notable films produced by AVM Productions are "VazhkaiBaharParasakthiHum Panchhi Ek Daal KeBhookailasKalathur KannammaServer Sundaram" and "Major Chandrakanth". AVM also directed a number of films in the 1930s and 1940s, the notable ones being "Alli ArjunaBhookailasSabapathySri Valli" and "Nam Iruvar".'],
    ['Which film has the director who died earlier, The Dangerous Blonde or Sadiyaan?', 'Brij Sadanah. Brijmohan Sadanah ( 6 October 1933- 21 October 1990), born in Gujranwala, Punjab, British India, sometimes credited as Brij Mohan or simply Brij, was a veteran Hindi film producer and director. He is very well known for some of the most memorable box office hit films from the 1960s, 1970s, and 1980s such as" Do BhaiYeh Raat Phir Na AayegiUstadon Ke Ustad Night in London", Victoria No. 203, Chori Mera Kaam, Ek Se Badhkar Ek, Yakeen and Professor Pyarelal. His last successful film was Mardon Wali Baat. He consistently chose to have Kalyanji Anandji as the music directors of his films. He was married to Hindi film actress, Sayeeda Khan. They had two children, daughter( late) Namrata and son Kamal. In the early 1980s he suffered major setback when some of his well shot films turned out to be major flops at box office like Oonche Log, Bombay 405 Miles, Magroor. The jinx of flops ended with success of Taqdeer and Mardon Wali Baat. Brij died on 21 October 1990 in Mumbai. He shot himself dead at his residence after killing his wife and daughter, Namrata in an inebriated state. Incidentally, the day was also his son Kamal Sadanah\'s birthday. His son Kamal Sadanah is also a Hindi film actor, producer& director</s>Brij Sadanah. Brijmohan Sadanah ( 6 October 1933- 21 October 1990), born in Gujranwala, Punjab, British India, sometimes credited as Brij Mohan or simply Brij, was a veteran Hindi film producer and director. He is very well known for some of the most memorable box office hit films from the 1960s, 1970s, and 1980s such as" Do BhaiYeh Raat Phir Na AayegiUstadon Ke Ustad Night in London", Victoria No. 203, Chori Mera Kaam, Ek Se Badhkar Ek, Yakeen and Professor Pyarelal. His last successful film was Mardon Wali Baat. He consistently chose to have Kalyanji Anandji as the music directors of his films. He was married to Hindi film actress, Sayeeda Khan. They had two children, daughter( late) Namrata and son Kamal. In the early 1980s he suffered major setback when some of his well shot films turned out to be major flops at box office like Oonche Log, Bombay 405 Miles, Magroor. The jinx of flops ended with success of Taqdeer and Mardon Wali Baat. Brij died on 21 October 1990 in Mumbai. He shot himself dead at his residence after killing his wife and daughter, Namrata in an inebriated state. Incidentally, the day was also his son Kamal Sadanah\'s birthday. His son Kamal Sadanah is also a Hindi film actor, producer& director</s>Dangerous Blondes. Dangerous Blondes is a 1943 American comedy film directed by Leigh Jason and written by Richard Flournoy and Jack Henley. The film stars Allyn Joslyn and Evelyn Keyes, and was released by Columbia Pictures in September 1943. Alternate titles for this film were" Reckless Lady" and" The Case of the Dangerous Blondes". A review in" Vanity Fair" review characterized the film as a" laugh- packed session here via the antics of Allyn Joslyn and Evelyn Keyes."</s>Dangerous Blondes. Dangerous Blondes is a 1943 American comedy film directed by Leigh Jason and written by Richard Flournoy and Jack Henley. The film stars Allyn Joslyn and Evelyn Keyes, and was released by Columbia Pictures in September 1943. Alternate titles for this film were "Reckless Lady" and "The Case of the Dangerous Blondes". A review in "Vanity Fair" review characterized the film as a "laugh-packed session here via the antics of Allyn Joslyn and Evelyn Keyes."</s>Sidney J. Furie. Sidney Joseph Furie (born February 28, 1933) is a Canadian film director, screenwriter, and producer best known for his extensive work in both British and American cinema between the 1960s and early 1980s. Like his contemporaries Norman Jewison and Ted Kotcheff, he was one of earliest Canadian directors to achieve mainstream critical and financial success outside their native country at a time when its film industry was virtually nonexistent. He won a BAFTA Film Award and was nominated for a Palme d\'Or for his work on the acclaimed spy thriller "The Ipcress File" starring Michael Caine. He is considered by some an "auteur" director, elevating otherwise unremarkable genre films through strong, creative visuals, and atmospheric direction. His 1981 horror film "The Entity" was declared by director Martin Scorsese as one of the scariest movies of all time, and his Vietnam War film "The Boys in Company C" was a major influence on Stanley Kubrick\'s "Full Metal Jacket. " He is also the co-creator of the "Iron Eagle" action film franchise, and directed three of its four entries.</s>The Adventurous Blonde. The Adventurous Blonde is a 1937 American romantic comedy film directed by Frank McDonald and written by Robertson White and David Diamond. The film stars Glenda Farrell and Barton MacLane. It was released on November 13, 1937. This is the third film in the Torchy Blane movie series by Warner Bros. and is followed by "Blondes at Work" (1938).'],
    ['What is the place of birth of the director of film Arya Surya?', 'P. Subramaniam. P. Subramaniam( 1910- 1979) was an Indian film director, producer, distributor, theatre owner, and mayor. He is the founder of Merryland Studio( established in 1951), the second film studio in Kerala. From mid-1950s to late 1970s, he has produced 69 films of which 59 films were directed by himself. His" Kumara Sambhavam" won the first ever Kerala State Film Award for Best Film. His" Rendangazhi" won the National Award. He contributed the proceedings from his movie" Swamy Ayyappan" for the development of Sabarimala in Kerala on which he constructed a road named as Swamy Ayappan road. He contributions in cinema has significantly developed Malayalam cinema, by starting cinema exhibition houses, distributions, film studio, production company for making films with both devotional and social themes. His venture Merryland Studio( established in 1951) was the second film production studio of Kerala, after its major competitor Udaya Studio. The films were produced under the banner of Neela Productions.</s>Naa Peru Surya, Naa Illu India. Naa Peru Surya, Naa Illu India  is a 2018 Indian Telugu-language action film written and directed by Vakkantham Vamsi in his directorial debut. Produced by Sirisha and Sridhar Lagadapati under the banner Ramalakshmi Cine Creations, it stars Allu Arjun in the lead role along with Anu Emmanuel, Arjun Sarja, Boman Irani, R. Sarathkumar, Thakur Anoop Singh, Nadhiya, Vennela Kishore, Pradeep Rawat and Rao Ramesh. The film follows Surya, a short-tempered soldier who aspires to serve at the borders, but finds trouble after getting into brawls and killing a terrorist. He is given the chance to prove his worth by getting a clearance signature from a renowned psychologist, who is none other than his estranged father. Surya must curb his angry behavior while still confronting his enemies, if he wants to fulfill his dream. The film released on 4 May 2018.</s>Vijay Krishna Acharya. Vijay Krishna Acharya, also known as Viktor Acharya, is an Indian film director from Kanpur, U.P. He is also a screenwriter, dialogue writer, and lyricist known for his works in Bollywood and television.</s>Vijay Krishna Acharya. Vijay Krishna Acharya, also known as Viktor Acharya, is an Indian film director from Kanpur, U.P. He is also a screenwriter, dialogue writer, and lyricist known for his works in Bollywood and television.</s>A. P. Arjun. A. P. Arjun( born 8 August 1984) is an Indian film director, screenwriter and lyricist. He works in Kannada cinema. Making his entry as a lyricist for the film" Thangigagi"( 2006), Arjun debuted as a director with the 2009 film" Ambari". His second directorial" Addhuri"( 2012) and won him multiple awards.</s>P. Subramaniam. P. Subramaniam( 1910- 1979) was an Indian film director, producer, distributor, theatre owner, and mayor. He is the founder of Merryland Studio( established in 1951), the second film studio in Kerala. From mid-1950s to late 1970s, he has produced 69 films of which 59 films were directed by himself. His" Kumara Sambhavam" won the first ever Kerala State Film Award for Best Film. His" Rendangazhi" won the National Award. He contributed the proceedings from his movie" Swamy Ayyappan" for the development of Sabarimala in Kerala on which he constructed a road named as Swamy Ayappan road. He contributions in cinema has significantly developed Malayalam cinema, by starting cinema exhibition houses, distributions, film studio, production company for making films with both devotional and social themes. His venture Merryland Studio( established in 1951) was the second film production studio of Kerala, after its major competitor Udaya Studio. The films were produced under the banner of Neela Productions.'],
]
scores = model.predict(pairs)
print(scores.shape)
# (5,)

# Or rank different texts based on similarity to a single text
ranks = model.rank(
    'Are Qaleh Karimi and Tabaq Sar located in the same country?',
    [
        'Khalileh Sara, Talesh. Khalileh Sara( also Romanized as Khalīleh Sarā; also known as Khalīl Ḩayāţī- ye Maḩalleh and Khalīl Sarā- ye Ḩavīq) is a village in Haviq Rural District, Haviq District, Talesh County, Gilan Province, Iran. At the 2006 census, its population was 447, in 80 families.</s>Abdel Karim el Kably. Abdel Karim el Kabli, sometimes spelled el Kably or al Kabli, is a Sudanese singer, poet, composer, songwriter and humanitarian known for his songs with themes of love, passion, nationalism, Sudanese culture and folklore.</s>Qaleh Tarfi. Qaleh Tarfi( also Romanized as Qal‘eh Ţarfī and Qal ‘ eh- ye Ţarfī) is a village in Soveyseh Rural District, in the Soveyseh District of Karun County, Khuzestan Province, Iran. At the 2006 census, its population was 529, in 83 families.</s>Qaleh Tak, Kiar. Qaleh Tak( also Romanized as Qal‘eh Tak; also known as Ghal‘eh Tak) is a village in Kiar -e Gharbi Rural District, in the Central District of Kiar County, Chaharmahal and Bakhtiari Province, Iran. At the 2006 census, its population was 822, in 208 families.</s>Qaleh Vari. Qaleh Vari( also Romanized as Qal‘eh Vārī) is a village in Dasht -e Zahab Rural District, in the Central District of Sarpol -e Zahab County, Kermanshah Province, Iran. At the 2006 census, its population was 569, in 104 families.</s>Qaleh Karimi. Qaleh Karimi( also Romanized as Qal‘eh Karīmī) is a village in Juyom Rural District, Juyom District, Larestan County, Fars Province, Iran. At the 2006 census, its population was 16, in 5 families.',
        'Ben Coccio. Benjamin Coccio( born August 2, 1975) is an American filmmaker from Niskayuna, New York. He is best known for his feature film work, directing" Zero Day" and co-writing" The Place Beyond The Pines".</s>Vic Sarin. Vic Sarin( born 1945) is an Indian- born Canadian/ American film director, producer and screenwriter. His work as a cinematographer includes" PartitionMargaret\'s Museum Whale MusicNowhere to HideNorman\'s Awesome Experience", and" Riel". He also directed such projects as" Partition", and" Wind at My Back". Sarin was born in Kashmir, India.</s>Larry Clark. Lawrence Donald Clark (born January 19, 1943) is an American film director, photographer, writer and film producer who is best known for his controversial teen film "Kids" (1995) and his photography book "Tulsa". His work focuses primarily on youth who casually engage in illegal drug use, underage sex, and violence, and who are part of a specific subculture, such as surfing, punk rock, or skateboarding.</s>Sam Irvin. Sam Irvin( born June 14, 1956) is an American film and television director, producer, screenwriter, actor, author and film teacher. Irvin\'s directing credits include" Guilty as ChargedOblivionElvira\'s Haunted Hills", and all the episodes of two television series:" Dante\'s Cove" and" From Here on OUT". His other credits include co-executive producer of Bill Condon\'s Academy Award- winner" Gods and Monsters"; associate producer of Brian De Palma\'s" Home Movies"; and historical consultant on the Tony Award- winner" Liza\'s at the Palace". Irvin also wrote the biography( Simon& Schuster). Between projects, Irvin teaches graduate courses on directing at the University of Southern California School of Cinematic Arts.</s>Fritz Kiersch. George Keith "Fritz" Kiersch (born July 23, 1951 in Alpine, Texas) is an American film director, writer and producer. He is perhaps best known for directing the horror film "Children of the Corn" and the drama "Tuff Turf". Currently, Kiersch is the head of Point Park University\'s Cinema Arts Program.</s>Sam Irvin. Sam Irvin( born June 14, 1956) is an American film and television director, producer, screenwriter, actor, author and film teacher. Irvin\'s directing credits include" Guilty as ChargedOblivionElvira\'s Haunted Hills", and all the episodes of two television series:" Dante\'s Cove" and" From Here on OUT". His other credits include co-executive producer of Bill Condon\'s Academy Award- winner" Gods and Monsters"; associate producer of Brian De Palma\'s" Home Movies"; and historical consultant on the Tony Award- winner" Liza\'s at the Palace". Irvin also wrote the biography( Simon& Schuster). Between projects, Irvin teaches graduate courses on directing at the University of Southern California School of Cinematic Arts.',
        'Lars von Trier. Lars von Trier( born Lars Trier; 30 April 1956) is a Danish film director and screenwriter with a prolific and controversial career spanning almost four decades. His work is known for its genre and technical innovation; confrontational examination of existential, social, and political issues; and his treatment of subjects such as mercy, sacrifice, and mental health. Among his more than 100 awards and 200 nominations at film festivals worldwide, von Trier has received: the Palme d\' Or( for" Dancer in the Dark"), the Grand Prix( for" Breaking the Waves"), the Prix du Jury( for" Europa"), and the Technical Grand Prize( for" The Element of Crime" and" Europa") at the Cannes Film Festival. Von Trier is the founder and shareholder of the international film production company Zentropa Films, which has sold more than 350 million tickets and garnered seven Academy Award nominations over the past 25 years.</s>Lars von Trier. Lars von Trier (born Lars Trier; 30 April 1956) is a Danish film director and screenwriter with a prolific and controversial career spanning almost four decades. His work is known for its genre and technical innovation; confrontational examination of existential, social, and political issues; and his treatment of subjects such as mercy, sacrifice, and mental health. Among his more than 100 awards and 200 nominations at film festivals worldwide, von Trier has received: the Palme d\'Or (for "Dancer in the Dark"), the Grand Prix (for "Breaking the Waves"), the Prix du Jury (for "Europa"), and the Technical Grand Prize (for "The Element of Crime" and "Europa") at the Cannes Film Festival. Von Trier is the founder and shareholder of the international film production company Zentropa Films, which has sold more than 350million tickets and garnered seven Academy Award nominations over the past 25years.</s>A. V. Meiyappan. Avichi Meiyappa Chettiar (28 July 1907 – 12 August 1979), also known as A. V. Meiyappan or AVM, was an Indian film producer, director and philanthropist who established AVM Productions in Vadapalani, Chennai. He is widely regarded as one of the pioneers of Tamil cinema, and one of three movie moguls of the South Indian film industry along with S. S. Vasan and L. V. Prasad. His production company AVM Productions is the only production company in Kollywood (Tamil film industry) to run successfully for five decades and three generations. AVM was born in Karaikudi in a well-to-do Nagarathar family. He moved to Chennai (then known as Madras) at an early age and established Saraswathi Stores which sold gramophone records. Subsequently, he entered the film industry and started directing his own films. After some initial setbacks, AVM delivered a string of hits in the early 1940s. Following the immense success of his 1947 film "Nam Iruvar", AVM moved to film production and established AVM Productions in Chennai, first at Santhome and then at Kodambakkam. In 1951, AVM entered the Hindi film industry with the film "Bahar" starring Vyjayanthimala. By the time he died in 1979, he had produced 167 films. Notable films produced by AVM Productions are "VazhkaiBaharParasakthiHum Panchhi Ek Daal KeBhookailasKalathur KannammaServer Sundaram" and "Major Chandrakanth". AVM also directed a number of films in the 1930s and 1940s, the notable ones being "Alli ArjunaBhookailasSabapathySri Valli" and "Nam Iruvar".</s>Jeeva (director). Jeeva( born 21 September 1963 – 26 June 2007) was an acclaimed Indian filmmaker, cinematographer and film director in Malayalam cinema, Tamil cinema and Bollywood. He was one of an established Director of Photographer in the late 90s and early 2000s. He legally changed his name to Rahil Tanveer after converting to Islam.</s>A. V. Meiyappan. Avichi Meiyappa Chettiar (28 July 1907 – 12 August 1979), also known as A. V. Meiyappan or AVM, was an Indian film producer, director and philanthropist who established AVM Productions in Vadapalani, Chennai. He is widely regarded as one of the pioneers of Tamil cinema, and one of three movie moguls of the South Indian film industry along with S. S. Vasan and L. V. Prasad. His production company AVM Productions is the only production company in Kollywood (Tamil film industry) to run successfully for five decades and three generations. AVM was born in Karaikudi in a well-to-do Nagarathar family. He moved to Chennai (then known as Madras) at an early age and established Saraswathi Stores which sold gramophone records. Subsequently, he entered the film industry and started directing his own films. After some initial setbacks, AVM delivered a string of hits in the early 1940s. Following the immense success of his 1947 film "Nam Iruvar", AVM moved to film production and established AVM Productions in Chennai, first at Santhome and then at Kodambakkam. In 1951, AVM entered the Hindi film industry with the film "Bahar" starring Vyjayanthimala. By the time he died in 1979, he had produced 167 films. Notable films produced by AVM Productions are "VazhkaiBaharParasakthiHum Panchhi Ek Daal KeBhookailasKalathur KannammaServer Sundaram" and "Major Chandrakanth". AVM also directed a number of films in the 1930s and 1940s, the notable ones being "Alli ArjunaBhookailasSabapathySri Valli" and "Nam Iruvar".</s>A. V. Meiyappan. Avichi Meiyappa Chettiar (28 July 1907 – 12 August 1979), also known as A. V. Meiyappan or AVM, was an Indian film producer, director and philanthropist who established AVM Productions in Vadapalani, Chennai. He is widely regarded as one of the pioneers of Tamil cinema, and one of three movie moguls of the South Indian film industry along with S. S. Vasan and L. V. Prasad. His production company AVM Productions is the only production company in Kollywood (Tamil film industry) to run successfully for five decades and three generations. AVM was born in Karaikudi in a well-to-do Nagarathar family. He moved to Chennai (then known as Madras) at an early age and established Saraswathi Stores which sold gramophone records. Subsequently, he entered the film industry and started directing his own films. After some initial setbacks, AVM delivered a string of hits in the early 1940s. Following the immense success of his 1947 film "Nam Iruvar", AVM moved to film production and established AVM Productions in Chennai, first at Santhome and then at Kodambakkam. In 1951, AVM entered the Hindi film industry with the film "Bahar" starring Vyjayanthimala. By the time he died in 1979, he had produced 167 films. Notable films produced by AVM Productions are "VazhkaiBaharParasakthiHum Panchhi Ek Daal KeBhookailasKalathur KannammaServer Sundaram" and "Major Chandrakanth". AVM also directed a number of films in the 1930s and 1940s, the notable ones being "Alli ArjunaBhookailasSabapathySri Valli" and "Nam Iruvar".',
        'Brij Sadanah. Brijmohan Sadanah ( 6 October 1933- 21 October 1990), born in Gujranwala, Punjab, British India, sometimes credited as Brij Mohan or simply Brij, was a veteran Hindi film producer and director. He is very well known for some of the most memorable box office hit films from the 1960s, 1970s, and 1980s such as" Do BhaiYeh Raat Phir Na AayegiUstadon Ke Ustad Night in London", Victoria No. 203, Chori Mera Kaam, Ek Se Badhkar Ek, Yakeen and Professor Pyarelal. His last successful film was Mardon Wali Baat. He consistently chose to have Kalyanji Anandji as the music directors of his films. He was married to Hindi film actress, Sayeeda Khan. They had two children, daughter( late) Namrata and son Kamal. In the early 1980s he suffered major setback when some of his well shot films turned out to be major flops at box office like Oonche Log, Bombay 405 Miles, Magroor. The jinx of flops ended with success of Taqdeer and Mardon Wali Baat. Brij died on 21 October 1990 in Mumbai. He shot himself dead at his residence after killing his wife and daughter, Namrata in an inebriated state. Incidentally, the day was also his son Kamal Sadanah\'s birthday. His son Kamal Sadanah is also a Hindi film actor, producer& director</s>Brij Sadanah. Brijmohan Sadanah ( 6 October 1933- 21 October 1990), born in Gujranwala, Punjab, British India, sometimes credited as Brij Mohan or simply Brij, was a veteran Hindi film producer and director. He is very well known for some of the most memorable box office hit films from the 1960s, 1970s, and 1980s such as" Do BhaiYeh Raat Phir Na AayegiUstadon Ke Ustad Night in London", Victoria No. 203, Chori Mera Kaam, Ek Se Badhkar Ek, Yakeen and Professor Pyarelal. His last successful film was Mardon Wali Baat. He consistently chose to have Kalyanji Anandji as the music directors of his films. He was married to Hindi film actress, Sayeeda Khan. They had two children, daughter( late) Namrata and son Kamal. In the early 1980s he suffered major setback when some of his well shot films turned out to be major flops at box office like Oonche Log, Bombay 405 Miles, Magroor. The jinx of flops ended with success of Taqdeer and Mardon Wali Baat. Brij died on 21 October 1990 in Mumbai. He shot himself dead at his residence after killing his wife and daughter, Namrata in an inebriated state. Incidentally, the day was also his son Kamal Sadanah\'s birthday. His son Kamal Sadanah is also a Hindi film actor, producer& director</s>Dangerous Blondes. Dangerous Blondes is a 1943 American comedy film directed by Leigh Jason and written by Richard Flournoy and Jack Henley. The film stars Allyn Joslyn and Evelyn Keyes, and was released by Columbia Pictures in September 1943. Alternate titles for this film were" Reckless Lady" and" The Case of the Dangerous Blondes". A review in" Vanity Fair" review characterized the film as a" laugh- packed session here via the antics of Allyn Joslyn and Evelyn Keyes."</s>Dangerous Blondes. Dangerous Blondes is a 1943 American comedy film directed by Leigh Jason and written by Richard Flournoy and Jack Henley. The film stars Allyn Joslyn and Evelyn Keyes, and was released by Columbia Pictures in September 1943. Alternate titles for this film were "Reckless Lady" and "The Case of the Dangerous Blondes". A review in "Vanity Fair" review characterized the film as a "laugh-packed session here via the antics of Allyn Joslyn and Evelyn Keyes."</s>Sidney J. Furie. Sidney Joseph Furie (born February 28, 1933) is a Canadian film director, screenwriter, and producer best known for his extensive work in both British and American cinema between the 1960s and early 1980s. Like his contemporaries Norman Jewison and Ted Kotcheff, he was one of earliest Canadian directors to achieve mainstream critical and financial success outside their native country at a time when its film industry was virtually nonexistent. He won a BAFTA Film Award and was nominated for a Palme d\'Or for his work on the acclaimed spy thriller "The Ipcress File" starring Michael Caine. He is considered by some an "auteur" director, elevating otherwise unremarkable genre films through strong, creative visuals, and atmospheric direction. His 1981 horror film "The Entity" was declared by director Martin Scorsese as one of the scariest movies of all time, and his Vietnam War film "The Boys in Company C" was a major influence on Stanley Kubrick\'s "Full Metal Jacket. " He is also the co-creator of the "Iron Eagle" action film franchise, and directed three of its four entries.</s>The Adventurous Blonde. The Adventurous Blonde is a 1937 American romantic comedy film directed by Frank McDonald and written by Robertson White and David Diamond. The film stars Glenda Farrell and Barton MacLane. It was released on November 13, 1937. This is the third film in the Torchy Blane movie series by Warner Bros. and is followed by "Blondes at Work" (1938).',
        'P. Subramaniam. P. Subramaniam( 1910- 1979) was an Indian film director, producer, distributor, theatre owner, and mayor. He is the founder of Merryland Studio( established in 1951), the second film studio in Kerala. From mid-1950s to late 1970s, he has produced 69 films of which 59 films were directed by himself. His" Kumara Sambhavam" won the first ever Kerala State Film Award for Best Film. His" Rendangazhi" won the National Award. He contributed the proceedings from his movie" Swamy Ayyappan" for the development of Sabarimala in Kerala on which he constructed a road named as Swamy Ayappan road. He contributions in cinema has significantly developed Malayalam cinema, by starting cinema exhibition houses, distributions, film studio, production company for making films with both devotional and social themes. His venture Merryland Studio( established in 1951) was the second film production studio of Kerala, after its major competitor Udaya Studio. The films were produced under the banner of Neela Productions.</s>Naa Peru Surya, Naa Illu India. Naa Peru Surya, Naa Illu India  is a 2018 Indian Telugu-language action film written and directed by Vakkantham Vamsi in his directorial debut. Produced by Sirisha and Sridhar Lagadapati under the banner Ramalakshmi Cine Creations, it stars Allu Arjun in the lead role along with Anu Emmanuel, Arjun Sarja, Boman Irani, R. Sarathkumar, Thakur Anoop Singh, Nadhiya, Vennela Kishore, Pradeep Rawat and Rao Ramesh. The film follows Surya, a short-tempered soldier who aspires to serve at the borders, but finds trouble after getting into brawls and killing a terrorist. He is given the chance to prove his worth by getting a clearance signature from a renowned psychologist, who is none other than his estranged father. Surya must curb his angry behavior while still confronting his enemies, if he wants to fulfill his dream. The film released on 4 May 2018.</s>Vijay Krishna Acharya. Vijay Krishna Acharya, also known as Viktor Acharya, is an Indian film director from Kanpur, U.P. He is also a screenwriter, dialogue writer, and lyricist known for his works in Bollywood and television.</s>Vijay Krishna Acharya. Vijay Krishna Acharya, also known as Viktor Acharya, is an Indian film director from Kanpur, U.P. He is also a screenwriter, dialogue writer, and lyricist known for his works in Bollywood and television.</s>A. P. Arjun. A. P. Arjun( born 8 August 1984) is an Indian film director, screenwriter and lyricist. He works in Kannada cinema. Making his entry as a lyricist for the film" Thangigagi"( 2006), Arjun debuted as a director with the 2009 film" Ambari". His second directorial" Addhuri"( 2012) and won him multiple awards.</s>P. Subramaniam. P. Subramaniam( 1910- 1979) was an Indian film director, producer, distributor, theatre owner, and mayor. He is the founder of Merryland Studio( established in 1951), the second film studio in Kerala. From mid-1950s to late 1970s, he has produced 69 films of which 59 films were directed by himself. His" Kumara Sambhavam" won the first ever Kerala State Film Award for Best Film. His" Rendangazhi" won the National Award. He contributed the proceedings from his movie" Swamy Ayyappan" for the development of Sabarimala in Kerala on which he constructed a road named as Swamy Ayappan road. He contributions in cinema has significantly developed Malayalam cinema, by starting cinema exhibition houses, distributions, film studio, production company for making films with both devotional and social themes. His venture Merryland Studio( established in 1951) was the second film production studio of Kerala, after its major competitor Udaya Studio. The films were produced under the banner of Neela Productions.',
    ]
)
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]

Evaluation

Metrics

Cross Encoder Correlation

Metric validation train_subset
pearson 0.7881 0.7799
spearman 0.7877 0.7741

Training Details

Training Dataset

Unnamed Dataset

  • Size: 33,850 training samples
  • Columns: sentence_0, sentence_1, and label
  • Approximate statistics based on the first 1000 samples:
    sentence_0 sentence_1 label
    type string string float
    details
    • min: 33 characters
    • mean: 74.13 characters
    • max: 162 characters
    • min: 654 characters
    • mean: 4300.81 characters
    • max: 22987 characters
    • min: 0.0
    • mean: 0.51
    • max: 1.0
  • Samples:
    sentence_0 sentence_1 label
    Are Qaleh Karimi and Tabaq Sar located in the same country? Khalileh Sara, Talesh. Khalileh Sara( also Romanized as Khalīleh Sarā; also known as Khalīl Ḩayāţī- ye Maḩalleh and Khalīl Sarā- ye Ḩavīq) is a village in Haviq Rural District, Haviq District, Talesh County, Gilan Province, Iran. At the 2006 census, its population was 447, in 80 families.Abdel Karim el Kably. Abdel Karim el Kabli, sometimes spelled el Kably or al Kabli, is a Sudanese singer, poet, composer, songwriter and humanitarian known for his songs with themes of love, passion, nationalism, Sudanese culture and folklore.Qaleh Tarfi. Qaleh Tarfi( also Romanized as Qal‘eh Ţarfī and Qal ‘ eh- ye Ţarfī) is a village in Soveyseh Rural District, in the Soveyseh District of Karun County, Khuzestan Province, Iran. At the 2006 census, its population was 529, in 83 families.Qaleh Tak, Kiar. Qaleh Tak( also Romanized as Qal‘eh Tak; also known as Ghal‘eh Tak) is a village in Kiar -e Gharbi Rural District, in the Central District of Kiar County, Chaharmahal and Bakhtiari Province,... 0.5
    What is the place of birth of the director of film Tracked In The Snow Country? Ben Coccio. Benjamin Coccio( born August 2, 1975) is an American filmmaker from Niskayuna, New York. He is best known for his feature film work, directing" Zero Day" and co-writing" The Place Beyond The Pines".Vic Sarin. Vic Sarin( born 1945) is an Indian- born Canadian/ American film director, producer and screenwriter. His work as a cinematographer includes" PartitionMargaret's Museum Whale MusicNowhere to HideNorman's Awesome Experience", and" Riel". He also directed such projects as" Partition", and" Wind at My Back". Sarin was born in Kashmir, India.Larry Clark. Lawrence Donald Clark (born January 19, 1943) is an American film director, photographer, writer and film producer who is best known for his controversial teen film "Kids" (1995) and his photography book "Tulsa". His work focuses primarily on youth who casually engage in illegal drug use, underage sex, and violence, and who are part of a specific subculture, such as surfing, punk rock, or skateboarding.Sam Irvi... 0.0
    Who is the father of the director of film Aanivaer? Lars von Trier. Lars von Trier( born Lars Trier; 30 April 1956) is a Danish film director and screenwriter with a prolific and controversial career spanning almost four decades. His work is known for its genre and technical innovation; confrontational examination of existential, social, and political issues; and his treatment of subjects such as mercy, sacrifice, and mental health. Among his more than 100 awards and 200 nominations at film festivals worldwide, von Trier has received: the Palme d' Or( for" Dancer in the Dark"), the Grand Prix( for" Breaking the Waves"), the Prix du Jury( for" Europa"), and the Technical Grand Prize( for" The Element of Crime" and" Europa") at the Cannes Film Festival. Von Trier is the founder and shareholder of the international film production company Zentropa Films, which has sold more than 350 million tickets and garnered seven Academy Award nominations over the past 25 years.Lars von Trier. Lars von Trier (born Lars Trier; 30 April 1956) is a Da... 0.0
  • Loss: BinaryCrossEntropyLoss with these parameters:
    {
        "activation_fn": "torch.nn.modules.linear.Identity",
        "pos_weight": null
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • eval_strategy: steps
  • per_device_train_batch_size: 2
  • per_device_eval_batch_size: 2
  • num_train_epochs: 5

All Hyperparameters

Click to expand
  • overwrite_output_dir: False
  • do_predict: False
  • eval_strategy: steps
  • prediction_loss_only: True
  • per_device_train_batch_size: 2
  • per_device_eval_batch_size: 2
  • per_gpu_train_batch_size: None
  • per_gpu_eval_batch_size: None
  • gradient_accumulation_steps: 1
  • eval_accumulation_steps: None
  • torch_empty_cache_steps: None
  • learning_rate: 5e-05
  • weight_decay: 0.0
  • adam_beta1: 0.9
  • adam_beta2: 0.999
  • adam_epsilon: 1e-08
  • max_grad_norm: 1
  • num_train_epochs: 5
  • max_steps: -1
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: {}
  • warmup_ratio: 0.0
  • warmup_steps: 0
  • log_level: passive
  • log_level_replica: warning
  • log_on_each_node: True
  • logging_nan_inf_filter: True
  • save_safetensors: True
  • save_on_each_node: False
  • save_only_model: False
  • restore_callback_states_from_checkpoint: False
  • no_cuda: False
  • use_cpu: False
  • use_mps_device: False
  • seed: 42
  • data_seed: None
  • jit_mode_eval: False
  • use_ipex: False
  • bf16: False
  • fp16: False
  • fp16_opt_level: O1
  • half_precision_backend: auto
  • bf16_full_eval: False
  • fp16_full_eval: False
  • tf32: None
  • local_rank: 0
  • ddp_backend: None
  • tpu_num_cores: None
  • tpu_metrics_debug: False
  • debug: []
  • dataloader_drop_last: False
  • dataloader_num_workers: 0
  • dataloader_prefetch_factor: None
  • past_index: -1
  • disable_tqdm: False
  • remove_unused_columns: True
  • label_names: None
  • load_best_model_at_end: False
  • ignore_data_skip: False
  • fsdp: []
  • fsdp_min_num_params: 0
  • fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
  • fsdp_transformer_layer_cls_to_wrap: None
  • accelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
  • deepspeed: None
  • label_smoothing_factor: 0.0
  • optim: adamw_torch
  • optim_args: None
  • adafactor: False
  • group_by_length: False
  • length_column_name: length
  • ddp_find_unused_parameters: None
  • ddp_bucket_cap_mb: None
  • ddp_broadcast_buffers: False
  • dataloader_pin_memory: True
  • dataloader_persistent_workers: False
  • skip_memory_metrics: True
  • use_legacy_prediction_loop: False
  • push_to_hub: False
  • resume_from_checkpoint: None
  • hub_model_id: None
  • hub_strategy: every_save
  • hub_private_repo: False
  • hub_always_push: False
  • gradient_checkpointing: False
  • gradient_checkpointing_kwargs: None
  • include_inputs_for_metrics: False
  • eval_do_concat_batches: True
  • fp16_backend: auto
  • push_to_hub_model_id: None
  • push_to_hub_organization: None
  • mp_parameters:
  • auto_find_batch_size: False
  • full_determinism: False
  • torchdynamo: None
  • ray_scope: last
  • ddp_timeout: 1800
  • torch_compile: False
  • torch_compile_backend: None
  • torch_compile_mode: None
  • dispatch_batches: None
  • split_batches: None
  • include_tokens_per_second: False
  • include_num_input_tokens_seen: False
  • neftune_noise_alpha: None
  • optim_target_modules: None
  • batch_eval_metrics: False
  • eval_on_start: False
  • eval_use_gather_object: False
  • prompts: None
  • batch_sampler: batch_sampler
  • multi_dataset_batch_sampler: proportional
  • router_mapping: {}
  • learning_rate_mapping: {}

Training Logs

Epoch Step Training Loss validation_spearman train_subset_spearman
0.0295 250 - 0.6699 0.6382
0.0591 500 0.6093 0.6868 0.6491
0.0886 750 - 0.7004 0.6693
0.1182 1000 0.5256 0.7018 0.6711
0.1477 1250 - 0.7153 0.6862
0.1772 1500 0.5042 0.7243 0.6966
0.2068 1750 - 0.7289 0.7102
0.2363 2000 0.5036 0.7447 0.7189
0.2659 2250 - 0.7518 0.7307
0.2954 2500 0.4942 0.7586 0.7389
0.3249 2750 - 0.7599 0.7388
0.3545 3000 0.4978 0.7670 0.7435
0.3840 3250 - 0.7720 0.7476
0.4136 3500 0.4831 0.7721 0.7524
0.4431 3750 - 0.7681 0.7603
0.4726 4000 0.4827 0.7708 0.7584
0.5022 4250 - 0.7723 0.7597
0.5317 4500 0.4724 0.7721 0.7618
0.5613 4750 - 0.7735 0.7659
0.5908 5000 0.4752 0.7745 0.7707
0.6203 5250 - 0.7753 0.7684
0.6499 5500 0.4616 0.7798 0.7721
0.6794 5750 - 0.7818 0.7672
0.7090 6000 0.4857 0.7808 0.7665
0.7385 6250 - 0.7798 0.7683
0.7680 6500 0.4759 0.7821 0.7702
0.7976 6750 - 0.7826 0.7720
0.8271 7000 0.4594 0.7845 0.7714
0.8567 7250 - 0.7865 0.7716
0.8862 7500 0.466 0.7833 0.7707
0.9158 7750 - 0.7869 0.7723
0.9453 8000 0.4647 0.7877 0.7741

Framework Versions

  • Python: 3.11.13
  • Sentence Transformers: 5.2.2
  • Transformers: 4.44.2
  • PyTorch: 2.10.0+cu128
  • Accelerate: 1.12.0
  • Datasets: 4.0.0
  • Tokenizers: 0.19.1

Citation

BibTeX

Sentence Transformers

@inproceedings{reimers-2019-sentence-bert,
    title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
    author = "Reimers, Nils and Gurevych, Iryna",
    booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
    month = "11",
    year = "2019",
    publisher = "Association for Computational Linguistics",
    url = "https://arxiv.org/abs/1908.10084",
}
Downloads last month
5
Safetensors
Model size
0.6B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for OloriBern/2wikimultihopqa-mixer-2000

Finetuned
(67)
this model

Paper for OloriBern/2wikimultihopqa-mixer-2000

Evaluation results