[CI] Make accuarcy CI and report work (#1078)
### What this PR does / why we need it? Make accuarcy CI and report work ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Manaully review Signed-off-by: hfadzxy <starmoon_zhang@163.com>
This commit is contained in:
228
.github/workflows/accuracy_report.yaml
vendored
228
.github/workflows/accuracy_report.yaml
vendored
@@ -19,110 +19,184 @@ name: Accuracy Report
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
branch:
|
vllm-ascend-branch:
|
||||||
description: 'choose a dev branch to pr'
|
description: 'vllm-ascend branch:'
|
||||||
required: true
|
required: true
|
||||||
vllm-ascend-version:
|
type: choice
|
||||||
description: 'what vllm-ascend version to accuracy test?'
|
options:
|
||||||
|
- main
|
||||||
|
- v0.7.3-dev
|
||||||
|
models:
|
||||||
|
description: 'models:'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: choice
|
||||||
|
options:
|
||||||
|
- all
|
||||||
|
- Qwen/Qwen2.5-7B-Instruct
|
||||||
|
- Qwen/Qwen2.5-VL-7B-Instruct
|
||||||
|
- Qwen/Qwen3-8B-Base
|
||||||
|
default: 'all'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
download:
|
download_reports:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
model: ${{ fromJSON(
|
||||||
|
(github.event.inputs.models == 'all' &&
|
||||||
|
'["Qwen/Qwen2.5-7B-Instruct","Qwen/Qwen2.5-VL-7B-Instruct","Qwen/Qwen3-8B-Base"]') ||
|
||||||
|
(github.event.inputs.models == 'Qwen/Qwen2.5-7B-Instruct' &&
|
||||||
|
'["Qwen/Qwen2.5-7B-Instruct"]') ||
|
||||||
|
(github.event.inputs.models == 'Qwen/Qwen2.5-VL-7B-Instruct' &&
|
||||||
|
'["Qwen/Qwen2.5-VL-7B-Instruct"]') ||
|
||||||
|
(github.event.inputs.models == 'Qwen/Qwen3-8B-Base' &&
|
||||||
|
'["Qwen/Qwen3-8B-Base"]')
|
||||||
|
) }}
|
||||||
|
|
||||||
|
version: [0, 1]
|
||||||
|
exclude:
|
||||||
|
- model: 'Qwen/Qwen2.5-VL-7B-Instruct'
|
||||||
|
version: 1
|
||||||
|
fail-fast: false
|
||||||
|
|
||||||
|
name: Download ${{ matrix.model }} V${{ matrix.version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.branch }}
|
ref: ${{ github.event.inputs.vllm-ascend-branch }}
|
||||||
|
|
||||||
- name: Debug List Artifacts
|
- name: Get base model name
|
||||||
run: gh api /repos/${{ github.repository }}/actions/artifacts
|
id: get_basename
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Query artifact run id for Qwen2.5-VL-7B-Instruct V0 latest artifact
|
|
||||||
id: get_Qwen2_5_VL_7B_Instruct_latest_run_id_V0
|
|
||||||
run: |
|
run: |
|
||||||
ARTIFACT_JSON=$(gh api "repos/${{ github.repository }}/actions/artifacts")
|
model_base_name=$(basename "${{ matrix.model }}")
|
||||||
RUN_ID=$(echo "$ARTIFACT_JSON" | \
|
echo "model_base_name=$model_base_name" >> $GITHUB_OUTPUT
|
||||||
jq -r '[.artifacts[] | select(.name=="${{ github.event.inputs.vllm-ascend-version }}-Qwen2.5-VL-7B-Instruct-V0-report")] | sort_by(.created_at) | last | .workflow_run.id')
|
shell: bash
|
||||||
echo "runid=$RUN_ID" >> "$GITHUB_OUTPUT"
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Query artifact run id for Qwen2.5-7B-Instruct V0 latest artifact
|
- name: Query artifact run id
|
||||||
id: get_Qwen2_5_7B_Instruct_latest_run_id_V0
|
id: get_run_id
|
||||||
run: |
|
run: |
|
||||||
ARTIFACT_JSON=$(gh api "repos/${{ github.repository }}/actions/artifacts")
|
ARTIFACT_PATTERN="${{ github.event.inputs.vllm-ascend-branch }}-${{ steps.get_basename.outputs.model_base_name }}-V${{ matrix.version }}-report"
|
||||||
|
echo "Querying artifacts with pattern: $ARTIFACT_PATTERN"
|
||||||
|
|
||||||
|
ARTIFACT_JSON=$(gh api --paginate /repos/${{ github.repository }}/actions/artifacts || echo "{}")
|
||||||
|
|
||||||
RUN_ID=$(echo "$ARTIFACT_JSON" | \
|
RUN_ID=$(echo "$ARTIFACT_JSON" | \
|
||||||
jq -r '[.artifacts[] | select(.name=="${{ github.event.inputs.vllm-ascend-version }}-Qwen2.5-7B-Instruct-V0-report")] | sort_by(.created_at) | last | .workflow_run.id')
|
jq -s -r --arg pattern "$ARTIFACT_PATTERN" \
|
||||||
echo "runid=$RUN_ID" >> "$GITHUB_OUTPUT"
|
'[.[].artifacts[]] | map(select(.name | test($pattern))) | sort_by(.created_at) | last | .workflow_run.id // empty')
|
||||||
|
|
||||||
|
if [ -z "$RUN_ID" ]; then
|
||||||
|
echo "::warning::No artifact found matching pattern $ARTIFACT_PATTERN. Skipping download."
|
||||||
|
echo "runid=" >> $GITHUB_OUTPUT
|
||||||
|
else
|
||||||
|
echo "Found matching artifact with run ID: $RUN_ID"
|
||||||
|
echo "runid=$RUN_ID" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Query artifact run id for Qwen3-8B-Base V0 latest artifact
|
- name: Download Artifact
|
||||||
id: get_Qwen3_8B_Base_latest_run_id_V0
|
if: ${{ steps.get_run_id.outputs.runid != '' }}
|
||||||
run: |
|
|
||||||
ARTIFACT_JSON=$(gh api "repos/${{ github.repository }}/actions/artifacts")
|
|
||||||
RUN_ID=$(echo "$ARTIFACT_JSON" | \
|
|
||||||
jq -r '[.artifacts[] | select(.name=="${{ github.event.inputs.vllm-ascend-version }}-Qwen3-8B-Base-V0-report")] | sort_by(.created_at) | last | .workflow_run.id')
|
|
||||||
echo "runid=$RUN_ID" >> "$GITHUB_OUTPUT"
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Download Qwen/Qwen2.5-VL-7B-Instruct V0 Artifact
|
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ github.event.inputs.vllm-ascend-version }}-Qwen2.5-VL-7B-Instruct-V0-report
|
name: ${{ github.event.inputs.vllm-ascend-branch }}-${{ steps.get_basename.outputs.model_base_name }}-V${{ matrix.version }}-report
|
||||||
path: ./docs/source/developer_guide/evaluation/accuracy_report
|
path: ./docs/source/developer_guide/evaluation/accuracy_report_bak
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
repository: vllm-project/vllm-ascend
|
repository: ${{ github.repository }}
|
||||||
run-id: ${{ steps.get_Qwen2_5_VL_7B_Instruct_latest_run_id_V0.outputs.runid }}
|
run-id: ${{ steps.get_run_id.outputs.runid }}
|
||||||
|
|
||||||
|
- name: Upload reports artifact
|
||||||
|
if: ${{ steps.get_run_id.outputs.runid != '' }}
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: report-${{ steps.get_basename.outputs.model_base_name }}-v${{ matrix.version }}
|
||||||
|
path: ./docs/source/developer_guide/evaluation/accuracy_report_bak/*.md
|
||||||
|
retention-days: 90
|
||||||
|
|
||||||
- name: Download Qwen/Qwen2.5-7B-Instruct Artifact
|
create_pr:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: download_reports
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.inputs.vllm-ascend-branch }}
|
||||||
|
|
||||||
|
- name: Setup workspace
|
||||||
|
run: mkdir -p ./accuracy/accuracy_report
|
||||||
|
|
||||||
|
- name: Download only current run reports
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ github.event.inputs.vllm-ascend-version }}-Qwen2.5-7B-Instruct-V0-report
|
|
||||||
path: ./docs/source/developer_guide/evaluation/accuracy_report
|
path: ./docs/source/developer_guide/evaluation/accuracy_report
|
||||||
|
pattern: report-*
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
repository: vllm-project/vllm-ascend
|
run-id: ${{ github.run_id }}
|
||||||
run-id: ${{ steps.get_Qwen2_5_7B_Instruct_latest_run_id_V0.outputs.runid }}
|
|
||||||
|
|
||||||
- name: Download Qwen/Qwen3-8B-Base Artifact
|
- name: Delete old report
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: ${{ github.event.inputs.vllm-ascend-version }}-Qwen3-8B-Base-V0-report
|
|
||||||
path: ./docs/source/developer_guide/evaluation/accuracy_report
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
repository: vllm-project/vllm-ascend
|
|
||||||
run-id: ${{ steps.get_Qwen3_8B_Base_latest_run_id_V0.outputs.runid }}
|
|
||||||
|
|
||||||
- name: Display Files
|
|
||||||
working-directory: ./docs/source/developer_guide/evaluation/accuracy_report
|
|
||||||
run: |
|
run: |
|
||||||
cat ./Qwen2.5-VL-7B-Instruct.md
|
find ./docs/source/developer_guide/evaluation/accuracy_report -maxdepth 1 -type f -name '*.md' ! -name 'index.md' -delete
|
||||||
cat ./Qwen2.5-7B-Instruct.md
|
find ./docs/source/developer_guide/evaluation/accuracy_report -mindepth 2 -type f -name '*.md' -exec mv -f {} ./docs/source/developer_guide/evaluation/accuracy_report \;
|
||||||
cat ./Qwen3-8B-Base.md
|
find ./docs/source/developer_guide/evaluation/accuracy_report -mindepth 1 -type d -empty -delete
|
||||||
|
|
||||||
- name: Create Pull Request for markdown update
|
- name: Generate step summary
|
||||||
|
if: ${{ always() }}
|
||||||
|
run: |
|
||||||
|
for report in ./docs/source/developer_guide/evaluation/accuracy_report/*.md; do
|
||||||
|
filename=$(basename "$report")
|
||||||
|
# skip index.md
|
||||||
|
if [ "$filename" = "index.md" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "$report" ]; then
|
||||||
|
{
|
||||||
|
echo -e "\n\n---\n"
|
||||||
|
echo "## 📄 Report File: $(basename $report)"
|
||||||
|
cat "$report"
|
||||||
|
} >> "$GITHUB_STEP_SUMMARY"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
- name: Update accuracy_report/index.md
|
||||||
|
run: |
|
||||||
|
REPORT_DIR="./docs/source/developer_guide/evaluation/accuracy_report"
|
||||||
|
INDEX_MD="$REPORT_DIR/index.md"
|
||||||
|
|
||||||
|
{
|
||||||
|
echo "# Accuracy Report"
|
||||||
|
echo ""
|
||||||
|
echo "::: {toctree}"
|
||||||
|
echo ":caption: Accuracy Report"
|
||||||
|
echo ":maxdepth: 1"
|
||||||
|
|
||||||
|
for report in "$REPORT_DIR"/*.md; do
|
||||||
|
filename="$(basename "$report" .md)"
|
||||||
|
if [ "$filename" != "index" ]; then
|
||||||
|
echo "$filename"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo ":::"
|
||||||
|
} > "$INDEX_MD"
|
||||||
|
|
||||||
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v7
|
uses: peter-evans/create-pull-request@v7
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.PR_TOKEN }}
|
token: ${{ secrets.PR_TOKEN }}
|
||||||
base: ${{ github.event.inputs.branch }}
|
base: ${{ github.event.inputs.vllm-ascend-branch }}
|
||||||
branch: auto-pr/accuracy-test
|
branch: auto-pr/accuracy-report
|
||||||
commit-message: "Update accuracy report for ${{ github.event.inputs.branch }}"
|
commit-message: "Update accuracy reports for ${{ github.event.inputs.vllm-ascend-branch }}"
|
||||||
add-paths: ./docs/source/developer_guide/evaluation/accuracy_report/*.md
|
add-paths: ./docs/source/developer_guide/evaluation/accuracy_report/*.md
|
||||||
title: "[Doc]Update accuracy report for ${{ github.event.inputs.branch }}"
|
title: "[Doc] Update accuracy reports for ${{ github.event.inputs.vllm-ascend-branch }}"
|
||||||
body: |
|
body: |
|
||||||
The accuracy results running on Ascend NPU have changed, I'm updating the report.
|
The accuracy results running on NPU Altlas A2 have changed, updating reports for:
|
||||||
Please review the changes.
|
${{
|
||||||
|
github.event.inputs.models == 'all'
|
||||||
|
&& 'All models (Qwen2.5-7B-Instruct, Qwen2.5-VL-7B-Instruct, Qwen3-8B-Base)'
|
||||||
|
|| github.event.inputs.models
|
||||||
|
}}
|
||||||
|
|
||||||
- [Workflow run][1]
|
- [Workflow run][1]
|
||||||
- [Qwen2.5-7B-Instruct accuracy report][2]
|
|
||||||
- [Qwen2.5-VL-7B-Instruct accuracy report][3]
|
[1]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
- [Qwen3-8B-Base accuracy report][4]
|
|
||||||
|
|
||||||
[1]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
||||||
[2]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ steps.get_Qwen2_5_7B_Instruct_latest_run_id_V0.outputs.runid }}
|
|
||||||
[3]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ steps.get_Qwen2_5_VL_7B_Instruct_latest_run_id_V0.outputs.runid }}
|
|
||||||
[4]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ steps.get_Qwen3_8B_Base_latest_run_id_V0.outputs.runid }}
|
|
||||||
13
.github/workflows/accuracy_test.yaml
vendored
13
.github/workflows/accuracy_test.yaml
vendored
@@ -96,7 +96,7 @@ jobs:
|
|||||||
# - vl-accuracy-test: Qwen/Qwen2.5-VL-7B-Instruct
|
# - vl-accuracy-test: Qwen/Qwen2.5-VL-7B-Instruct
|
||||||
model_name: ${{ fromJSON(
|
model_name: ${{ fromJSON(
|
||||||
(github.event.inputs.models == 'all' &&
|
(github.event.inputs.models == 'all' &&
|
||||||
'["Qwen/Qwen2.5-7B-Instruct","Qwen/Qwen2.5-VL-7B-Instruct","model_name":"Qwen/Qwen3-8B-Base"]') ||
|
'["Qwen/Qwen2.5-7B-Instruct","Qwen/Qwen2.5-VL-7B-Instruct","Qwen/Qwen3-8B-Base"]') ||
|
||||||
(github.event.inputs.models == 'Qwen/Qwen2.5-7B-Instruct' &&
|
(github.event.inputs.models == 'Qwen/Qwen2.5-7B-Instruct' &&
|
||||||
'["Qwen/Qwen2.5-7B-Instruct"]') ||
|
'["Qwen/Qwen2.5-7B-Instruct"]') ||
|
||||||
(github.event.inputs.models == 'Qwen/Qwen2.5-VL-7B-Instruct' &&
|
(github.event.inputs.models == 'Qwen/Qwen2.5-VL-7B-Instruct' &&
|
||||||
@@ -201,6 +201,7 @@ jobs:
|
|||||||
pip show torch | grep "Version:" | awk '{print "GHA_TORCH_VERSION="$2}'
|
pip show torch | grep "Version:" | awk '{print "GHA_TORCH_VERSION="$2}'
|
||||||
pip show torch_npu | grep "Version:" | awk '{print "GHA_TORCH_NPU_VERSION="$2}'
|
pip show torch_npu | grep "Version:" | awk '{print "GHA_TORCH_NPU_VERSION="$2}'
|
||||||
pip show vllm | grep "Version:" | awk '{print "GHA_VLLM_VERSION="$2}' | sed 's/+.*//'
|
pip show vllm | grep "Version:" | awk '{print "GHA_VLLM_VERSION="$2}' | sed 's/+.*//'
|
||||||
|
echo "GHA_VLLM_ASCEND_VERSION=${{ github.event.inputs.vllm-ascend-version || github.ref }}"
|
||||||
} >> "$GITHUB_ENV"
|
} >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Print versions
|
- name: Print versions
|
||||||
@@ -209,7 +210,7 @@ jobs:
|
|||||||
echo "Torch NPU: ${{ env.GHA_TORCH_NPU_VERSION }}"
|
echo "Torch NPU: ${{ env.GHA_TORCH_NPU_VERSION }}"
|
||||||
echo "Torch: ${{ env.GHA_TORCH_VERSION }}"
|
echo "Torch: ${{ env.GHA_TORCH_VERSION }}"
|
||||||
echo "vLLM: ${{ env.GHA_VLLM_VERSION }}"
|
echo "vLLM: ${{ env.GHA_VLLM_VERSION }}"
|
||||||
echo "vLLM Ascend: ${{ env.GHA_VLLM_ASCEND_VERSION || github.ref }}"
|
echo "vLLM Ascend: ${{ env.GHA_VLLM_ASCEND_VERSION }}"
|
||||||
|
|
||||||
- name: Run Accuracy Test for V${{ matrix.vllm_use_version }}
|
- name: Run Accuracy Test for V${{ matrix.vllm_use_version }}
|
||||||
id: report
|
id: report
|
||||||
@@ -238,10 +239,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cat ./benchmarks/accuracy/${{ steps.report.outputs.markdown_name }}.md >> $GITHUB_STEP_SUMMARY
|
cat ./benchmarks/accuracy/${{ steps.report.outputs.markdown_name }}.md >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
|
- name: Sanitize version string for artifact naming
|
||||||
|
run: |
|
||||||
|
SAFE_VLLM_ASCEND_VERSION="${GHA_VLLM_ASCEND_VERSION//\//-}"
|
||||||
|
echo "SAFE_VLLM_ASCEND_VERSION=$SAFE_VLLM_ASCEND_VERSION" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Upload Report for V${{ matrix.vllm_use_version }}
|
- name: Upload Report for V${{ matrix.vllm_use_version }}
|
||||||
|
if: ${{ github.event_name == 'workflow_dispatch' }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: "${{ env.GHA_VLLM_ASCEND_VERSION }}-${{ steps.report.outputs.markdown_name }}-report"
|
name: "${{ env.SAFE_VLLM_ASCEND_VERSION }}-${{ steps.report.outputs.markdown_name }}-report"
|
||||||
path: ./benchmarks/accuracy/${{ steps.report.outputs.markdown_name }}.md
|
path: ./benchmarks/accuracy/${{ steps.report.outputs.markdown_name }}.md
|
||||||
if-no-files-found: warn
|
if-no-files-found: warn
|
||||||
retention-days: 90
|
retention-days: 90
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ from multiprocessing import Queue
|
|||||||
import lm_eval
|
import lm_eval
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
UNIMODAL_MODEL_NAME = ["Qwen/Qwen2.5-7B-Instruct", "Qwen/Qwen3-8B"]
|
UNIMODAL_MODEL_NAME = ["Qwen/Qwen2.5-7B-Instruct", "Qwen/Qwen3-8B-Base"]
|
||||||
UNIMODAL_TASK = ["ceval-valid", "gsm8k"]
|
UNIMODAL_TASK = ["ceval-valid", "gsm8k"]
|
||||||
MULTIMODAL_NAME = ["Qwen/Qwen2.5-VL-7B-Instruct"]
|
MULTIMODAL_NAME = ["Qwen/Qwen2.5-VL-7B-Instruct"]
|
||||||
MULTIMODAL_TASK = ["mmmu_val"]
|
MULTIMODAL_TASK = ["mmmu_val"]
|
||||||
@@ -36,17 +36,17 @@ batch_size_dict = {"ceval-valid": 1, "mmlu": 1, "gsm8k": "auto", "mmmu_val": 1}
|
|||||||
MODEL_RUN_INFO = {
|
MODEL_RUN_INFO = {
|
||||||
"Qwen/Qwen2.5-7B-Instruct":
|
"Qwen/Qwen2.5-7B-Instruct":
|
||||||
("export MODEL_ARGS='pretrained={model}, max_model_len=4096,dtype=auto,tensor_parallel_size=2,gpu_memory_utilization=0.6'\n"
|
("export MODEL_ARGS='pretrained={model}, max_model_len=4096,dtype=auto,tensor_parallel_size=2,gpu_memory_utilization=0.6'\n"
|
||||||
"lm_eval --model vllm --modlel_args $MODEL_ARGS --tasks {datasets} \ \n"
|
"lm_eval --model vllm --model_args $MODEL_ARGS --tasks {datasets} \ \n"
|
||||||
"--apply_chat_template --fewshot_as_multiturn --num_fewshot 5 --batch_size 1"
|
"--apply_chat_template --fewshot_as_multiturn --num_fewshot 5 --batch_size 1"
|
||||||
),
|
),
|
||||||
"Qwen/Qwen3-8B-Base":
|
"Qwen/Qwen3-8B-Base":
|
||||||
("export MODEL_ARGS='pretrained={model}, max_model_len=4096,dtype=auto,tensor_parallel_size=2,gpu_memory_utilization=0.6'\n"
|
("export MODEL_ARGS='pretrained={model}, max_model_len=4096,dtype=auto,tensor_parallel_size=2,gpu_memory_utilization=0.6'\n"
|
||||||
"lm_eval --model vllm --modlel_args $MODEL_ARGS --tasks {datasets} \ \n"
|
"lm_eval --model vllm --model_args $MODEL_ARGS --tasks {datasets} \ \n"
|
||||||
"--apply_chat_template --fewshot_as_multiturn --num_fewshot 5 --batch_size 1"
|
"--apply_chat_template --fewshot_as_multiturn --num_fewshot 5 --batch_size 1"
|
||||||
),
|
),
|
||||||
"Qwen/Qwen2.5-VL-7B-Instruct":
|
"Qwen/Qwen2.5-VL-7B-Instruct":
|
||||||
("export MODEL_ARGS='pretrained={model}, max_model_len=8192,dtype=auto,tensor_parallel_size=4,max_images=2'\n"
|
("export MODEL_ARGS='pretrained={model}, max_model_len=8192,dtype=auto,tensor_parallel_size=4,max_images=2'\n"
|
||||||
"lm_eval --model vllm-vlm --modlel_args $MODEL_ARGS --tasks {datasets} \ \n"
|
"lm_eval --model vllm-vlm --model_args $MODEL_ARGS --tasks {datasets} \ \n"
|
||||||
"--apply_chat_template --fewshot_as_multiturn --batch_size 1"),
|
"--apply_chat_template --fewshot_as_multiturn --batch_size 1"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
# Accuracy Report
|
||||||
|
|
||||||
|
:::{toctree}
|
||||||
|
:caption: Accuracy Report
|
||||||
|
:maxdepth: 1
|
||||||
|
:::
|
||||||
@@ -6,6 +6,7 @@
|
|||||||
using_lm_eval
|
using_lm_eval
|
||||||
using_opencompass
|
using_opencompass
|
||||||
using_evalscope
|
using_evalscope
|
||||||
|
accuracy_report/index
|
||||||
:::
|
:::
|
||||||
|
|
||||||
:::{toctree}
|
:::{toctree}
|
||||||
|
|||||||
Reference in New Issue
Block a user