Skip to content

Commit

Permalink
rename artifact
Browse files Browse the repository at this point in the history
Signed-off-by: Shaoting Feng <[email protected]>
  • Loading branch information
Shaoting-Feng committed Jan 28, 2025
1 parent 8618115 commit b97887e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/port-forward.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ sudo kubectl port-forward svc/vllm-router-service $port1:80 &
sleep 10
[ ! -d "output" ] && mkdir output
chmod -R 777 output
result_model=$(curl -s http://localhost:$port1/models | tee output/models_$1.json)
result_query=$(curl -X POST http://localhost:$port1/completions -H "Content-Type: application/json" -d '{"model": "facebook/opt-125m", "prompt": "Once upon a time,", "max_tokens": 10}' | tee output/query_$1.json)
result_model=$(curl -s http://localhost:$port1/models | tee output/models.json)
result_query=$(curl -X POST http://localhost:$port1/completions -H "Content-Type: application/json" -d '{"model": "facebook/opt-125m", "prompt": "Once upon a time,", "max_tokens": 10}' | tee output/query.json)

# Clean the port
PID=$(sudo netstat -tulnp | grep $port1 | awk '{print $7}' | cut -d'/' -f1 | head -n 1)
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/functionality-helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
sudo helm install vllm vllm/vllm-stack -f tutorials/assets/values-01-minimal-example.yaml
- name: Validate the installation and send query to the stack
run: |
timestamp=$(date +%Y%m%d_%H%M%S)
sudo bash .github/port-forward.sh "$timestamp"
sudo bash .github/port-forward.sh
- name: Archive functionality results
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit b97887e

Please sign in to comment.