-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
transformers-cli
now requires PyTorch
#36244
Comments
Seems real, and I don't think we should require Torch for |
I agree this is an issue that should be addressed — two dependencies that aren't installed without adding some |
I think you're running into #35714, which made PyTorch a required dependency for |
gentle ping @gante! Was that dependency intentional? |
@Rocketknight1 not intentional, I'll add a guard (and tag the branch for a patch release) |
System Info
N/A
Who can help?
@gante (author of #35714)
Reproduction
Expected behavior
Since #35714 (released in v4.49.0), the
transformers-cli
now requires PyTorch to even run a simple:transformers-cli --help
command.I am pretty sure it is originating from this line.
My question is if this is intentional or unintentional. So far, PyTorch has been an optional dependency for any functionality with CLI or the package itself.
The text was updated successfully, but these errors were encountered: