Skip to content

Commit

Permalink
remove workflows + update runners (#103)
Browse files Browse the repository at this point in the history
* remove workflows + update runner

* update

* update

* update

* update

* update

* update

* skip

* fix typos

* why aren't these being skipped

* update

* Update test_finetune_without_recipe.py

* Update test_finetune_oneshot_with_modifier.py

* Update test_finetune_oneshot_with_modifier.py

* update how tests are triggered

* update working directory

* update

* update

* skip finetune tests

* update

* skip

* mark obcq as nightly

* update

* fix typo

* update

* update

* update

* update workflow

* Update test_finetune_oneshot_with_modifier.py

* Update test_finetune_oneshot_with_modifier.py

* Update test_finetune_without_recipe.py

* Update test-check.yaml
  • Loading branch information
dsikka authored Aug 23, 2024
1 parent 3272168 commit 4874d63
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 547 deletions.
64 changes: 0 additions & 64 deletions .github/workflows/build-container.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/build-release.yml

This file was deleted.

78 changes: 0 additions & 78 deletions .github/workflows/build-wheel-and-container.yml

This file was deleted.

67 changes: 0 additions & 67 deletions .github/workflows/build-wheel.yml

This file was deleted.

83 changes: 40 additions & 43 deletions .github/workflows/test-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ on:
- main
- 'release/*'

env:
CADENCE: "commit"
CLEARML_WEB_HOST: ${{ secrets.CLEARML_WEB_HOST }}
CLEARML_API_HOST: ${{ secrets.CLEARML_API_HOST }}
CLEARML_API_ACCESS_KEY: ${{ secrets.CLEARML_API_ACCESS_KEY }}
CLEARML_FILES_HOST: ${{ secrets.CLEARML_FILES_HOST }}
CLEARML_API_SECRET_KEY: ${{ secrets.CLEARML_API_SECRET_KEY }}

jobs:
test-setup:
runs-on: ubuntu-22.04
Expand All @@ -21,7 +29,9 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: git branch --show-current
# TODO: for @DanH what is this supposed to be doing?
# The way it was being used before was only testing code on main,
# not on the current PR. git branch --show current does not work
- name: Get current branch
id: get-branch
run: >
Expand All @@ -36,32 +46,18 @@ jobs:
with:
python-version: '3.11'
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
ref: ${{needs.test-setup.outputs.branch}}
- name: "⚙️ Install dependencies"
run: pip3 install .[dev]
- name: "🔬 Running base tests"
run: make test
pytorch-tests:
runs-on: k8s-eng-gpu-64G-v100-32G
env:
CADENCE: "commit"
CLEARML_WEB_HOST: ${{ secrets.CLEARML_WEB_HOST }}
CLEARML_API_HOST: ${{ secrets.CLEARML_API_HOST }}
CLEARML_API_ACCESS_KEY: ${{ secrets.CLEARML_API_ACCESS_KEY }}
CLEARML_FILES_HOST: ${{ secrets.CLEARML_FILES_HOST }}
CLEARML_API_SECRET_KEY: ${{ secrets.CLEARML_API_SECRET_KEY }}
runs-on: ubuntu-22.04
needs: test-setup
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
ref: ${{needs.test-setup.outputs.branch}}
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: "neuralmagic/compressed-tensors"
Expand All @@ -74,26 +70,16 @@ jobs:
- name: "⚙️ Install dependencies"
run: pip3 install .[dev]
- name: "🔬 Running pytorch tests"
run: make test TARGETS=pytorch
run: |
pytest tests/llmcompressor/pytorch
compat-pytorch-1_9-pytorch-tests:
runs-on: k8s-eng-gpu-64G-v100-32G
env:
CADENCE: "commit"
CLEARML_WEB_HOST: ${{ secrets.CLEARML_WEB_HOST }}
CLEARML_API_HOST: ${{ secrets.CLEARML_API_HOST }}
CLEARML_API_ACCESS_KEY: ${{ secrets.CLEARML_API_ACCESS_KEY }}
CLEARML_FILES_HOST: ${{ secrets.CLEARML_FILES_HOST }}
CLEARML_API_SECRET_KEY: ${{ secrets.CLEARML_API_SECRET_KEY }}
runs-on: ubuntu-22.04
needs: test-setup
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
ref: ${{needs.test-setup.outputs.branch}}
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: "neuralmagic/compressed-tensors"
Expand All @@ -106,25 +92,16 @@ jobs:
- name: "⚙️ Install dependencies"
run: pip3 install .[dev]
- name: "🔬 Running pytorch tests"
run: make test TARGETS=pytorch
run: |
pytest tests/llmcompressor/pytorch
transformers-tests:
runs-on: k8s-eng-gpu-64G-v100-32G
env:
CADENCE: "commit"
CLEARML_WEB_HOST: ${{ secrets.CLEARML_WEB_HOST }}
CLEARML_API_HOST: ${{ secrets.CLEARML_API_HOST }}
CLEARML_API_ACCESS_KEY: ${{ secrets.CLEARML_API_ACCESS_KEY }}
CLEARML_FILES_HOST: ${{ secrets.CLEARML_FILES_HOST }}
CLEARML_API_SECRET_KEY: ${{ secrets.CLEARML_API_SECRET_KEY }}
runs-on: ubuntu-22.04
needs: test-setup
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
ref: ${{needs.test-setup.outputs.branch}}
- uses: actions/checkout@v2
with:
repository: "neuralmagic/compressed-tensors"
Expand All @@ -135,6 +112,26 @@ jobs:
- name: "Clean compressed-tensors directory"
run: rm -r compressed-tensors/
- name: "⚙️ Install dependencies"
id: install
run: pip3 install .[dev]
- name: "🔬 Running transformers tests"
run: make test TARGETS=transformers
- name: "🔬 Running transformers tests[skipping over finetune]"
if: always() && steps.install.outcome == 'success'
run: |
pytest tests/llmcompressor/transformers/compression
- name: Running GPTQ Tests
if: always() && steps.install.outcome == 'success'
run: |
pytest tests/llmcompressor/transformers/gptq
- name: Running ONESHOT Tests
if: always() && steps.install.outcome == 'success'
run: |
pytest tests/llmcompressor/transformers/oneshot
- name: Running Sparsification Tests
if: always() && steps.install.outcome == 'success'
run: |
pytest tests/llmcompressor/transformers/sparsification
ptyest tests/llmcompressor/transformers/test_clear_ml.py
- name: Running OBCQ Tests
if: always() && steps.install.outcome == 'success'
run: |
pytest -v tests/llmcompressor/transformers/obcq
Loading

0 comments on commit 4874d63

Please sign in to comment.