Automating Code Review Activities by Large-Scale Pre-training
Paper β’ 2203.09095 β’ Published
Run microsoft/codereviewer on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/microsoft/codereviewer. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/microsoft/codereviewer on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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")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
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}
}