Skip to content

Commit 7e82e0e

Browse files
committed
fixing path issue
1 parent 8d2a605 commit 7e82e0e

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

.github/scripts/run_vllm_profiling.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ install_dependencies() {
3535
}
3636

3737
setup_workspace() {
38-
# Ensure we're in the workspace directory, but don't go into vllm source
39-
cd /tmp/workspace
38+
WORKSPACE_DIR="/tmp/workspace"
39+
cd "${WORKSPACE_DIR}"
4040

41-
# Create the profiling directory
4241
echo "Creating profiling directory: ${VLLM_TORCH_PROFILER_DIR}"
4342
mkdir -p "${VLLM_TORCH_PROFILER_DIR}"
4443
chmod 755 "${VLLM_TORCH_PROFILER_DIR}"
@@ -173,11 +172,11 @@ main() {
173172
# Setup phase
174173
print_configuration
175174
install_dependencies
176-
# setup_workspace
175+
setup_workspace
177176

178177
# Determine the profiling test file based on device type
179178
local device_name="${DEVICE_NAME:-cuda}"
180-
local profiling_test_file="vllm-profiling/${device_name}/profiling-tests.json"
179+
local profiling_test_file="${WORKSPACE_DIR}/vllm-profiling/${device_name}/profiling-tests.json"
181180

182181
echo "Looking for profiling test file: $profiling_test_file"
183182

@@ -186,8 +185,8 @@ main() {
186185
run_profiling_tests "$profiling_test_file"
187186
else
188187
echo "Error: No profiling test file found at $profiling_test_file"
189-
echo "Available files in vllm-profiling/:"
190-
find vllm-profiling/ -name "*.json" 2>/dev/null || echo "No JSON files found"
188+
echo "Available files in ${WORKSPACE_DIR}/vllm-profiling/:"
189+
find "${WORKSPACE_DIR}/vllm-profiling/" -name "*.json" 2>/dev/null || echo "No JSON files found"
191190
exit 1
192191
fi
193192

.github/workflows/vllm-profiling.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: vLLM Profiling
22

33
on:
44
schedule:
5-
# Run every week on Sunday at midnight
65
- cron: '0 0 * * 0'
76
workflow_dispatch:
87
inputs:
@@ -40,7 +39,6 @@ jobs:
4039
fail-fast: false
4140
matrix:
4241
include:
43-
# TODO: Figure out later if we need to scale this up to multiple runners
4442
- runs-on: linux.aws.h100.4
4543
device-name: cuda
4644
runs-on: ${{ matrix.runs-on }}
@@ -61,7 +59,6 @@ jobs:
6159
fetch-depth: 0
6260

6361
- uses: actions/setup-python@v5
64-
# Amazon Linux fails on this step
6562
continue-on-error: true
6663
with:
6764
python-version: '3.12'
@@ -118,7 +115,6 @@ jobs:
118115
run: |
119116
set -eux
120117
121-
# Mimic the logic from vllm ci-infra test template
122118
if [[ "${HEAD_BRANCH}" == "main" ]]; then
123119
DOCKER_IMAGE_PREFIX=public.ecr.aws/q9t5s3a7/vllm-ci-postmerge-repo
124120
else
@@ -143,11 +139,8 @@ jobs:
143139
set -eux
144140
145141
if [[ -z "${HEAD_SHA}" ]]; then
146-
# Looking back the latest 100 commits is enough
147142
for i in {0..99}
148143
do
149-
# Check if the image is there, if it doesn't then check an older one
150-
# because the commit is too recent
151144
HEAD_SHA=$(git rev-parse --verify HEAD~${i})
152145
DOCKER_IMAGE="${DOCKER_IMAGE_PREFIX}:${HEAD_SHA}${DOCKER_IMAGE_SUFFIX}"
153146
@@ -159,8 +152,6 @@ jobs:
159152
fi
160153
161154
echo "HEAD_SHA=$HEAD_SHA" >> $GITHUB_ENV
162-
163-
# Print the profiling commit for rereference
164155
echo "### Run profiling on [${HEAD_SHA}](https://github.com/vllm-project/vllm/commit/${HEAD_SHA})" >> "${GITHUB_STEP_SUMMARY}"
165156
166157
- name: Setup CUDA GPU_FLAG for docker run
@@ -182,7 +173,6 @@ jobs:
182173
SCCACHE_REGION: us-east-1
183174
HF_TOKEN: ${{ secrets.HF_TOKEN }}
184175
DOCKER_IMAGE: ${{ env.DOCKER_IMAGE_PREFIX }}:${{ env.HEAD_SHA }}${{ env.DOCKER_IMAGE_SUFFIX }}
185-
# vLLM-related environment variables
186176
VLLM_USE_MODELSCOPE: false
187177
VLLM_TORCH_PROFILER_DIR: /tmp/workspace/vllm-profiling/profiling-results
188178
CUDA_VISIBLE_DEVICES: 0
@@ -222,7 +212,6 @@ jobs:
222212
)
223213
docker exec -t "${container_name}" bash -c "cd vllm-profiling && bash ../.github/scripts/run_vllm_profiling.sh"
224214
225-
# Keep a copy of the profiling results on GitHub for reference
226215
- uses: actions/upload-artifact@v4
227216
with:
228217
name: profiling-results--${{ env.DEVICE_TYPE }}

0 commit comments

Comments
 (0)