Update XPU Docker runtime stack & hf_home config (#23820)

Co-authored-by: Ma Mingfei <mingfei.ma@intel.com>
This commit is contained in:
MingxuZh
2026-04-29 10:03:11 +08:00
committed by GitHub
co-authored by Ma Mingfei
parent 13afe8acdf
commit 2d27c38f13
5 changed files with 38 additions and 54 deletions
+3 -3
View File
@@ -72,8 +72,6 @@ jobs:
needs: [check-changes, pr-gate]
if: needs.check-changes.outputs.main_package == 'true'
runs-on: intel-bmg
env:
HF_HOME: /home/sdp/.cache/huggingface
steps:
- name: Checkout code
uses: actions/checkout@v4
@@ -99,8 +97,10 @@ jobs:
container_id=$(docker run -dt \
--group-add 992 \
--group-add $(getent group video | cut -d: -f3) \
-v ${HF_HOME}:/root/.cache/huggingface \
--group-add $(getent group render | cut -d: -f3) \
-v $HOME/.cache/huggingface:/root/.cache/huggingface \
--device /dev/dri \
-v /dev/dri/by-path:/dev/dri/by-path \
-e HF_TOKEN="$(cat ~/huggingface_token.txt)" \
xpu_sglang_main:bmg)
echo "Started container: $container_id"