Skip to content

Commit 6a05b16

Browse files
committed
Updates on Google ADK based on feedback.
1 parent a262485 commit 6a05b16

File tree

4 files changed

+293
-495
lines changed

4 files changed

+293
-495
lines changed

.github/workflows/examples-adk.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: Examples - ADK
2+
permissions:
3+
contents: read
4+
on:
5+
schedule:
6+
# Every day at 4 AM UTC+8
7+
- cron: '0 20 * * *'
8+
9+
workflow_dispatch:
10+
11+
repository_dispatch:
12+
types: [ci-adk, ci-all]
13+
14+
run-name: >-
15+
${{ github.event_name == 'repository_dispatch'
16+
&& format(
17+
'PR #{0} - Label {1} - {2}',
18+
github.event.client_payload.pull_number,
19+
github.event.client_payload.ci_label,
20+
github.event.client_payload.correlation_id
21+
)
22+
|| format('ADK - {0}', github.event_name) }}
23+
24+
jobs:
25+
adk:
26+
if: >
27+
github.event_name != 'repository_dispatch' ||
28+
github.event.action == 'ci-adk' ||
29+
github.event.action == 'ci-all'
30+
name: ADK (Python 3.12)
31+
runs-on: [self-hosted, 1ES.Pool=agl-runner-gpu]
32+
timeout-minutes: 30
33+
steps:
34+
- name: Check GPU status
35+
run: nvidia-smi
36+
37+
- name: Check disk space
38+
run: df -h
39+
40+
- uses: actions/checkout@v4
41+
with:
42+
ref: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.pr_ref || (github.event.pull_request.number && format('refs/pull/{0}/merge', github.event.pull_request.number)) || github.ref }}
43+
44+
- uses: astral-sh/setup-uv@v7
45+
with:
46+
enable-cache: true
47+
python-version: '3.12'
48+
49+
- name: Sync dependencies
50+
run: |
51+
uv sync --frozen --no-default-groups --extra verl \
52+
--group dev --group experiment --group agents --group torch-gpu-stable
53+
54+
- name: Freeze dependencies
55+
run: |
56+
set -ex
57+
uv pip freeze | tee requirements-freeze.txt
58+
echo "UV_LOCKED=1" >> $GITHUB_ENV
59+
echo "UV_NO_SYNC=1" >> $GITHUB_ENV
60+
61+
- name: Upload dependencies artifact
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: dependencies-adk
65+
path: requirements-freeze.txt
66+
compression-level: 0
67+
68+
- name: Launch LiteLLM Proxy
69+
run: ./scripts/litellm_run.sh
70+
env:
71+
AZURE_API_BASE: ${{ secrets.AZURE_GROUP_SUBSCRIPTION_API_BASE }}
72+
AZURE_API_KEY: ${{ secrets.AZURE_GROUP_SUBSCRIPTION_API_KEY }}
73+
74+
- name: Prepare ADK dataset
75+
run: |
76+
set -ex
77+
cd examples/google_adk
78+
uv run python prepare_dataset.py --download --outdir .
79+
80+
- name: ADK debug sanity check
81+
run: |
82+
set -ex
83+
cd examples/google_adk
84+
uv run python adk_debug.py --file data/test.parquet --index 0
85+
env:
86+
OPENAI_API_BASE: http://localhost:12306/
87+
OPENAI_API_KEY: dummy
88+
OPENAI_MODEL: meta-llama/Meta-Llama-3-8B-Instruct
89+
if: success() || failure()

0 commit comments

Comments
 (0)