Skip to content

Commit dde72fc

Browse files
authored
[CI] Fix main2main workflow to enable vllm-ascend cache (vllm-project#11359)
### What this PR does / why we need it? Fix csrc cache path and align checkout layout - vllm and vllm-ascend as sibling dirs under workspace (drop exclude hack) - csrc cache `path:` relative not absolute — tar keeps dir structure so restore lands .so at the right level (was extracting to workspace root) - `.so` check uses absolute path, not working-directory-relative ### Does this PR introduce _any_ user-facing change? ### How was this patch tested? - vLLM version: v0.23.0 - vLLM main: vllm-project/vllm@a30addc Signed-off-by: wjunLu <wjunlu217@gmail.com>
1 parent e6960fa commit dde72fc

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/schedule_main2main.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ jobs:
233233
uses: runs-on/cache/restore@v5
234234
with:
235235
path: |
236-
${{ env.WORK_REPO_DIR }}/vllm_ascend/_cann_ops_custom
237-
${{ env.WORK_REPO_DIR }}/vllm_ascend/*.so
238-
${{ env.WORK_REPO_DIR }}/vllm_ascend/lib
239-
${{ env.WORK_REPO_DIR }}/vllm_ascend/include
236+
vllm-ascend/vllm_ascend/_cann_ops_custom
237+
vllm-ascend/vllm_ascend/*.so
238+
vllm-ascend/vllm_ascend/lib
239+
vllm-ascend/vllm_ascend/include
240240
key: vllm-ascend-build-v1-${{ steps.get_arch.outputs.arch }}-${{ env.MAIN2MAIN_IMAGE_TAG }}-${{ steps.get_csrc_hash.outputs.CSRC_HASH }}
241241
restore-keys: |
242242
vllm-ascend-build-v1-${{ steps.get_arch.outputs.arch }}-${{ env.MAIN2MAIN_IMAGE_TAG }}-
@@ -281,7 +281,7 @@ jobs:
281281
pip install uc-manager
282282
uv pip install -r requirements-dev.txt
283283
uv pip install --force-reinstall --no-deps triton-ascend==3.2.1
284-
if find vllm_ascend -maxdepth 1 -name '*.so' -type f 2>/dev/null | grep -q .; then
284+
if find "${{ env.WORK_REPO_DIR }}/vllm_ascend" -maxdepth 1 -name '*.so' -type f 2>/dev/null | grep -q .; then
285285
echo "CSRC cache hit: .so files found, skip kernel compilation"
286286
COMPILE_CUSTOM_KERNELS=0 uv pip install -e .
287287
else
@@ -294,10 +294,10 @@ jobs:
294294
uses: runs-on/cache/save@v5
295295
with:
296296
path: |
297-
${{ env.WORK_REPO_DIR }}/vllm_ascend/_cann_ops_custom
298-
${{ env.WORK_REPO_DIR }}/vllm_ascend/*.so
299-
${{ env.WORK_REPO_DIR }}/vllm_ascend/lib
300-
${{ env.WORK_REPO_DIR }}/vllm_ascend/include
297+
vllm-ascend/vllm_ascend/_cann_ops_custom
298+
vllm-ascend/vllm_ascend/*.so
299+
vllm-ascend/vllm_ascend/lib
300+
vllm-ascend/vllm_ascend/include
301301
key: vllm-ascend-build-v1-${{ steps.get_arch.outputs.arch }}-${{ env.MAIN2MAIN_IMAGE_TAG }}-${{ steps.get_csrc_hash.outputs.CSRC_HASH }}
302302

303303
- name: Run main2main flow

0 commit comments

Comments
 (0)