← Open Source
yym6472

ConSERT

Code for our ACL 2021 paper - ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation Transfer.

Model DevelopmentArchitecturePython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
540
Stars
79
Forks
+0
This week
1
Contributors
Created 2021-05-31 · Updated 2026-08-20 · #17435 today
Top developers
yym6472

yym6472/ConSERT is ranked 17,435 with 540 stars.

Same-category comparison

yym6472/ConSERT is ranked 17,435 among these 8 peers; woodrush/neural-art-tf is ranked 17,434.

Same-category comparison
NameRankMetrics
kpot/keras-transformer17,426
Language:
Python
Stars:
540
Forks:
134
Description:
Keras library for building (Universal) Transformers, facilitating BERT and GPT models.
machinelearnjs/machinelearnjs17,427
Language:
TypeScript
Stars:
540
Forks:
53
Description:
Machine Learning library for the web and Node.
poloclub/wizmap17,432
Language:
TypeScript
Stars:
540
Forks:
35
Description:
Explore and interpret large embeddings in your browser with interactive visualization.
woodrush/neural-art-tf17,434
Language:
Python
Stars:
540
Forks:
111
Description:
"A neural algorithm of Artistic style" in tensorflow.
fancompute/wavetorch17,442
Language:
Python
Stars:
539
Forks:
85
Description:
🌊 Numerically solving and backpropagating through the wave equation.
wl-zhao/VPD17,451
Language:
Jupyter Notebook
Stars:
539
Forks:
33
Description:
[ICCV 2023] VPD is a framework that leverages the high-level and low-level knowledge of a pre-trained text-to-image diffusion model to downstream visual perception tasks.
JDAI-CV/CoTNet17,453
Language:
Python
Stars:
538
Forks:
83
Description:
This is an official implementation for "Contextual Transformer Networks for Visual Recognition".
LucasAlegre/morl-baselines17,454
Language:
Python
Stars:
538
Forks:
110
Description:
Multi-Objective Reinforcement Learning algorithms implementations.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModel Development
SubcategoryArchitecture
KeywordsEmbeddings
Stars540
Forks79
Contributors1
Created date2021-05-31
Updated date2026-08-20
Stars in 1 day0
Stars in 7 days0
Rank17,435
Previous rank17,216
Rank change-219
7-day stars rank16,104
Previous 7-day stars rank16,109
7-day stars rank change5
Total stars rank18,247
Previous total stars rank18,216
Total stars rank change-31
CountryChina
README summary

ConSERT Code for our ACL 2021 paper - ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation Transfer Requirements To install apex, run: Get Started English STS Tasks 1. bert-base-uncased) to folder from HuggingFace's Library 2. Download STS datasets to folder by running . The script is modified from SentEval toolkit 3. Run the scripts in the folder to reproduce our experiments. For example, run the following script to train unsupervised consert-base: *Update*: Recently we update the support for

RoBERTa model. Download the pre-trained language model (e. chinese-roberta-wwm-ext) to folder from HuggingFace's Library 2. Download the chinese STS datasets to folder by running 3. Run the scripts in the folder to train models for chinese STS tasks. For example, run the following script to train *base* model for task: The option in is used to select which chinese STS dataset to use. Pre-trained Models & Results English STS Tasks | ID | Model | STS12 | STS13 | STS14 | STS15

| STS16 | STSb | SICK-R | Avg. 86 | | - | bert-large-uncased (baseline) | 33. All the *base* models are trained from and the *large* models are trained from . For the unsupervised transfer, we merge all unlabeled texts from 7 STS datasets (STS12-16, STSbenchmark and SICK-Relatedness) as the training data (total 89192 sentences), and use the STSbenchmark dev split (including 1500 human-annotated sentence pairs) to select the best checkpoint. The sentence representations are obtained by averaging the token embeddings at the

last two layers of BERT. For model 2 to 10, we re-trained them on a single GeForce RTX 3090 with pytorch 1. 0 in our initial experiments) and changed the from 64 to 40 to reduce the required GPU memory (only for *large* models). Consequently, the results shown here may be slightly different from those reported in our paper. 86 | | - | chinese-roberta-wwm-ext-large (baseline) | 13. All the *base* models are trained from and the *large* models are

trained from . For each model, we train it on *single* chinese STS dataset but evaluate it on all 5 datasets. **The bold numbers** indicate that the model is evaluated on the same dataset it trained on. The sentence representations are also obtained by averaging the token embeddings at the last two layers of BERT. For *base* models, we set to 96 and to 64, while for *large* models, we set to 32 and to 40 to reduce the required GPU

memory.

Frequently asked questions

How many stars and forks are recorded?

yym6472/ConSERT has 540 stars and 79 forks.

What is the repository rank?

yym6472/ConSERT is ranked 17,435.

What language and category are recorded?

yym6472/ConSERT has 540 stars, uses Python and belongs to Model Development.

Which repository is closest in rank?

yym6472/ConSERT is compared with woodrush/neural-art-tf, ranked 17,434 with 540 stars.

Nearby in the ranking
Similar items