[CI] Install lmms-eval from PyPI, drop human-eval install, add clone token fallback (#37672)

This commit is contained in:
Liangsheng Yin
2026-09-02 16:23:10 -07:00
committed by GitHub
parent a6da3a4922
commit 4bc34117f1
3 changed files with 14 additions and 13 deletions
+2 -11
View File
@@ -763,9 +763,8 @@ install_extra_deps() {
fi
if [ "$IS_BLACKWELL" != "1" ]; then
git_clone_with_retry https://github.com/EvolvingLMMs-Lab/lmms-eval.git lmms-eval "--branch v0.5"
$PIP_CMD install -e lmms-eval/ $PIP_INSTALL_SUFFIX
# lmms-eval v0.5 pulls antlr4-python3-runtime==4.7.2, clobbering the
$PIP_CMD install "lmms_eval==0.5.0" $PIP_INSTALL_SUFFIX
# lmms_eval 0.5.0 pulls antlr4-python3-runtime==4.7.2, clobbering the
# 4.9.3 that sgl-eval's latex2sympy2_extended needs (4.7.2 ImportError
# at sgl-eval import). Pin it back so the nightly sgl-eval path works.
$PIP_CMD install "antlr4-python3-runtime==4.9.3" --force-reinstall --no-deps $PIP_INSTALL_SUFFIX
@@ -783,14 +782,6 @@ install_test_tools() {
mkdir -p "${HOME}/.cache/sglang/"
mv python/kernels.lock "${HOME}/.cache/sglang/" || true
# Install human-eval (subshell keeps cd local)
$PIP_CMD install "setuptools==70.0.0" $PIP_INSTALL_SUFFIX
[ -d human-eval ] || git_clone_with_retry https://github.com/merrymercy/human-eval.git human-eval
(
cd human-eval
$PIP_CMD install -e . --no-build-isolation $PIP_INSTALL_SUFFIX
)
mark_step_done "${FUNCNAME[0]}"
}
+6 -2
View File
@@ -10,10 +10,14 @@ _git_with_github_auth() {
local repo_root
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)"
# Persisted by actions/checkout; absent under persist-credentials: false, and
# the clone then stays anonymous by design.
# Persisted by actions/checkout; absent under persist-credentials: false, where
# a workflow may instead hand over a public-read-only token via GH_TOKEN.
local header
header="$(git -C "$repo_root" config --local --get http.https://github.com/.extraheader 2>/dev/null || true)"
local token="${GH_TOKEN:-${GITHUB_TOKEN:-}}"
if [ -z "$header" ] && [ -n "$token" ]; then
header="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$token" | base64 | tr -d '\n')"
fi
local rc=0
if [ -z "$header" ]; then