Skip to content

Commit

Permalink
[Minor] add device constrain in script.
Browse files Browse the repository at this point in the history
  • Loading branch information
happierpig committed Apr 8, 2024
1 parent 0dcfda9 commit bd96c1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/run_atom_ppl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ resultFile=$dir/atom_llama_ppl.csv
logFile=$dir/atom_llama_w${BIT}a${BIT}.log
touch $logFile

CUDA_VISIBLE_DEVICE=0 python ${dir}/model/main.py ${MODEL} ${CALIB_DATA} \
export CUDA_VISIBLE_DEVICES=0 # Avoid causing not same devices error in "auto" device_map.
python ${dir}/model/main.py ${MODEL} ${CALIB_DATA} \
${cmd_base} ${cmd_group} ${cmd_reorder} ${cmd_clip} ${cmd_adv} ${cmd_eval} \
2>&1 | tee ${logFile}

Expand Down

0 comments on commit bd96c1e

Please sign in to comment.