Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 697 Bytes

README-DEV.md

File metadata and controls

26 lines (20 loc) · 697 Bytes

Implementation Details of 🎩Magicoder

Warning

This document is a work in progress. It is not yet complete.

Data Generation

Make sure you have set up your OPENAI_API_KEY and optionally OPENAI_BASE_URL. Then run with

python src/magicoder/generate_data.py \
  --seed_code_start_index ${START_INDEX_OF_RAW_DATA} \
  --max_new_data ${MAX_DATA_TO_GENERATE} \
  --data_dir python \
  --tag python

To continue an interrupted run, use --continue_from flag:

python src/magicoder/generate_data.py \
  --seed_code_start_index ${START_INDEX_OF_RAW_DATA} \
  --max_new_data ${MAX_DATA_TO_GENERATE} \
  --data_dir python \
  --continue_from ${PATH_TO_DATA_FILE}