Commit 843150b
authored
Add preprocess to ci (#6544)
* Add preprocess to ci
[ghstack-poisoned]
* Update on "Add preprocess to ci"
1. Run `test_preprocess.py` in ci.
2. Refactor `test_preprocess.py` by creating the model artifacts (eager, exported, et) once and then re-using them on different inputs.
Test Plan:
```
python -m unittest examples.models.llama3_2_vision.preprocess.test_preprocess
```
[ghstack-poisoned]
* Update on "Add preprocess to ci"
1. Run `test_preprocess.py` in ci.
2. Refactor `test_preprocess.py` by creating the model artifacts (eager, exported, et) once and then re-using them on different inputs.
Test Plan:
```
python -m unittest examples.models.llama3_2_vision.preprocess.test_preprocess
```
[ghstack-poisoned]
* Update on "Add preprocess to ci"
1. Run `test_preprocess.py` in ci.
2. Refactor `test_preprocess.py` by creating the model artifacts (eager, exported, et) once and re-use them on different inputs (previously, create model artifacts for each test).
Test Plan:
```
python -m unittest examples.models.llama3_2_vision.preprocess.test_preprocess
```
[ghstack-poisoned]
* Update on "Add preprocess to ci"
1. Run `test_preprocess.py` in ci.
2. Refactor `test_preprocess.py` by creating the model artifacts (eager, exported, et) once and re-use them on different inputs (previously, create model artifacts for each test).
Test Plan:
```
python -m unittest examples.models.llama3_2_vision.preprocess.test_preprocess
```
[ghstack-poisoned]
* Update on "Add preprocess to ci"
1. Run `test_preprocess.py` in ci.
2. Refactor `test_preprocess.py` by creating the model artifacts (eager, exported, et) once and re-use them on different inputs (previously, create model artifacts for each test).
Test Plan:
```
pytest -c /dev/null -v -n auto examples/models/llama3_2_vision/preprocess/
```
[ghstack-poisoned]
* Update on "Add preprocess to ci"
1. Run `test_preprocess.py` in ci.
2. Refactor `test_preprocess.py` by creating the model artifacts (eager, exported, et) once and re-use them on different inputs (previously, create model artifacts for each test).
Test Plan:
```
pytest -c /dev/null -v -n auto examples/models/llama3_2_vision/preprocess/
```
[ghstack-poisoned]1 parent c817640 commit 843150b
File tree
4 files changed
+180
-131
lines changed- .github/workflows
- examples/models/llama3_2_vision/preprocess
4 files changed
+180
-131
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
70 | 77 | | |
71 | 78 | | |
72 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
0 commit comments