ConSERT
Code for our ACL 2021 paper - ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation Transfer.
yym6472/ConSERT is ranked 17,435 with 540 stars.
yym6472/ConSERT is ranked 17,435 among these 8 peers; woodrush/neural-art-tf is ranked 17,434.
| Name | Rank | Metrics |
|---|---|---|
| kpot/keras-transformer | 17,426 |
|
| machinelearnjs/machinelearnjs | 17,427 |
|
| poloclub/wizmap | 17,432 |
|
| woodrush/neural-art-tf | 17,434 |
|
| fancompute/wavetorch | 17,442 |
|
| wl-zhao/VPD | 17,451 |
|
| JDAI-CV/CoTNet | 17,453 |
|
| LucasAlegre/morl-baselines | 17,454 |
|
| Parameter | Value |
|---|---|
| Language | Python |
| Category | Model Development |
| Subcategory | Architecture |
| Keywords | Embeddings |
| Stars | 540 |
| Forks | 79 |
| Contributors | 1 |
| Created date | 2021-05-31 |
| Updated date | 2026-08-20 |
| Stars in 1 day | 0 |
| Stars in 7 days | 0 |
| Rank | 17,435 |
| Previous rank | 17,216 |
| Rank change | -219 |
| 7-day stars rank | 16,104 |
| Previous 7-day stars rank | 16,109 |
| 7-day stars rank change | 5 |
| Total stars rank | 18,247 |
| Previous total stars rank | 18,216 |
| Total stars rank change | -31 |
| Country | China |
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.
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.