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

generalize deepspeed linear and implement it for non cuda systems #6932

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

oelayan7
Copy link
Contributor

@oelayan7 oelayan7 commented Jan 8, 2025

No description provided.

@@ -9,6 +9,7 @@
pkg_version = None

from .builder import CUDAOpBuilder, installed_cuda_version
import torch
Copy link
Contributor

@loadams loadams Jan 8, 2025

Choose a reason for hiding this comment

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

Could you wrap this in a try/except, similar to other imports of torch inside op_builder? Not having this prevents us from building the whl in an environment where torch isn't installed (this will fix the no-torch workflow).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@loadams I moved it inside the function, and imported it locally.
When this function is called, there will always be torch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants