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 = [
    ['Why did the person held responsible for the actions of the KPA redeploy his military troops?', 'Korean War. At dawn on Sunday, 25 June 1950, the Korean People\'s Army crossed the 38th parallel behind artillery fire. The KPA justified its assault with the claim that ROK troops had attacked first, and that they were aiming to arrest and execute the "bandit traitor Syngman Rhee". Fighting began on the strategic Ongjin peninsula in the west. There were initial South Korean claims that they had captured the city of Haeju, and this sequence of events has led some scholars to argue that the South Koreans actually fired first.</s>Korean War. In 1952, the United States elected a new president, and on 29 November 1952, the president - elect, Dwight D. Eisenhower, went to Korea to learn what might end the Korean War. With the United Nations\' acceptance of India\'s proposed Korean War armistice, the KPA, the PVA, and the UN Command ceased fire with the battle line approximately at the 38th parallel. Upon agreeing to the armistice, the belligerents established the Korean Demilitarized Zone (DMZ), which has since been patrolled by the KPA and ROKA, United States, and Joint UN Commands.</s>Korean War. In 1952, the United States elected a new president, and on 29 November 1952, the president - elect, Dwight D. Eisenhower, went to Korea to learn what might end the Korean War. With the United Nations\' acceptance of India\'s proposed Korean War armistice, the KPA, the PVA, and the UN Command ceased fire with the battle line approximately at the 38th parallel. Upon agreeing to the armistice, the belligerents established the Korean Demilitarized Zone (DMZ), which has since been patrolled by the KPA and ROKA, United States, and Joint UN Commands.</s>Thanom Kittikachorn. Field Marshal Thanom Kittikachorn (, ; 11 August 1911 – 16 June 2004) was a military dictator of Thailand. A staunch anti-communist, Thanom oversaw a decade of military rule in Thailand from 1963 to 1973, during which he staged a self-coup, until public protests which exploded into violence forced him to step down. His return from exile in 1976 sparked protests which led to a massacre of demonstrators, followed by a military coup.</s>Korean War. At dawn on Sunday, 25 June 1950, the Korean People\'s Army crossed the 38th parallel behind artillery fire. The KPA justified its assault with the claim that ROK troops had attacked first, and that they were aiming to arrest and execute the "bandit traitor Syngman Rhee". Fighting began on the strategic Ongjin peninsula in the west. There were initial South Korean claims that they had captured the city of Haeju, and this sequence of events has led some scholars to argue that the South Koreans actually fired first.</s>Korean War. By August, the KPA had pushed back the ROK Army and the Eighth United States Army to the vicinity of Pusan in southeast Korea. In their southward advance, the KPA purged the Republic of Korea\'s intelligentsia by killing civil servants and intellectuals. On 20 August, General MacArthur warned North Korean leader Kim Il-sung that he was responsible for the KPA\'s atrocities. By September, the UN Command controlled the Pusan perimeter, enclosing about 10% of Korea, in a line partially defined by the Nakdong River.'],
    ['In what year did the city in which the Gandhi Smriti is located first host the Asian Games?', "New Delhi. Gandhi Smriti in New Delhi is the location where Mahatma Gandhi spent the last 144 days of his life and was assassinated on 30 January 1948. Rajghat is the place where Mahatma Gandhi was cremated on 31 January 1948 after his assassination and his ashes were buried and make it a final resting place beside the sanctity of the Yamuna River. The Raj Ghat in the shape of large square platform with black marble was designed by architect Vanu Bhuta.</s>List of Olympic Games host cities. The Games have primarily been hosted in the continents of Europe (36 editions) and North America (12 editions); eight Games have been hosted in Asia and two have been hosted in Oceania. In 2016, Rio de Janeiro became South America's first Olympic host city, while the African continent is yet to hold the Games. Other major geographic regions which have never hosted the Olympics include the Middle East, the Indian subcontinent, the Caribbean, and Southeast Asia.</s>2018 Asian Games medal table. The 2018 Asian Games, officially known as the XVIII Asiad, is the largest sporting event in Asia governed by Olympic Council of Asia (OCA). It was held at Jakarta and Palembang, Indonesia between 18 August -- 2 September 2018, with 465 events in 40 sports and disciplines featured in the Games. This resulted in 465 medal sets being distributed.</s>Kamaljeet Sandhu. Kamaljeet Sandhu is a former woman Indian athlete who won gold medal at 1970 Bangkok Asian Games in 400 m race. She ran the distance in 57.3 seconds. She was the first Indian woman athlete to win gold medal at any Asian games. She hails from Punjab state in India. She received Padma Shri award in 1971. In 1971, she was one of the finalists in the World University Games held at Turin, Italy, in 400 metres race. She participated in the Women's 400 metres at the 1972 Munich Olympics, bowing out in the heats. Kamaljeet retired from athletics in 1973. She was also a national - level basketball and inter-varsity hockey player. She went to the 1982 Asian Games as the coach of the Indian women's sprint team.</s>List of Olympic Games host cities. The Games have primarily been hosted in the continents of Europe (32 editions) and North America (12 editions); seven Games have been hosted in Asia and two have been hosted in Oceania. In 2010, Singapore became Southeast Asia's first Olympic host city for the inaugural Summer Youth Olympics, while Rio de Janeiro became South America's first Olympic host city with the 2016 Summer Olympics, followed by Buenos Aires with the 2018 Summer Youth Olympics. The 2022 Summer Youth Olympics in Dakar will become the first - ever Games to be held on the African continent. Other major geographic regions which have never hosted the Olympics include the Middle East, the Indian subcontinent, Central America and the Caribbean.</s>New Delhi. The city hosted the 2010 Commonwealth Games and annually hosts Delhi Half Marathon foot-race. The city has previously hosted the 1951 Asian Games and the 1982 Asian Games. New Delhi was interested  in bidding for the 2019 Asian Games but was turned down by the government on 2 August 2010 amid allegations of corruption in 2010 Commonwealth Games ."],
    ["What model appeared in the video for She Doesn't Mind sung by the singer featured on Baby Boy?", 'Beyoncé. Beyoncé Giselle Knowles - Carter (/ biːˈjɒnseɪ /; born September 4, 1981) is an American singer, songwriter, actress, and businesswoman. Born and raised in Houston, Texas, Beyoncé performed in various singing and dancing competitions as a child. Beyoncé rose to fame in the late 1990s as lead singer of the R&B girl - group Destiny\'s Child. Managed by her father, Mathew Knowles, the group became one of the world\'s best - selling girl groups in history. Their hiatus saw Beyoncé\'s theatrical film debut in Austin Powers in Goldmember (2002) and the release of her debut album, Dangerously in Love (2003). The album established her as a solo artist worldwide, earned five Grammy Awards, and featured the Billboard Hot 100 number one singles ``Crazy in Love \'\'and`` Baby Boy\'\'.</s>She\'s So Lovely (song). The music video for ``She\'s So Lovely \'\'is set in a bowling alley. Roy Stride is trying to attract the attentions of a pretty girl (Louise Glover), but she has a boyfriend already. While the boyfriend is there, Roy tells the girl she looks beautiful. The boyfriend gets angry, but gets called away for his throw. As he scores a strike, Roy and the girl walk off down the hall together (although only their legs are shown, the shoes and jeans are the same as Roy\'s).</s>She Doesn\'t Mind. The music video had a special guest: Lisa Jackson from cycle 9 of America\'s Next Top Model who acted as a TSA officer.</s>Baby Boy (Beyoncé song). "Baby Boy" is a song by American singer Beyoncé featuring Jamaican dancehall singer Sean Paul from Beyoncé\'s debut solo studio album "Dangerously in Love" (2003). Both artists co-wrote the song with Scott Storch, Robert Waller and Shawn "Jay-Z" Carter; the former also co-produced the song. Containing a lyrical interpolation of "No Fear" by hip hop group O.G.C, "Baby Boy" is an R&B and dancehall song with reggae and Arabic music influences; its lyrics detail a woman\'s fantasies.</s>She Has Funny Cars. "She Has Funny Cars" is a song by the band Jefferson Airplane. It is a collaboration between vocalist Marty Balin (lyrics) and guitarist Jorma Kaukonen (music). The song appeared as the opening track on their influential breakthrough album, "Surrealistic Pillow" - released in 1967. The song discusses materialism in American society. It has also been said that the song is about one of Spencer Dryden\'s girlfriend\'s "funny cars". The song features Jack Casady on fuzz bass, and uses the famous "Bo Diddley Beat". Marty Balin is singing the first part vocal with Grace Slick\'s contrasting second part.</s>Jayne Marie Mansfield. Jayne Marie Mansfield (born November 8, 1950) is the first child and elder daughter of 1950s Hollywood sex symbol and "Playboy" Playmate Jayne Mansfield and Mansfield\'s ex-husband Paul. Mansfield is also the older half-sister of actress Mariska Hargitay. In July 1976, Mansfield became the first daughter of a Playmate to be a featured model. To date, only one other daughter of a Playmate has been featured in the magazine. Additionally, Mansfield is the only model who was featured as "100 Beautiful Women" along with her mother in the magazine\'s 1988 special issue. She has acted in the film "Olly, Olly, Oxen Free" (1978) and TV production "Blond in Hollywood" (2003).'],
    ['Where is the coach from the owner of The Venue at UCF going?', "Oakland Raiders relocation to Las Vegas. The Oakland Raiders relocation to Las Vegas was a successful effort by the owner of the Oakland Raiders (Mark Davis) to relocate the American football club from its current and longtime home of Oakland, California to Las Vegas, Nevada. The team is scheduled to begin play as the Las Vegas Raiders for the 2020 National Football League (NFL) season (although a move to Las Vegas could happen as soon as 2019 with Sam Boyd Stadium), playing home games at the Las Vegas Stadium. NFL team owners voted 31 -- 1 to approve the move, which was announced at the annual league meetings in Phoenix, Arizona on March 27, 2017. The Raiders became the third NFL franchise to relocate in the 2010s, following the Rams' move from St. Louis, Missouri to Los Angeles, California on January 12, 2016, and the Chargers' move from San Diego, California to Los Angeles on January 12, 2017. The Raiders' move to Las Vegas comes after years of failed efforts to renovate or replace the Oakland -- Alameda County Coliseum, which has been rated by multiple sources as one of the worst stadiums in the NFL.</s>Oakland Raiders relocation to Las Vegas. On March 6, 2017, the Raiders revealed that Bank of America would be replacing Sheldon Adelson's portion of the funding for the new stadium in Las Vegas. On March 27, 2017, the National Football League officially approved the Raiders move from Oakland to Las Vegas in a 31 -- 1 vote, ensuring them a new stadium in the process. However, even though the Raiders were approved to move to Las Vegas, the club will still play the 2017 and 2018 NFL seasons at the Oakland -- Alameda County Coliseum and still be known as the Oakland Raiders so as long as they play in the San Francisco Bay Area. About one thousand season ticket holders asked for and received refunds after the move to Las Vegas was announced. Their tickets were sold to other fans within hours, and the Raiders' 53,250 season tickets were all sold out by late May.</s>Vegas Golden Knights. The Vegas Golden Knights are a professional ice hockey team based in the Las Vegas metropolitan area. The team began play in the 2017 -- 18 NHL season, and is a member of the Pacific Division of the Western Conference of the National Hockey League (NHL). The team is owned by Black Knight Sports & Entertainment, a consortium led by Bill Foley, and plays its home games at T - Mobile Arena on the Las Vegas Strip in Paradise, Nevada.</s>The Venue at UCF. The Venue at UCF is a sports and entertainment arena located in Orlando, Florida on the main campus of The University of Central Florida. The arena which was opened in 1991, housed the Knights men's and women's basketball teams from 1991 to 2007, and has served as home to UCF's volleyball team since 1991. The Venue also serves as a practice facility for the university's basketball teams, and houses administrative offices for the same.</s>Vegas Golden Knights. The Vegas Golden Knights are a professional ice hockey team based in the Las Vegas metropolitan area. The team began play in the 2017 -- 18 NHL season, and is a member of the Pacific Division of the Western Conference of the National Hockey League (NHL). The team is owned by Black Knight Sports & Entertainment, a consortium led by Bill Foley, and plays its home games at T - Mobile Arena on the Las Vegas Strip in Paradise, Nevada.</s>Cleveland Browns relocation controversy. The Cleveland Browns relocation controversy, sometimes referred to by fans as ``The Move '', was the decision by then - Browns owner Art Modell to relocate the National Football League (NFL)'s Cleveland Browns from its long - time home of Cleveland to Baltimore during the 1995 NFL season. Subsequent legal actions by the city of Cleveland and Browns season ticket holders led the NFL to broker a compromise that saw the Browns history, records, and intellectual property remain in Cleveland. In return, Modell was permitted to move his football organization to Baltimore where he established the Baltimore Ravens. The Ravens are officially regarded by the NFL as an expansion team that began play in 1996. The city of Cleveland agreed to demolish Cleveland Stadium and build a new stadium on the same site, and the NFL agreed to reactivate the Browns by the 1999 season through either an expansion draft or a relocated franchise. The Browns were officially reactivated in 1998 through the expansion process and resumed play in 1999."],
    ["What college did the performer of Don't Make Me Wait for Love go to?", 'Adam Lambert. Lambert began performing with Metropolitan Educational Theatre network (now MET2) from the age of nine. A few years later, he began more intense acting and vocal coaching, continuing to perform with both MET2 and what was to become the Broadway Bound Youth Theatre Foundation, as he moved through Mesa Verde Middle School and then Mount Carmel High School. There, he became heavily involved with theater and choir, performed vocals with the school\'s jazz band, and competed in the local Air Bands competitions. He also appeared in local professional productions such as Hello, Dolly!, Camelot, The Music Man, Grease, Chess and Peter Pan, at venues such as The Starlight, The Lyceum and others.</s>10 Things I Hate About You. The band Save Ferris (singer Monique Powell, guitarist Brian Mashburn, bassist Bill Uechi, trumpeter José Castellaños, trombonist Brian Williams, saxophonist Eric Zamora, and drummer Evan Kilbourne) appears as the band performing at the prom, playing their songs ``I Know \'\'and`` Ca n\'t Stop\'\' as well as covers of The Isley Brothers\' ``Shout \'\'and Nick Lowe\'s`` Cruel to Be Kind\'\'.</s>Through the Wire. "Through the Wire" is the debut single by American rapper Kanye West. West wrote and recorded the song with his jaw wired shut after a car accident in October 2002. The song samples Chaka Khan\'s 1985 single "Through the Fire" and was released on the last day of September 2003 as the lead single from his debut album "The College Dropout" (2004).</s>John Mayer. Mayer considered skipping college to pursue his music, but his parents dissuaded him.  He enrolled in the Berklee College of Music in 1997 at age 19. At the urging of his college friend Clay Cook, they left Berklee after two semesters and moved to Atlanta. There, they formed a two-man band called LoFi Masters, and began performing in local coffee houses and club venues such as Eddie\'s Attic. According to Cook, they experienced musical differences due to Mayer\'s desire to move more towards pop music. The two parted ways and Mayer embarked on a solo career.With the help of local producer and engineer Glenn Matullo, Mayer recorded the independent EP Inside Wants Out. The EP includes eight songs with Mayer on lead vocals and guitars. For the opening track, "Back To You", a full band was enlisted, including the EP\'s co-producer David "DeLa" LaBruyere on bass guitars. Cook had co-written many of the album\'s songs, including its first commercial single release, "No Such Thing", However, his only performance contribution was backing vocals on the song "Comfortable".</s>Live and Learn (The Cardigans song). "Live and Learn" is a song by the rock group The Cardigans and is the third and final single from the album Long Gone Before Daylight. All music by Peter Svensson, and all lyrics by Nina Persson. The song appears on episode 2 of "Grey\'s Anatomy" Music of Grey\'s Anatomy, and in a season 9 episode of Scrubs. The song is a straight love song about learning love, her thinking of what her love is worth.</s>Becky Wahlstrom. Becky Wahlstrom (born April 25, 1975) is an American actress. She attended the London Academy of Music and Dramatic Art in England for her college years.'],
]
scores = model.predict(pairs)
print(scores.shape)
# (5,)

# Or rank different texts based on similarity to a single text
ranks = model.rank(
    'Why did the person held responsible for the actions of the KPA redeploy his military troops?',
    [
        'Korean War. At dawn on Sunday, 25 June 1950, the Korean People\'s Army crossed the 38th parallel behind artillery fire. The KPA justified its assault with the claim that ROK troops had attacked first, and that they were aiming to arrest and execute the "bandit traitor Syngman Rhee". Fighting began on the strategic Ongjin peninsula in the west. There were initial South Korean claims that they had captured the city of Haeju, and this sequence of events has led some scholars to argue that the South Koreans actually fired first.</s>Korean War. In 1952, the United States elected a new president, and on 29 November 1952, the president - elect, Dwight D. Eisenhower, went to Korea to learn what might end the Korean War. With the United Nations\' acceptance of India\'s proposed Korean War armistice, the KPA, the PVA, and the UN Command ceased fire with the battle line approximately at the 38th parallel. Upon agreeing to the armistice, the belligerents established the Korean Demilitarized Zone (DMZ), which has since been patrolled by the KPA and ROKA, United States, and Joint UN Commands.</s>Korean War. In 1952, the United States elected a new president, and on 29 November 1952, the president - elect, Dwight D. Eisenhower, went to Korea to learn what might end the Korean War. With the United Nations\' acceptance of India\'s proposed Korean War armistice, the KPA, the PVA, and the UN Command ceased fire with the battle line approximately at the 38th parallel. Upon agreeing to the armistice, the belligerents established the Korean Demilitarized Zone (DMZ), which has since been patrolled by the KPA and ROKA, United States, and Joint UN Commands.</s>Thanom Kittikachorn. Field Marshal Thanom Kittikachorn (, ; 11 August 1911 – 16 June 2004) was a military dictator of Thailand. A staunch anti-communist, Thanom oversaw a decade of military rule in Thailand from 1963 to 1973, during which he staged a self-coup, until public protests which exploded into violence forced him to step down. His return from exile in 1976 sparked protests which led to a massacre of demonstrators, followed by a military coup.</s>Korean War. At dawn on Sunday, 25 June 1950, the Korean People\'s Army crossed the 38th parallel behind artillery fire. The KPA justified its assault with the claim that ROK troops had attacked first, and that they were aiming to arrest and execute the "bandit traitor Syngman Rhee". Fighting began on the strategic Ongjin peninsula in the west. There were initial South Korean claims that they had captured the city of Haeju, and this sequence of events has led some scholars to argue that the South Koreans actually fired first.</s>Korean War. By August, the KPA had pushed back the ROK Army and the Eighth United States Army to the vicinity of Pusan in southeast Korea. In their southward advance, the KPA purged the Republic of Korea\'s intelligentsia by killing civil servants and intellectuals. On 20 August, General MacArthur warned North Korean leader Kim Il-sung that he was responsible for the KPA\'s atrocities. By September, the UN Command controlled the Pusan perimeter, enclosing about 10% of Korea, in a line partially defined by the Nakdong River.',
        "New Delhi. Gandhi Smriti in New Delhi is the location where Mahatma Gandhi spent the last 144 days of his life and was assassinated on 30 January 1948. Rajghat is the place where Mahatma Gandhi was cremated on 31 January 1948 after his assassination and his ashes were buried and make it a final resting place beside the sanctity of the Yamuna River. The Raj Ghat in the shape of large square platform with black marble was designed by architect Vanu Bhuta.</s>List of Olympic Games host cities. The Games have primarily been hosted in the continents of Europe (36 editions) and North America (12 editions); eight Games have been hosted in Asia and two have been hosted in Oceania. In 2016, Rio de Janeiro became South America's first Olympic host city, while the African continent is yet to hold the Games. Other major geographic regions which have never hosted the Olympics include the Middle East, the Indian subcontinent, the Caribbean, and Southeast Asia.</s>2018 Asian Games medal table. The 2018 Asian Games, officially known as the XVIII Asiad, is the largest sporting event in Asia governed by Olympic Council of Asia (OCA). It was held at Jakarta and Palembang, Indonesia between 18 August -- 2 September 2018, with 465 events in 40 sports and disciplines featured in the Games. This resulted in 465 medal sets being distributed.</s>Kamaljeet Sandhu. Kamaljeet Sandhu is a former woman Indian athlete who won gold medal at 1970 Bangkok Asian Games in 400 m race. She ran the distance in 57.3 seconds. She was the first Indian woman athlete to win gold medal at any Asian games. She hails from Punjab state in India. She received Padma Shri award in 1971. In 1971, she was one of the finalists in the World University Games held at Turin, Italy, in 400 metres race. She participated in the Women's 400 metres at the 1972 Munich Olympics, bowing out in the heats. Kamaljeet retired from athletics in 1973. She was also a national - level basketball and inter-varsity hockey player. She went to the 1982 Asian Games as the coach of the Indian women's sprint team.</s>List of Olympic Games host cities. The Games have primarily been hosted in the continents of Europe (32 editions) and North America (12 editions); seven Games have been hosted in Asia and two have been hosted in Oceania. In 2010, Singapore became Southeast Asia's first Olympic host city for the inaugural Summer Youth Olympics, while Rio de Janeiro became South America's first Olympic host city with the 2016 Summer Olympics, followed by Buenos Aires with the 2018 Summer Youth Olympics. The 2022 Summer Youth Olympics in Dakar will become the first - ever Games to be held on the African continent. Other major geographic regions which have never hosted the Olympics include the Middle East, the Indian subcontinent, Central America and the Caribbean.</s>New Delhi. The city hosted the 2010 Commonwealth Games and annually hosts Delhi Half Marathon foot-race. The city has previously hosted the 1951 Asian Games and the 1982 Asian Games. New Delhi was interested  in bidding for the 2019 Asian Games but was turned down by the government on 2 August 2010 amid allegations of corruption in 2010 Commonwealth Games .",
        'Beyoncé. Beyoncé Giselle Knowles - Carter (/ biːˈjɒnseɪ /; born September 4, 1981) is an American singer, songwriter, actress, and businesswoman. Born and raised in Houston, Texas, Beyoncé performed in various singing and dancing competitions as a child. Beyoncé rose to fame in the late 1990s as lead singer of the R&B girl - group Destiny\'s Child. Managed by her father, Mathew Knowles, the group became one of the world\'s best - selling girl groups in history. Their hiatus saw Beyoncé\'s theatrical film debut in Austin Powers in Goldmember (2002) and the release of her debut album, Dangerously in Love (2003). The album established her as a solo artist worldwide, earned five Grammy Awards, and featured the Billboard Hot 100 number one singles ``Crazy in Love \'\'and`` Baby Boy\'\'.</s>She\'s So Lovely (song). The music video for ``She\'s So Lovely \'\'is set in a bowling alley. Roy Stride is trying to attract the attentions of a pretty girl (Louise Glover), but she has a boyfriend already. While the boyfriend is there, Roy tells the girl she looks beautiful. The boyfriend gets angry, but gets called away for his throw. As he scores a strike, Roy and the girl walk off down the hall together (although only their legs are shown, the shoes and jeans are the same as Roy\'s).</s>She Doesn\'t Mind. The music video had a special guest: Lisa Jackson from cycle 9 of America\'s Next Top Model who acted as a TSA officer.</s>Baby Boy (Beyoncé song). "Baby Boy" is a song by American singer Beyoncé featuring Jamaican dancehall singer Sean Paul from Beyoncé\'s debut solo studio album "Dangerously in Love" (2003). Both artists co-wrote the song with Scott Storch, Robert Waller and Shawn "Jay-Z" Carter; the former also co-produced the song. Containing a lyrical interpolation of "No Fear" by hip hop group O.G.C, "Baby Boy" is an R&B and dancehall song with reggae and Arabic music influences; its lyrics detail a woman\'s fantasies.</s>She Has Funny Cars. "She Has Funny Cars" is a song by the band Jefferson Airplane. It is a collaboration between vocalist Marty Balin (lyrics) and guitarist Jorma Kaukonen (music). The song appeared as the opening track on their influential breakthrough album, "Surrealistic Pillow" - released in 1967. The song discusses materialism in American society. It has also been said that the song is about one of Spencer Dryden\'s girlfriend\'s "funny cars". The song features Jack Casady on fuzz bass, and uses the famous "Bo Diddley Beat". Marty Balin is singing the first part vocal with Grace Slick\'s contrasting second part.</s>Jayne Marie Mansfield. Jayne Marie Mansfield (born November 8, 1950) is the first child and elder daughter of 1950s Hollywood sex symbol and "Playboy" Playmate Jayne Mansfield and Mansfield\'s ex-husband Paul. Mansfield is also the older half-sister of actress Mariska Hargitay. In July 1976, Mansfield became the first daughter of a Playmate to be a featured model. To date, only one other daughter of a Playmate has been featured in the magazine. Additionally, Mansfield is the only model who was featured as "100 Beautiful Women" along with her mother in the magazine\'s 1988 special issue. She has acted in the film "Olly, Olly, Oxen Free" (1978) and TV production "Blond in Hollywood" (2003).',
        "Oakland Raiders relocation to Las Vegas. The Oakland Raiders relocation to Las Vegas was a successful effort by the owner of the Oakland Raiders (Mark Davis) to relocate the American football club from its current and longtime home of Oakland, California to Las Vegas, Nevada. The team is scheduled to begin play as the Las Vegas Raiders for the 2020 National Football League (NFL) season (although a move to Las Vegas could happen as soon as 2019 with Sam Boyd Stadium), playing home games at the Las Vegas Stadium. NFL team owners voted 31 -- 1 to approve the move, which was announced at the annual league meetings in Phoenix, Arizona on March 27, 2017. The Raiders became the third NFL franchise to relocate in the 2010s, following the Rams' move from St. Louis, Missouri to Los Angeles, California on January 12, 2016, and the Chargers' move from San Diego, California to Los Angeles on January 12, 2017. The Raiders' move to Las Vegas comes after years of failed efforts to renovate or replace the Oakland -- Alameda County Coliseum, which has been rated by multiple sources as one of the worst stadiums in the NFL.</s>Oakland Raiders relocation to Las Vegas. On March 6, 2017, the Raiders revealed that Bank of America would be replacing Sheldon Adelson's portion of the funding for the new stadium in Las Vegas. On March 27, 2017, the National Football League officially approved the Raiders move from Oakland to Las Vegas in a 31 -- 1 vote, ensuring them a new stadium in the process. However, even though the Raiders were approved to move to Las Vegas, the club will still play the 2017 and 2018 NFL seasons at the Oakland -- Alameda County Coliseum and still be known as the Oakland Raiders so as long as they play in the San Francisco Bay Area. About one thousand season ticket holders asked for and received refunds after the move to Las Vegas was announced. Their tickets were sold to other fans within hours, and the Raiders' 53,250 season tickets were all sold out by late May.</s>Vegas Golden Knights. The Vegas Golden Knights are a professional ice hockey team based in the Las Vegas metropolitan area. The team began play in the 2017 -- 18 NHL season, and is a member of the Pacific Division of the Western Conference of the National Hockey League (NHL). The team is owned by Black Knight Sports & Entertainment, a consortium led by Bill Foley, and plays its home games at T - Mobile Arena on the Las Vegas Strip in Paradise, Nevada.</s>The Venue at UCF. The Venue at UCF is a sports and entertainment arena located in Orlando, Florida on the main campus of The University of Central Florida. The arena which was opened in 1991, housed the Knights men's and women's basketball teams from 1991 to 2007, and has served as home to UCF's volleyball team since 1991. The Venue also serves as a practice facility for the university's basketball teams, and houses administrative offices for the same.</s>Vegas Golden Knights. The Vegas Golden Knights are a professional ice hockey team based in the Las Vegas metropolitan area. The team began play in the 2017 -- 18 NHL season, and is a member of the Pacific Division of the Western Conference of the National Hockey League (NHL). The team is owned by Black Knight Sports & Entertainment, a consortium led by Bill Foley, and plays its home games at T - Mobile Arena on the Las Vegas Strip in Paradise, Nevada.</s>Cleveland Browns relocation controversy. The Cleveland Browns relocation controversy, sometimes referred to by fans as ``The Move '', was the decision by then - Browns owner Art Modell to relocate the National Football League (NFL)'s Cleveland Browns from its long - time home of Cleveland to Baltimore during the 1995 NFL season. Subsequent legal actions by the city of Cleveland and Browns season ticket holders led the NFL to broker a compromise that saw the Browns history, records, and intellectual property remain in Cleveland. In return, Modell was permitted to move his football organization to Baltimore where he established the Baltimore Ravens. The Ravens are officially regarded by the NFL as an expansion team that began play in 1996. The city of Cleveland agreed to demolish Cleveland Stadium and build a new stadium on the same site, and the NFL agreed to reactivate the Browns by the 1999 season through either an expansion draft or a relocated franchise. The Browns were officially reactivated in 1998 through the expansion process and resumed play in 1999.",
        'Adam Lambert. Lambert began performing with Metropolitan Educational Theatre network (now MET2) from the age of nine. A few years later, he began more intense acting and vocal coaching, continuing to perform with both MET2 and what was to become the Broadway Bound Youth Theatre Foundation, as he moved through Mesa Verde Middle School and then Mount Carmel High School. There, he became heavily involved with theater and choir, performed vocals with the school\'s jazz band, and competed in the local Air Bands competitions. He also appeared in local professional productions such as Hello, Dolly!, Camelot, The Music Man, Grease, Chess and Peter Pan, at venues such as The Starlight, The Lyceum and others.</s>10 Things I Hate About You. The band Save Ferris (singer Monique Powell, guitarist Brian Mashburn, bassist Bill Uechi, trumpeter José Castellaños, trombonist Brian Williams, saxophonist Eric Zamora, and drummer Evan Kilbourne) appears as the band performing at the prom, playing their songs ``I Know \'\'and`` Ca n\'t Stop\'\' as well as covers of The Isley Brothers\' ``Shout \'\'and Nick Lowe\'s`` Cruel to Be Kind\'\'.</s>Through the Wire. "Through the Wire" is the debut single by American rapper Kanye West. West wrote and recorded the song with his jaw wired shut after a car accident in October 2002. The song samples Chaka Khan\'s 1985 single "Through the Fire" and was released on the last day of September 2003 as the lead single from his debut album "The College Dropout" (2004).</s>John Mayer. Mayer considered skipping college to pursue his music, but his parents dissuaded him.  He enrolled in the Berklee College of Music in 1997 at age 19. At the urging of his college friend Clay Cook, they left Berklee after two semesters and moved to Atlanta. There, they formed a two-man band called LoFi Masters, and began performing in local coffee houses and club venues such as Eddie\'s Attic. According to Cook, they experienced musical differences due to Mayer\'s desire to move more towards pop music. The two parted ways and Mayer embarked on a solo career.With the help of local producer and engineer Glenn Matullo, Mayer recorded the independent EP Inside Wants Out. The EP includes eight songs with Mayer on lead vocals and guitars. For the opening track, "Back To You", a full band was enlisted, including the EP\'s co-producer David "DeLa" LaBruyere on bass guitars. Cook had co-written many of the album\'s songs, including its first commercial single release, "No Such Thing", However, his only performance contribution was backing vocals on the song "Comfortable".</s>Live and Learn (The Cardigans song). "Live and Learn" is a song by the rock group The Cardigans and is the third and final single from the album Long Gone Before Daylight. All music by Peter Svensson, and all lyrics by Nina Persson. The song appears on episode 2 of "Grey\'s Anatomy" Music of Grey\'s Anatomy, and in a season 9 episode of Scrubs. The song is a straight love song about learning love, her thinking of what her love is worth.</s>Becky Wahlstrom. Becky Wahlstrom (born April 25, 1975) is an American actress. She attended the London Academy of Music and Dramatic Art in England for her college years.',
    ]
)
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]

Evaluation

Metrics

Cross Encoder Correlation

Metric validation train_subset
pearson 0.6681 0.6682
spearman 0.6553 0.6659

Training Details

Training Dataset

Unnamed Dataset

  • Size: 33,415 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: 31 characters
    • mean: 95.01 characters
    • max: 251 characters
    • min: 854 characters
    • mean: 3791.41 characters
    • max: 8184 characters
    • min: 0.0
    • mean: 0.51
    • max: 1.0
  • Samples:
    sentence_0 sentence_1 label
    Why did the person held responsible for the actions of the KPA redeploy his military troops? Korean War. At dawn on Sunday, 25 June 1950, the Korean People's Army crossed the 38th parallel behind artillery fire. The KPA justified its assault with the claim that ROK troops had attacked first, and that they were aiming to arrest and execute the "bandit traitor Syngman Rhee". Fighting began on the strategic Ongjin peninsula in the west. There were initial South Korean claims that they had captured the city of Haeju, and this sequence of events has led some scholars to argue that the South Koreans actually fired first.Korean War. In 1952, the United States elected a new president, and on 29 November 1952, the president - elect, Dwight D. Eisenhower, went to Korea to learn what might end the Korean War. With the United Nations' acceptance of India's proposed Korean War armistice, the KPA, the PVA, and the UN Command ceased fire with the battle line approximately at the 38th parallel. Upon agreeing to the armistice, the belligerents established the Korean Demilitarized Zone (DMZ... 0.0
    In what year did the city in which the Gandhi Smriti is located first host the Asian Games? New Delhi. Gandhi Smriti in New Delhi is the location where Mahatma Gandhi spent the last 144 days of his life and was assassinated on 30 January 1948. Rajghat is the place where Mahatma Gandhi was cremated on 31 January 1948 after his assassination and his ashes were buried and make it a final resting place beside the sanctity of the Yamuna River. The Raj Ghat in the shape of large square platform with black marble was designed by architect Vanu Bhuta.List of Olympic Games host cities. The Games have primarily been hosted in the continents of Europe (36 editions) and North America (12 editions); eight Games have been hosted in Asia and two have been hosted in Oceania. In 2016, Rio de Janeiro became South America's first Olympic host city, while the African continent is yet to hold the Games. Other major geographic regions which have never hosted the Olympics include the Middle East, the Indian subcontinent, the Caribbean, and Southeast Asia.2018 Asian Games medal table. The 20... 0.5
    What model appeared in the video for She Doesn't Mind sung by the singer featured on Baby Boy? Beyoncé. Beyoncé Giselle Knowles - Carter (/ biːˈjɒnseɪ /; born September 4, 1981) is an American singer, songwriter, actress, and businesswoman. Born and raised in Houston, Texas, Beyoncé performed in various singing and dancing competitions as a child. Beyoncé rose to fame in the late 1990s as lead singer of the R&B girl - group Destiny's Child. Managed by her father, Mathew Knowles, the group became one of the world's best - selling girl groups in history. Their hiatus saw Beyoncé's theatrical film debut in Austin Powers in Goldmember (2002) and the release of her debut album, Dangerously in Love (2003). The album established her as a solo artist worldwide, earned five Grammy Awards, and featured the Billboard Hot 100 number one singles Crazy in Love ''and Baby Boy''.She's So Lovely (song). The music video for ``She's So Lovely ''is set in a bowling alley. Roy Stride is trying to attract the attentions of a pretty girl (Louise Glover), but she has a boyfriend already. While ... 0.5
  • 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.0299 250 - 0.5603 0.5381
0.0599 500 0.65 0.5943 0.5781
0.0898 750 - 0.6068 0.5949
0.1197 1000 0.577 0.6094 0.6046
0.1496 1250 - 0.6124 0.6127
0.1796 1500 0.5694 0.6152 0.6137
0.2095 1750 - 0.6178 0.6213
0.2394 2000 0.572 0.6247 0.6216
0.2693 2250 - 0.6250 0.6231
0.2993 2500 0.5722 0.6286 0.6233
0.3292 2750 - 0.6239 0.6229
0.3591 3000 0.5524 0.6279 0.6258
0.3890 3250 - 0.6314 0.6319
0.4190 3500 0.5675 0.6331 0.6342
0.4489 3750 - 0.6358 0.6365
0.4788 4000 0.5644 0.6378 0.6383
0.5087 4250 - 0.6375 0.6433
0.5387 4500 0.5619 0.6384 0.6471
0.5686 4750 - 0.6413 0.6538
0.5985 5000 0.5544 0.6453 0.6541
0.6284 5250 - 0.6465 0.6535
0.6584 5500 0.5523 0.6483 0.6538
0.6883 5750 - 0.6489 0.6551
0.7182 6000 0.546 0.6516 0.6589
0.7481 6250 - 0.6537 0.6635
0.7781 6500 0.5581 0.6527 0.6633
0.8080 6750 - 0.6553 0.6659

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
9
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/musique-mixer-2000

Finetuned
(67)
this model

Paper for OloriBern/musique-mixer-2000

Evaluation results