Skip to content
Merged
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
10 changes: 5 additions & 5 deletions .github/ci_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ platforms:
CUDA_ARCH: sm_80,sm_86,sm_89,sm_90
APT_MIRROR: https://mirrors.tuna.tsinghua.edu.cn/ubuntu
PIP_INDEX_URL: https://pypi.org/simple
InfiniCore_BRANCH: main
InfiniCore_BRANCH: __Branch_Name__
docker_args:
- "--user=root"
- "--network=host"
Expand Down Expand Up @@ -80,7 +80,7 @@ platforms:
BASE_IMAGE: cr.metax-tech.com/public-ai-release/maca/vllm-metax:0.10.2-maca.ai3.2.1.7-torch2.6-py310-ubuntu22.04-amd64
APT_MIRROR: https://mirrors.tuna.tsinghua.edu.cn/ubuntu
PIP_INDEX_URL: https://pypi.org/simple
InfiniCore_BRANCH: main
InfiniCore_BRANCH: __Branch_Name__
docker_args:
- "--user=root"
- "--network=host"
Expand Down Expand Up @@ -118,7 +118,7 @@ platforms:
BASE_IMAGE: sh-harbor.mthreads.com/mcctest/vllm_musa:20251112_hygon
APT_MIRROR: https://mirrors.tuna.tsinghua.edu.cn/ubuntu
PIP_INDEX_URL: https://pypi.org/simple
InfiniCore_BRANCH: main
InfiniCore_BRANCH: __Branch_Name__
docker_args:
- "--user=root"
- "--network=host"
Expand Down Expand Up @@ -186,7 +186,7 @@ platforms:
BASE_IMAGE: pepe_working:latest
APT_MIRROR: https://mirrors.tuna.tsinghua.edu.cn/ubuntu
PIP_INDEX_URL: https://pypi.org/simple
InfiniCore_BRANCH: main
InfiniCore_BRANCH: __Branch_Name__
docker_args:
- "--user=root"
- "--network=host"
Expand Down Expand Up @@ -285,7 +285,7 @@ platforms:
BASE_IMAGE: image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.4.1-ubuntu22.04-dtk25.04.1-py3.10
APT_MIRROR: https://mirrors.tuna.tsinghua.edu.cn/ubuntu
PIP_INDEX_URL: https://pypi.org/simple
InfiniCore_BRANCH: main
InfiniCore_BRANCH: __Branch_Name__
docker_args:
- "--user=root"
- "--network=host"
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,18 @@ on:
branches: ["main"]
types: [opened, reopened] # 只在 PR 创建/重新打开时自动跑
workflow_dispatch: # 支持在 Actions 页手动重跑
inputs:
infinicore_branch:
description: "InfiniCore Branch Name"
required: false
default: "main"
type: string

jobs:
ci:
uses: InfiniTensor/ci/.github/workflows/infinilm-ci.yml@infiniCore_ci
with:
config_path: .github/ci_config.yaml
ci_ref: infiniCore_ci
infinicore_branch: ${{ github.event.inputs.infinicore_branch || 'main' }}
secrets: inherit
7 changes: 6 additions & 1 deletion examples/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,12 @@ def get_test_cases(
return case_dict


with open("examples/bench_prompt.md", "r") as f:
prompt_path = (
"examples/bench_prompt.md"
if os.path.isfile("examples/bench_prompt.md")
else "InfiniLM/examples/bench_prompt.md"
)
with open(prompt_path, "r") as f:
prompt = f.read()


Expand Down