Coder Social home page Coder Social logo

1b_sentence_embeddings's Introduction

Train the Best Sentence Embedding Model Ever with 1B Training Pairs.

Contribution to the project Flax/JAX Projects

Dataset

The iteration on the dataset are crucial for this task as the characteristics of the batch will directly impact on the model performances. Increasing the batch size will increase performances as well Qu and all., 2021. Each batch should also be somehow center on one specific sub-domain or dataset such that samples could not be discriminated from their general "domain" only. However batches should also mix different sub-domains in some proportion such that the mapping of distinct domain do not overlap.

I implemented basic function to download the various corpora and load them in python. Download time should be approximatively 20 minutes for all datasets currently listed in the "Available Datasets" sheet. I also implemented a basic lazy dataloader. For now the dataloader takes a single jsonl.gz file as input and iterates over it to retrieve sample. The dataloader is implemented in PyTorch for now and support multi-threading. It uses a pointer mechanism to load a sample one by one in memory.

Please refere to the demonstration notebook: Open In Colab

You can download the data using the python script:

python download_data.py --dataset_list=datasets_list.tsv --data_path=PATH_TO_STORE_DATASETS

Demonstration notebook to train code search model on TPU with colab: Open In Colab

1b_sentence_embeddings's People

Contributors

antoinesimoulin avatar

Watchers

 avatar  avatar

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.