Update runner images and cache TensorRT (#24436)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
Glenn Jocher 2026-05-09 21:07:36 +08:00 committed by GitHub
parent 8f5d355cd0
commit c219cb2d5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 6 deletions

View File

@ -286,7 +286,8 @@ jobs:
activate-environment: true
- name: Install requirements
run: |
uv pip install -e . pytest-cov nvidia-ml-py "torch<2.11" # TODO: remove torch pin after GPU runner driver update to CUDA 13.0
# Install TensorRT into the job venv so uv can reuse the runner image cache.
uv pip install -e . pytest-cov nvidia-ml-py "torch<2.11" "tensorrt-cu12>=7.0.0,!=10.2.0" # TODO: remove torch pin after GPU runner driver update to CUDA 13.0
env:
PIP_BREAK_SYSTEM_PACKAGES: 1
- name: Check environment

View File

@ -7,7 +7,7 @@
FROM ultralytics/ultralytics:latest
# Set additional environment variables for runner (no "v" on the version)
ARG RUNNER_VERSION=2.333.0
ARG RUNNER_VERSION=2.334.0
ENV RUNNER_ALLOW_RUNASROOT=1 \
DEBIAN_FRONTEND=noninteractive
@ -20,7 +20,7 @@ RUN FILENAME=actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz && \
tar xzf "$FILENAME" && \
rm "$FILENAME" && \
# Install runner dependencies \
uv pip install --system pytest-cov && \
uv pip install --system pytest-cov "tensorrt-cu12>=7.0.0,!=10.2.0" && \
./bin/installdependencies.sh && \
apt-get update && \
apt-get install -y --no-install-recommends libicu-dev sudo nodejs npm && \

View File

@ -7,7 +7,7 @@
FROM ultralytics/ultralytics:latest-cpu
# Set additional environment variables for runner (no "v" on the version)
ARG RUNNER_VERSION=2.333.0
ARG RUNNER_VERSION=2.334.0
ENV RUNNER_ALLOW_RUNASROOT=1 \
DEBIAN_FRONTEND=noninteractive

View File

@ -170,8 +170,8 @@ class BaseDataset(Dataset):
with open(p, encoding="utf-8") as t:
t = t.read().strip().splitlines()
parent = str(p.parent) + os.sep
f += [x.replace("./", parent, 1) if x.startswith("./") else x for x in t] # local to global path
# F += [p.parent / x.lstrip(os.sep) for x in t] # local to global path (pathlib)
f += [x.replace("./", parent, 1) if x.startswith("./") else x for x in t] # local to global
# F += [p.parent / x.lstrip(os.sep) for x in t] # local to global (pathlib)
else:
raise FileNotFoundError(f"{self.prefix}{p} does not exist")
im_files = sorted(x.replace("/", os.sep) for x in f if x.rpartition(".")[-1].lower() in IMG_FORMATS)