Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip depending on torch testing package #235

Merged
merged 1 commit into from
May 9, 2024

Conversation

jerryzh168
Copy link
Contributor

Summary:
We used to do

from torch.testing._internal.common_utils import IS_FBCODE

but this caused some internal failures, so we'll just copy paste the code for IS_FBCODE so that we don't depend on the testing package

Test Plan:
internal CI

Reviewers:

Subscribers:

Tasks:

Tags:

Summary:
We used to do
```
from torch.testing._internal.common_utils import IS_FBCODE
```
but this caused some internal failures, so we'll just copy paste the code for `IS_FBCODE` so that we don't depend on the testing package

Test Plan:
internal CI

Reviewers:

Subscribers:

Tasks:

Tags:
Copy link

pytorch-bot bot commented May 9, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/235

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

✅ No Failures

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

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

@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 May 9, 2024
@msaroufim msaroufim requested a review from albanD May 9, 2024 20:55
Copy link

@albanD albanD left a comment

Choose a reason for hiding this comment

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

Not sure why you need fbcode specific logic here tbh. But this is a good fix to avoid the internal testing import yes.

@jerryzh168
Copy link
Contributor Author

Not sure why you need fbcode specific logic here tbh. But this is a good fix to avoid the internal testing import yes.

it's just because we have make rules for cuda kernels only in OSS, and not sure how to write the equivalent make rules in fbcode

@jerryzh168 jerryzh168 merged commit ad12663 into pytorch:main May 9, 2024
13 checks passed
dbyoung18 pushed a commit to dbyoung18/ao that referenced this pull request Jul 31, 2024
Summary:
We used to do
```
from torch.testing._internal.common_utils import IS_FBCODE
```
but this caused some internal failures, so we'll just copy paste the code for `IS_FBCODE` so that we don't depend on the testing package

Test Plan:
internal CI

Reviewers:

Subscribers:

Tasks:

Tags:
yanbing-j pushed a commit to yanbing-j/ao that referenced this pull request Dec 9, 2024
* prompt

* chat_mode, num_samples

* move more args

* more gen args

* update

* args

* undo some changes

* typos

* typo

* fix tests

* typo

* typo
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.

4 participants