From aa14b801772c6c1d1b87698906517e8e6f5ec335 Mon Sep 17 00:00:00 2001 From: Julien Chaumond Date: Fri, 11 Dec 2020 22:50:44 +0100 Subject: [PATCH] Migrate model card from transformers-repo Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/microsoft/codebert-base/README.md --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..4ae9f25 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +## CodeBERT-base +Pretrained weights for [CodeBERT: A Pre-Trained Model for Programming and Natural Languages](https://arxiv.org/abs/2002.08155). + +### Training Data +The model is trained on bi-modal data (documents & code) of [CodeSearchNet](https://github.com/github/CodeSearchNet) + +### Training Objective +This model is initialized with Roberta-base and trained with MLM+RTD objective (cf. the paper). + +### Usage +Please see [the official repository](https://github.com/microsoft/CodeBERT) for scripts that support "code search" and "code-to-document generation". + +### Reference +1. [CodeBERT trained with Masked LM objective](https://huggingface.co/microsoft/codebert-base-mlm) (suitable for code completion) +2. 🤗 [Hugging Face's CodeBERTa](https://huggingface.co/huggingface/CodeBERTa-small-v1) (small size, 6 layers) + +### Citation +```bibtex +@misc{feng2020codebert, + title={CodeBERT: A Pre-Trained Model for Programming and Natural Languages}, + author={Zhangyin Feng and Daya Guo and Duyu Tang and Nan Duan and Xiaocheng Feng and Ming Gong and Linjun Shou and Bing Qin and Ting Liu and Daxin Jiang and Ming Zhou}, + year={2020}, + eprint={2002.08155}, + archivePrefix={arXiv}, + primaryClass={cs.CL} +} +```