Instructions to use microsoft/codereviewer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/codereviewer with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("microsoft/codereviewer") model = AutoModelForSeq2SeqLM.from_pretrained("microsoft/codereviewer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from microsoft/codereviewer: direct link, hf CLI and curl.
- Browser
- Download file 956 Bytes
-
https://huggingface.co/microsoft/codereviewer/resolve/main/README.md
- Command line
-
hf download hf://microsoft/codereviewer/README.md
-
curl -L -o README.md https://huggingface.co/microsoft/codereviewer/resolve/main/README.md
956 Bytes
metadata
language: code
license: apache-2.0
CodeReviewer
Model description
CodeReviewer is a model pre-trained with code change and code review data to support code review tasks.
CodeReviewer: Pre-Training for Automating Code Review Activities. Zhiyu Li, Shuai Lu, Daya Guo, Nan Duan, Shailesh Jannu, Grant Jenks, Deep Majumder, Jared Green, Alexey Svyatkovskiy, Shengyu Fu, Neel Sundaresan. GitHub
Citation
If you user CodeReviewer, please consider citing the following paper:
@article{li2022codereviewer,
title={CodeReviewer: Pre-Training for Automating Code Review Activities},
author={Li, Zhiyu and Lu, Shuai and Guo, Daya and Duan, Nan and Jannu, Shailesh and Jenks, Grant and Majumder, Deep and Green, Jared and Svyatkovskiy, Alexey and Fu, Shengyu and others},
journal={arXiv preprint arXiv:2203.09095},
year={2022}
}