GithubHelp home page GithubHelp logo

gabeorlanski / bimodal-code-generation Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 40.82 MB

License: Apache License 2.0

Shell 1.03% Python 39.57% Dockerfile 0.03% Makefile 0.01% HTML 34.23% Jupyter Notebook 25.14%

bimodal-code-generation's Introduction

Code for the paper Evaluating How Fine-tuning on Bimodal Data Effects Code Generation

Install Instructions

  1. Clone this repo with
git clone https://github.com/gabeorlanski/springresearch.git
  1. Install the requirements with
pip install -r requirements.txt
  1. Install these python libraries from their repositories:

Configs

Configs for this project use the Hydra Framework. The main configs are located in the conf directory . The two most important ones are train_config.yaml and eval_config.yaml . They are for train.py and evaluate.py respectively. Finally, training_args.yaml are the training args that correspond to HuggingFace's Seq2SeqTrainingArguments . This file is loaded automatically into train_config.yaml.

There are a few intricacies/things of note for how configs are parsed (. indicates hierarchy in yaml configs):

  1. To set a batch size, set the training.batch_size and it will set the corresponding arguments for the huggingface training arguments. They are per_device_train_batch_size and per_device_eval_batch_size.
  2. The model_type argument for train_confing.yaml is seq2seq. This will select HuggingFace's
  3. AutoModelForSeq2SeqLM . This means that the model name passed to the model argument must be a valid for the corresponding model_type. The currently supported model_types values are:
  4. To load a checkpoint into training (instead of starting from a HF checkpoint) set the argument is_checkpoint=true.

Citation

@article{orlanski2022evaluating,
  title={Evaluating How Fine-tuning on Bimodal Data Effects Code Generation},
  author={Orlanski, Gabriel and Yang, Seonhye and Healy, Michael},
  journal={arXiv preprint arXiv:2211.07842},
  year={2022}
}

bimodal-code-generation's People

Contributors

gabeorlanski avatar seon1890 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

seon1890

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.