Skip to content

Commit

Permalink
WIP quick ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
tengomucho committed Sep 11, 2024
1 parent b25e973 commit 6f7e07f
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/test-pytorch-xla-tpu-tgi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ name: Optimum TPU / Test TGI on TPU

on:
push:
branches: [ main ]
paths:
- "text-generation-inference/**"
branches: [ quick-ci-test ]
pull_request:
branches: [ main ]
paths:
Expand All @@ -28,16 +26,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Build and test TGI server
run: |
HF_TOKEN=${{ secrets.HF_TOKEN_OPTIMUM_TPU_CI }} make tgi_test
# Use a different step to test the Jetstream Pytorch version, to avoid conflicts with torch-xla[tpu]
- name: Install and test TGI server (Jetstream Pytorch)
- name: quick test
run: |
pip install -U .[jetstream-pt] \
-f https://storage.googleapis.com/jax-releases/jax_nightly_releases.html \
-f https://storage.googleapis.com/jax-releases/jaxlib_nightly_releases.html \
-f https://storage.googleapis.com/libtpu-releases/index.html
JETSTREAM_PT=1 HF_TOKEN=${{ secrets.HF_TOKEN_OPTIMUM_TPU_CI }} python -m \
pytest -sv text-generation-inference/tests -k jetstream
python -m pip install transformers
HF_TOKEN=${{ secrets.HF_TOKEN_OPTIMUM_TPU_CI }} python -c "from transformers import AutoConfig; AutoConfig.from_pretrained('google/gemma-2b')"
exit 123

0 comments on commit 6f7e07f

Please sign in to comment.