Skip to content

Commit

Permalink
Parameterize the model size
Browse files Browse the repository at this point in the history
  • Loading branch information
NinedayWang committed Oct 18, 2022
1 parent 4ba3cc4 commit cbb08b9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Convert2HF/convert.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
size=${1:-0-4B}

python convert_neox_pt_to_huggingface_neox.py \
--checkpoint_dir ../checkpoints/checkpoints-0-4B/global_step150000 \
--checkpoint_dir ../checkpoints/checkpoints-${size}/global_step150000 \
--vocab_file ../Data/code-vocab.json \
--merge_file ../Data/code-merges.txt \
--hf_config_path ./polycoder/configs/config_0-4B.json \
--hf_save_dir ./polycoder/0-4B
--hf_config_path ./polycoder/configs/config_${size}.json \
--hf_save_dir ./polycoder/${size}

0 comments on commit cbb08b9

Please sign in to comment.