GithubHelp home page GithubHelp logo

tic-top / loracse Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 0.0 17.87 MB

😜Constrative Learning of Sentence Embedding using LoRA (EECS487 final project)

License: MIT License

Python 40.46% Shell 0.11% Jupyter Notebook 59.43%
lora peft nlp pytorch sentence-embeddings contrastive-learning

loracse's Introduction

😜LoRACSE: Contrastive Learning of Sentence Embedding using LoRA

Final project of EECS 487: Introduction to Natural Language Processing (Umich)

Autor: Yilin Jia, Sikai Li, Yuqi Mai

Date: 18 April, 2023

Instructions

This project involves evaluating the performance of the LoraCSE model through a series of experiments. Here's how to access and run the code:

  • Open the LoraCSE.ipynb notebook to view and run the code for all the experiments.
  • Follow the instructions provided in the notebook to run the experiments using your GPU and view the results.
  • After running the experiments, refer to the accompanying LoRACSE.pdf file for a detailed analysis of the results.

The analysis provided in LoRACSE.pdf offers insights into the performance of the LoraCSE model and its ability to handle different types of data. Use this information to improve the model's accuracy for your specific use case.

Performance

Model Avg. STS
sup-loracse-bert-base (batch size 512) 81.55
sup-loracse-roberta-base (batch size 512) 82.49
sup-loracse-roberta-large (batch size 375) 84.69

Requirements

To run the experiment, which involves processing large amounts of data with a batch size of 512, your GPU must have at least 40GB of RAM. Here are the compatible GPUs:

  • V100
  • A6000
  • A40
  • RTX3090 (four required)

In this experiment, we use four A40.

Acknowledgements

We would like to acknowledge the following projects for their contributions to our work:

  • SimCSE: Our code has learned a lot from the implementation and ideas presented in this repository.
  • PEFT: We have used some of the functionality provided by this library to improve the performance of our code.

We are grateful to the contributors of these projects for sharing their knowledge and expertise with the community.

Future work

  • Learn and use adalora to tune.
  • Accelerate the training and evaluation.
  • Try to tune debertv3.
  • Upload the model to Huggingface.

loracse's People

Contributors

magician-blue avatar skevinci avatar tic-top avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

loracse's Issues

要寄啦!

寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄寄

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.