#!/bin/bash script_path=$(realpath $BASH_SOURCE) script_dir=$(dirname $script_path) CODE_DATA_DIR="" # TODO: set the path to the code data directory GAS=32 python ${script_dir}/../generation_1p.py \ --distribute false \ --device_num $RANK_SIZE \ --sink_size 2 \ --run_type predict \ --train_and_eval_mode 0 \ --mode 13B \ --code_data $CODE_DATA_DIR \ --param_init_type fp16 \ --micro_size $GAS \ --seq_length 2048 \ --vocab_size 51200 \ --ckpt_name_prefix code-13B \ --save_checkpoint=True \ --save_checkpoint_path /cache/ckpts \ --save_checkpoint_obs_path /home \ # TODO: set at will --save_checkpoint_steps 99999 \ # TODO: set at will --load_ckpt_path \ # TODO: set to obs path for loading ckpt --load_ckpt_epoch \ # TODO: set to epoch number of loaded ckpt, same as save_checkpoint_steps --per_batch_size 1 \ --full_batch 1 \ --epoch_size 1 \ --micro_interleaved_size 1 \ --profiling 0 \ --use_past "true" \ --top_p 0.95 \ --top_k_num 100 \ --temperature 0.8 \ --op_level_model_parallel_num 1 \ --frequency_penalty 0.0 \ --presence_penalty 0.0 \ --strategy_load_ckpt_path "/home/work/user-job-dir/start_1.6/strategy.ckpt" \ --tb_dir $LOG_PATH