Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/actions/pt2e/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ runs:
{acc1 = $(NF - 2); acc5 = $NF;}
END{printf("Accuracy,%s,int8,%s,%s\n", m, acc1, acc5) }' |tee -a ${pt2e_logs_dir}/summary.csv
fi
if [[ "${{ inputs.dt }}" == *"float16"* ]];then
${cmd_line} --model_list ${model_name} --dtype float16 2>&1 |tee "${pt2e_logs_dir}/accuracy-float16-${model_name}.log" || true
(grep -i 'Acc.1.*Acc.5' "${pt2e_logs_dir}/accuracy-float16-${model_name}.log" || echo "failed & failed") 2>&1 |tail -n 1 |awk -v m="${model_name}" '
BEGIN{acc1 = "failed"; acc5 = "failed";}
{acc1 = $(NF - 2); acc5 = $NF;}
END{printf("Accuracy,%s,float16,%s,%s\n", m, acc1, acc5) }' |tee -a ${pt2e_logs_dir}/summary.csv
fi
done
fi
if [[ "${{ inputs.scenario }}" == *"performance"* ]];then
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_linux_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ jobs:
if: ${{ contains(inputs.test_type, 'nightly') && contains(inputs.suite, 'pt2e') }}
uses: ./.github/actions/pt2e
with:
dt: float32,int8
dt: float32,int8,float16
scenario: accuracy,performance

# Weekly launch
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:
if: ${{ contains(inputs.test_type, 'weekly') && contains(inputs.suite, 'pt2e') }}
uses: ./.github/actions/pt2e
with:
dt: float32,int8
dt: float32,int8,float16
scenario: accuracy,performance

# On-demand launch
Expand Down