CoolFace
Modelpublic

SOTAagi2030/CodeGenModel-Best

sourceHugging Facemitupdated 7mo agoView on Hugging Face
0likes21downloads
Model Card

CodeGenModel

<!-- markdownlint-disable first-line-h1 --> <!-- markdownlint-disable html --> <!-- markdownlint-disable no-duplicate-header -->

<div align="center"> <img src="figures/fig1.png" width="60%" alt="CodeGenModel" /> </div> <hr>

<div align="center" style="line-height: 1;"> <a href="LICENSE" style="margin: 2px;"> <img alt="License" src="figures/fig2.png" style="display: inline-block; vertical-align: middle;"/> </a> </div>

1. Introduction

CodeGenModel is specialized for code generation tasks. This model has been selected as the best checkpoint based on code generation benchmark performance.

<p align="center"> <img width="80%" src="figures/fig3.png"> </p>

The model demonstrates outstanding performance in code-related tasks while maintaining strong general capabilities.

2. Evaluation Results

Comprehensive Benchmark Results

<div align="center">

BenchmarkCodeModel-v1CodeModel-v2CodeGenModel
Core Reasoning TasksMath Reasoning0.5100.5350.55
Logical Reasoning0.7890.8010.819
Common Sense0.7160.7020.736
Language UnderstandingReading Comprehension0.6710.6850.7
Question Answering0.5820.5990.607
Text Classification0.8030.8110.828
Sentiment Analysis0.7770.7810.792
Generation TasksCode Generation0.6150.6310.65
Creative Writing0.5880.5790.61
Dialogue Generation0.6210.6350.644
Summarization0.7450.7550.767
Specialized CapabilitiesTranslation0.7820.7990.804
Knowledge Retrieval0.6510.6680.676
Instruction Following0.7330.7490.758
Safety Evaluation0.7180.7010.739

</div>

Overall Performance Summary

CodeGenModel achieves top performance on code generation tasks among all checkpoints in this training run.

3. How to Use

Installation

bash
pip install transformers

Quick Start

python
from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("CodeGenModel")
tokenizer = AutoTokenizer.from_pretrained("CodeGenModel")

4. License

This repository is licensed under the MIT License.

5. Contact

Open an issue on our GitHub for questions.