Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

ahmedHamdi
/
ir-es-en-instructor-xl

Sentence Similarity
sentence-transformers
Safetensors
t5
feature-extraction
dense
Generated from Trainer
dataset_size:2336
loss:MultipleNegativesRankingLoss
Model card Files Files and versions
xet
Community

Instructions to use ahmedHamdi/ir-es-en-instructor-xl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use ahmedHamdi/ir-es-en-instructor-xl with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("ahmedHamdi/ir-es-en-instructor-xl")
    
    sentences = [
        "Represent the plot: Several years after the events of A Better Tomorrow, Sung Tse-ho (Ti Lung) is offered early parole by the police in exchange for spying on his former boss and mentor, Lung Sei (Dean Shek), who is suspected of running a counterfeiting operation. Inspector Wu (Lau Siu-ming), leader of the anti-crime task force, wants to mark his retirement by capturing a high-profile criminal like Lung. However, Ho, still loyal to Lung, initially declines. He changes his mind when he discovers that his younger brother, Sung Tse-kit (Leslie Cheung), is working undercover on the same case, and agrees to go undercover to protect his brother, who is expecting a child with his wife Jackie (Emily Chu). While working on the case, the two brothers reunite and agree to work together on the investigation. After being framed for murder, Lung seeks Ho's help, who assists him in escaping to New York. However, Lung suffers a psychotic break and is institutionalized after learning of his daughter's murder and witnessing his friend's death. Meanwhile, Ho learns that Mark Lee has a long-lost twin brother, Ken (Chow Yun-fat), a former gang member who legitimately left Hong Kong as a teenager to travel across America, eventually settling down and opening a restaurant in New York City. Ho locates Ken and enlists his help to free Lung and nurse him back to health. Ken and Lung (still catatonic) hide in an apartment building. During a shootout with gangsters, they are cornered, but Lung regains his composure and kills the last of the Americans pursuing them. Both return to Hong Kong and connect with Ho and Kit. The group discovers that one of Lung's employees, Ko Ying-pui (Kwan Shan), is responsible for attempting to kill Lung and has taken over the organization in his absence. Lung resolves that he would rather destroy his organization with his own hands than let it fall into disgrace and ruin, and the team begins to devise a plan against Ko. After conducting reconnaissance at Ko's mansion, Kit is mortally wounded at the same time his daughter is born. He is rescued by Ken, who tries to take him to the hospital. Knowing he won't make it, Kit convinces Ken to stop at a phone booth to call his wife. After attending Kit's funeral, Ho, Ken, and Lung take revenge on Ko by attacking his mansion during a meeting with a counterfeiter client. A massive shootout ensues. The three, assisted by Ho's former boss at the taxi company, kill approximately 90 other people (including Ko), but all are seriously wounded in the process. When the shooting ends, the three men sit down in the mansion and are surrounded by police, led by Inspector Wu. Seeing the men's condition, Wu gestures to the other officers to lower their weapons. Ho remarks that Inspector Wu shouldn't withdraw yet, as \"there's still a lot of work to be done.",
        "Represent the plot: Several years after his arrest, Sung Tse-ho is offered early parole by the police in exchange for spying on his former boss and mentor, Lung Sei, who is suspected of heading a counterfeiting operation. Inspector Wu, the leader of the task force, wants to mark his retirement with the capture of a high profile criminal like Lung. Though Ho initially declines because of his loyalty to Lung, he eventually changes his mind when he discovers that his younger brother, Kit, who is expecting a child along with his pregnant wife Jackie, is working undercover on the same case. While working the case, the two brothers meet and agree to work together. After being framed for murder, Lung seeks Ho's help, who is able to help him escape to New York. However, Lung suffers a psychotic break and is institutionalized after receiving news of his daughter's murder and witnessing the death of a friend. Meanwhile, Ho learns that his deceased friend Mark Lee has a long-lost twin brother, Ken, a former gang member who left Hong Kong as a teenager to travel across America, eventually opening a restaurant in New York City. Ho then locates Ken and enlists his assistance in freeing Lung. Targeted by both assassins attempting to kill Lung as well as American mobsters looking to extort Ken, Ken and a catatonic Lung take refuge in an apartment building where Ken arms himself. During a shoot-out with their attackers, Ken and Lung find themselves cornered; seeing Ken in trouble snaps Lung out of his stupor, and he kills the last of their pursuers. The two return to Hong Kong and regroup with Ho and Kit. The group discovers that one of Lung's employees, Ko Ying-pui, is responsible for attempt on Lung's life and has since taken over the organization in Lung's absence. Lung decides that he would rather destroy his organization with his own hands than let it fall into dishonor and ruin, and the group starts planning to act against Ko. After scouting out Ko's mansion alone, Kit is fatally wounded, but is rescued by Ken, who attempts to rush him to the hospital. Knowing that he will not make it however, Kit persuades Ken to stop at a phone booth to call Jackie, where he manages to name his newborn child Sung Ho-yin (the Spirit of Righteousness) before succumbing to his wounds. After attending Kit's funeral, Ho, Ken, and Lung take revenge on Ko by attacking his mansion during a meeting with a counterfeiting client. The three manage to kill Ko and several of his men following an intense shootout, but are all critically wounded in the process. Following the shootout, the three men sit down in the mansion and are surrounded by the police forces led by Inspector Wu. Upon seeing the condition of the men, Wu orders his men to stand down, while Ho remarks against Inspector Wu's retirement, as there is much work left for [him] to do.",
        "Represent the plot: Three young confidence tricksters— Vinnie, Carter and Rosie — pull off a racing scam, substituting winners for plodders and winning big money on long odds. When an official uncovers the scam, they set him up for blackmail. Twenty years later, Carter and Rosie are married, successful racers in Kentucky about to sell their prize stallion, Simpatico. Vinnie, meanwhile, is a drunk in Pomona. Vinnie decides to make a play for Rosie, lures Carter to California, steals his wallet and heads for Kentucky with the original blackmail material. Carter begs Vinnie's friend, a grocery clerk named Cecilia, to follow Vinnie and recover the material that he has in a box.",
        "Represent the plot: In Las Vegas, LVMPD policemen Vincent Downs and his partner Sean Cass rob a shipment of cocaine belonging to entrepreneur Stanley Rubino, who intended to sell it to mobster Rob Novak, the son of a powerful mob boss. The two cops volunteer to investigate the robbery in order to cover up their involvement, clashing with Internal Affairs investigators Jennifer Bryant and her superior Doug Dennison, who are suspicious of the pair. Vincent is estranged from his wife Dena, who is getting remarried, and has minimal involvement in the life of his 16-year-old son T. While driving T to a soccer game, Vincent is ambushed by Rubino's men, who stab him in the abdomen and kidnap his son - demanding the stolen cocaine back in exchange for T's life. Vincent retrieves the cocaine from Cass, places it in a duffel bag, and leaves it in the ventilation shaft of one of the bathrooms in Rubino's casino, hoping he can negotiate his son's release before handing over his leverage. He is unknowingly followed by Bryant, who, now convinced he is a dirty cop, retrieves the bag and hides it in the women's locker room nearby. Without the drugs, Vincent is forced to present Rubino with bags of sugar to ensure T's safety, but Novak uncovers his ruse, and T is recaptured by Rubino's men, while Vincent manages to escape. Meanwhile, after coming up empty while searching the casino for Vincent, Dennison is convinced he's gotten away and directs Bryant to go home and get some sleep. Bryant gives him the key to the women's locker with the cocaine and heads for the exit. Vincent enters the casino as a janitor, but crosses paths with Bryant on her way out and is chased into one of the hotel rooms. They fight, and he subdues her before revealing he's been undercover on behalf of Internal Affairs for the last two years to dismantle the crime ring within the police department. He knows Cass is a drug-runner, knew details about a previous investigation by Bryant, and is now attempting to find the senior member of law enforcement that is covering everything up. A skeptical Bryant directs him to the locker room to retrieve the cocaine, but the drugs have recently been removed by Dennison. Dennison ambushes Vincent but is ultimately overpowered and knocked unconscious. Meanwhile, T escapes and steals Rubino's cellphone to contact Vincent, but is quietly being followed by Rubino and his men who allow it all to happen in an attempt to lure Vincent into a trap. Elsewhere, Dena finds out Vincent and T are in danger and heads to the casino. Cass arrives and confronts Vincent about his Internal Affairs involvement, but then saves Vincent from one of Novak's men. He is shot in the process and presumed dead. Vincent infiltrates the casino in a police uniform that Cass brought and finds out Dennison is the mole in the force upon going through Cass's phone; Dennison is on Novak's payroll and ordered Cass to kill Vincent after informing him that he was Internal Affairs. Bryant and Dennison later find a severely injured Cass in the garage. While Bryant checks the vitals of Novak's man, Dennison privately questions Cass on whether Vincent is aware of his involvement and finishes him off when Cass refuses to answer. Vincent and T reunite just as Novak begins shooting up the casino and escape to the parking garage. In the ensuing shootout, Bryant arrests Rubino. Vincent and T attempt to escape in a stolen car, but are ambushed by Novak and his men, leading to a violent shootout. Dena arrives and kills Novak's remaining henchman to save Vincent and T before Novak corners them. He shoots Vincent in the chest, but Vincent survives and fatally shoots Novak. Vincent then contacts Bryant and alerts her of Dennison's corruption. She instantly attempts to apprehend Dennison but he shoots her. He then kills Rubino after questioning if Novak's father ever mentioned him in his criminal dealings, then shoots dead the policeman driving the cruiser they are in, in order to cause the vehicle to crash, intending to frame Rubino for the incident. However, Bryant survives and exposes Dennison, who is promptly arrested. Vincent and Bryant are taken to the same hospital, where they make amends and congratulate each other on the job. Meanwhile, a corrupt DEA agent - seen earlier in the film - contacts Novak's father and informs him that there has been a problem, implying that he will subsequently tell him about his son's death."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
ir-es-en-instructor-xl
4.97 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
ahmedHamdi's picture
ahmedHamdi
Fine-tuned Instructor-XL ir with es-en plots
3c2aeb2 verified 3 months ago
  • 1_Pooling
    Fine-tuned Instructor-XL ir with es-en plots 3 months ago
  • 2_Dense
    Fine-tuned Instructor-XL ir with es-en plots 3 months ago
  • .gitattributes
    1.52 kB
    initial commit 3 months ago
  • README.md
    77.6 kB
    Fine-tuned Instructor-XL ir with es-en plots 3 months ago
  • config.json
    1.46 kB
    Fine-tuned Instructor-XL ir with es-en plots 3 months ago
  • config_sentence_transformers.json
    283 Bytes
    Fine-tuned Instructor-XL ir with es-en plots 3 months ago
  • model.safetensors
    4.96 GB
    xet
    Fine-tuned Instructor-XL ir with es-en plots 3 months ago
  • modules.json
    461 Bytes
    Fine-tuned Instructor-XL ir with es-en plots 3 months ago
  • sentence_bert_config.json
    57 Bytes
    Fine-tuned Instructor-XL ir with es-en plots 3 months ago
  • special_tokens_map.json
    2.54 kB
    Fine-tuned Instructor-XL ir with es-en plots 3 months ago
  • tokenizer.json
    2.42 MB
    Fine-tuned Instructor-XL ir with es-en plots 3 months ago
  • tokenizer_config.json
    21 kB
    Fine-tuned Instructor-XL ir with es-en plots 3 months ago