-
Notifications
You must be signed in to change notification settings - Fork 94
140 lines (129 loc) · 5.03 KB
/
test-check-transformers.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
name: Test Checks (Transformers)
on:
pull_request:
branches: main
types: [ labeled, synchronize ]
push:
branches: main
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:
detect-directory-changes:
name: "Detect Directory Changes"
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.detect.outputs.changed }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Detect Directory Changes
id: detect
uses: tchupp/actions-detect-directory-changes@v1
- name: Detect Directory Changes
id: detect-2
uses: tchupp/actions-detect-directory-changes@v1
with:
included-paths: '!./.github/workflows/**'
- name: Get changed files
id: changed-files-filtered
uses: tj-actions/changed-files@v45
with:
files_ignore: |
examples/**
tests/e2e/**
tests/lmeval/**
tests/examples/**
**/*.md
.github/workflows/*
- name: Get changed files
id: changed-files-unfiltered
uses: tj-actions/changed-files@v45
with:
files_ignore: |
examples/**
tests/e2e/**
tests/lmeval/**
tests/examples/**
**/*.md
.github/workflows/*
- name: 'results: detect'
run: |
echo "${{ steps.detect.outputs.changed }}"
echo "---"
echo "${{ fromJson(steps.detect.outputs.changed) }}"
shell: bash
- name: 'results: detect-2'
run: |
echo "${{ steps.detect-2.outputs.changed }}"
echo "---"
echo "${{ fromJson(steps.detect-2.outputs.changed) }}"
shell: bash
- name: 'results: changed-files-filtered'
run: |
echo "any_changed: ${{ steps.changed-files-filtered.outputs.any_changed }}"
echo "all_changed_files: ${{ steps.changed-files-filtered.outputs.all_changed_files }}"
echo "---"
echo "any_modified: ${{ steps.changed-files-filtered.outputs.any_modified }}"
echo "all_modified_files: ${{ steps.changed-files-filtered.outputs.all_modified_files }}"
shell: bash
- name: 'results: changed-files-unfiltered'
run: |
echo "any_changed: ${{ steps.changed-files-filtered.outputs.any_changed }}"
echo "all_changed_files: ${{ steps.changed-files-filtered.outputs.all_changed_files }}"
echo "---"
echo "any_modified: ${{ steps.changed-files-filtered.outputs.any_modified }}"
echo "all_modified_files: ${{ steps.changed-files-filtered.outputs.all_modified_files }}"
shell: bash
# transformers-tests:
# runs-on: gcp-k8s-vllm-l4-solo
# if: contains(github.event.pull_request.labels.*.name, 'ready') || github.event_name == 'push'
# steps:
# - uses: actions/setup-python@v5
# with:
# python-version: '3.9'
# - uses: actions/checkout@v4
# - name: "⚙️ Install dependencies"
# run: pip3 install -U pip setuptools && pip3 install .[dev]
# - uses: actions/checkout@v4
# with:
# repository: "neuralmagic/compressed-tensors"
# path: "compressed-tensors"
# - name: "⚙️ Install compressed-tensors dependencies"
# id: install
# run: |
# pip3 uninstall -y compressed-tensors compressed-tensors-nightly
# pip3 install ./compressed-tensors/
# - name: "Clean compressed-tensors directory"
# run: rm -r compressed-tensors/
# - name: "🔬 Running transformers tests"
# if: (success() || failure()) && steps.install.outcome == 'success'
# run: |
# pytest -v tests/llmcompressor/transformers/compression
# - name: Run Finetune Tests
# if: (success() || failure()) && steps.install.outcome == 'success'
# run: |
# pytest -v tests/llmcompressor/transformers/finetune
# - name: Running GPTQ Tests
# if: (success() || failure()) && steps.install.outcome == 'success'
# run: |
# pytest -v tests/llmcompressor/transformers/gptq
# - name: Running ONESHOT Tests
# if: (success() || failure()) && steps.install.outcome == 'success'
# run: |
# pytest -v tests/llmcompressor/transformers/oneshot
# - name: Running Sparsification Tests
# if: (success() || failure()) && steps.install.outcome == 'success'
# run: |
# pytest tests/llmcompressor/transformers/sparsification -v
# pytest tests/llmcompressor/transformers/test_clear_ml.py -v
# - name: Running OBCQ Tests
# if: (success() || failure()) && steps.install.outcome == 'success'
# run: |
# pytest -v tests/llmcompressor/transformers/obcq