-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refine docs, add accuracy data, add receip and eval scripts (#226)
* refine docs, add accuracy data, add receip and eval scripts Signed-off-by: Zhang, Weiwei1 <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * update supported model list Signed-off-by: Zhang, Weiwei1 <[email protected]> * add generation results, update supported model list Signed-off-by: Zhang, Weiwei1 <[email protected]> * fixtypos Signed-off-by: Zhang, Weiwei1 <[email protected]> * fix typo Signed-off-by: Zhang, Weiwei1 <[email protected]> * follow comments Signed-off-by: Zhang, Weiwei1 <[email protected]> * resort model list Signed-off-by: Zhang, Weiwei1 <[email protected]> * fixtypo Signed-off-by: Zhang, Weiwei1 <[email protected]> * fixtypo2 Signed-off-by: Zhang, Weiwei1 <[email protected]> * refine table Signed-off-by: Zhang, Weiwei1 <[email protected]> --------- Signed-off-by: Zhang, Weiwei1 <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4455478
commit c6d8bf6
Showing
20 changed files
with
930 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
examples/multimodal-modeling/Phi-3-vision/run_autoround_on_gaudi.sh
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,11 @@ | ||
export https_proxy=http://proxy.ims.intel.com:911 | ||
export http_proxy=http://proxy.ims.intel.com:911 | ||
export HF_HOME=/home/weiweiz1/.cache/ | ||
#!/bin/bash | ||
set -x | ||
device=0 | ||
|
||
# Mistral-7B-Instruct-v0.2 | ||
# device=3 | ||
# Baichuan2-7B-Chat Phi-3-mini-4k-instruct | ||
# Llama-2-7b-chat-hf | ||
# lambada_openai,hellaswag,piqa,winogrande,truthfulqa_mc1,openbookqa,boolq,arc_easy,arc_challenge,mmlu, | ||
# ceval-valid,cmmlu | ||
# dir=/data5/zww/test_faster/ | ||
# dir=/models | ||
# for model in Phi-3-mini-4k-instruct Meta-Llama-3-8B-Instruct | ||
# do | ||
# echo ${model}/default | ||
# CUDA_VISIBLE_DEVICES=$device \ | ||
# python3 eval_042/evaluation.py --model_name ${dir}${model}_default/$model-autoround-w4g128-gpu \ | ||
# --trust_remote_code \ | ||
# --eval_bs 16 --tasks gsm8k,ceval-valid,cmmlu \ | ||
# 2>&1| tee -a /data4/zww/test_faster/rounding_${model}_rtn.txt | ||
# echo ${model}/rtn | ||
# done& | ||
|
||
device=2 | ||
dir=/data4/zww/tmp/ | ||
# dir=/data5/models/ | ||
for model in Phi-3-vision-128k-instruct | ||
do | ||
echo ${model} | ||
CUDA_VISIBLE_DEVICES=$device \ | ||
python3 eval_042/evaluation.py --model_name ${dir}/$model-autoround-w4g128-round \ | ||
--trust_remote_code \ | ||
--eval_bs 16 --tasks lambada_openai \ | ||
2>&1| tee -a /data4/zww/test_faster/rounding_${model}.txt | ||
echo ${model} | ||
done | ||
# dir=/data5/zww/test_faster/ | ||
# for model in Phi-3-mini-4k-instruct Mistral-7B-Instruct-v0.2 | ||
# do | ||
# echo ${model}/rtn | ||
# CUDA_VISIBLE_DEVICES=$device \ | ||
# python3 eval_042/evaluation.py --model_name ${dir}${model}_rtn/$model-autoround-w4g128-gpu \ | ||
# --trust_remote_code \ | ||
# --eval_bs 16 --tasks lambada_openai,hellaswag,piqa,winogrande,truthfulqa_mc1,openbookqa,boolq,arc_easy,arc_challenge,mmlu,gsm8k \ | ||
# 2>&1| tee -a /data4/zww/test_faster/rounding_${model}_rtn.txt | ||
# echo ${model}/rtn | ||
# done | ||
model_path='./tmp_autoround' | ||
model=Phi-3-vision-128k-instruct | ||
|
||
CUDA_VISIBLE_DEVICES=$device python3 eval_042/evaluation.py \ | ||
--model_name ${model_path}/${model} \ | ||
--trust_remote_code \ | ||
--eval_bs 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.