GithubHelp home page GithubHelp logo

codegen-database's Introduction

Codegen-Database

This repository contains codes generated by Salesforce/Codegen model on Datasets like HumanEval Dataset.
The dataset can be used for research, analysis, benchmarking, etc. purposes.

Key features

Parameters Fixed

  1. Temparture=0 is set
  2. do_sample=True

Parameter Variation

  1. max tokens- 128, 256, 512
  2. Model variation- codegen-350M, codegen-2B, codegen-6B
  3. Model type- multi, mono, nl

About

The dataset is generated by running on above parameters. LLM's like codegen these are used for generating basic codes in place of coders to increase work efficiency. This dataset promotes research for this LLM Codegen and its various versions. You may use these datasets freely for any purpose.

Note:

  • You may notice some codes to be wrong, incomplete, not properly indented, etc. These are as it is codes produced by codegen. To be able to test the abilities of codegen, the presence of these errors are reassuring the validity of this database.
  • Since more than 1 code may be produced for 512 tokens, only the first one will be considered. If the docstring it too large, the code may not get produced, even the docstring may not be fully generated since token generated by model > max tokens.
  • do_sample=True is set for data analysis and research as it prevents extra unwanted variation and generates the most likely code.

Salesforce/Codegen model

CodeGen is a family of autoregressive language models for program synthesis from the paper: A Conversational Paradigm for Program Synthesis by Erik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu, Huan Wang, Yingbo Zhou, Silvio Savarese, Caiming Xiong.
The models are originally released in this repository, under 3 pre-training data variants (NL, Multi, Mono) and 4 model size variants (350M, 2B, 6B, 16B).
Codegen produces python codes on providing appropriate docstring as model prompts.
Visit codegen on Hugging Face Codegen .

HumanEval Dataset

The HumanEval dataset is an infamous set of docstrings made to test functioning of code models made, and rate them based on criterion set by them and you. Visit the HumanEval GitHub Repository for more information.
This repository contains the HumanEval.json file containing those prompts systematically, and their codes generated respectively.

-- For ease of accessing file inside this repository, please refer the following to link to access set of well-named zip files (containing 164 codes) and download the required one.

Codegen Version link for dataset
2B mono, multi, nl https://github.com/AnirudhG07/Codegen-Database/tree/main/HumanEval/Codegen-2B
350M mono, multi, nl https://github.com/AnirudhG07/Codegen-Database/tree/main/HumanEval/Codegen-350M
6B mono, multi, nl https://github.com/AnirudhG07/Codegen-Database/tree/main/HumanEval/Codegen-6B

To compare with gpt-3.5-turbo, 164 codes have also been added here . Note: The GPT codes may themselves may not be the correct solution.

PARAMETERS FOR THE GPT CODES:

    - Temperature = 0
    - max_tokens = 512
    - top_p = 1

Visit the official Kaggle Codegen HumanEval Database page to download codes from there too. Don't forget to upvote the dataset!

codegen-database's People

Contributors

anirudhg07 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.