Skip to content

Conversation

lucylq
Copy link
Contributor

@lucylq lucylq commented Oct 29, 2024

Stack from ghstack (oldest at bottom):

  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]
Copy link

pytorch-bot bot commented Oct 29, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6544

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 0ff8b81 with merge base 0691ae1 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

lucylq added a commit that referenced this pull request Oct 29, 2024
ghstack-source-id: fe6a86c
Pull Request resolved: #6544
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 29, 2024
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]
lucylq added a commit that referenced this pull request Oct 29, 2024
ghstack-source-id: fef9bac
Pull Request resolved: #6544
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]
lucylq added a commit that referenced this pull request Oct 29, 2024
ghstack-source-id: c7aac46
Pull Request resolved: #6544
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]
lucylq added a commit that referenced this pull request Oct 29, 2024
ghstack-source-id: 4441650
Pull Request resolved: #6544
bash examples/models/llama3_2_vision/install_requirements.sh
# run python unittest
python -m unittest examples.models.llama3_2_vision.preprocess.test_preprocess
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I don't think we need a new job right? Just add it to pytest.ini should be good enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to use pytest

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So not sure if you need to run bash examples/models/llama3_2_vision/install_requirements.sh though. Let's wait and see.

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]
lucylq added a commit that referenced this pull request Oct 29, 2024
ghstack-source-id: 14fe9f1
Pull Request resolved: #6544
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]
lucylq added a commit that referenced this pull request Oct 29, 2024
ghstack-source-id: 9f58d21
Pull Request resolved: #6544
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]
lucylq added a commit that referenced this pull request Oct 29, 2024
ghstack-source-id: e7c69d9
Pull Request resolved: #6544
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]
lucylq added a commit that referenced this pull request Oct 30, 2024
ghstack-source-id: 7804d12
Pull Request resolved: #6544
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]
lucylq added a commit that referenced this pull request Oct 31, 2024
ghstack-source-id: 644f38e
Pull Request resolved: #6544
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]
lucylq added a commit that referenced this pull request Oct 31, 2024
ghstack-source-id: bbdfbe1
Pull Request resolved: #6544
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]
lucylq added a commit that referenced this pull request Oct 31, 2024
ghstack-source-id: 7cc5fc2
Pull Request resolved: #6544
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]
lucylq added a commit that referenced this pull request Oct 31, 2024
ghstack-source-id: 0138672
Pull Request resolved: #6544
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]
lucylq added a commit that referenced this pull request Oct 31, 2024
ghstack-source-id: 996073a
Pull Request resolved: #6544
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]
lucylq added a commit that referenced this pull request Oct 31, 2024
ghstack-source-id: 43765bd
Pull Request resolved: #6544
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]
lucylq added a commit that referenced this pull request Nov 1, 2024
ghstack-source-id: d6d3f7a
Pull Request resolved: #6544
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]
lucylq added a commit that referenced this pull request Nov 1, 2024
ghstack-source-id: d25c4d6
Pull Request resolved: #6544
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]
lucylq added a commit that referenced this pull request Nov 1, 2024
ghstack-source-id: 8f1ce31
Pull Request resolved: #6544
@lucylq lucylq merged commit 843150b into gh/lucylq/13/base Nov 1, 2024
39 checks passed
@lucylq lucylq deleted the gh/lucylq/13/head branch November 1, 2024 19:55
@lucylq lucylq temporarily deployed to cherry-pick-bot November 1, 2024 19:55 — with GitHub Actions Inactive
@pytorchbot pytorchbot mentioned this pull request Nov 1, 2024
kirklandsign pushed a commit that referenced this pull request Nov 1, 2024
ghstack-source-id: 8f1ce31
Pull Request resolved: #6544

Co-authored-by: lucylq <lfq@meta.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants