-
Notifications
You must be signed in to change notification settings - Fork 171
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
custom cuda extensions make installing ao hard #288
Comments
Maybe there should be a flag to skip compiling extension modules and make sure the package can still run without extension module built. (still, it's a stopgap measure, doesn't tackle the root problem) |
Indeed an env variable doing the nuclear options seems practical although yeah it's gonna be clunky to have to tell people please install us with |
try:
import _C as _C
except:
_C = None
|
another issue similar to Problem 3:
|
These issues were mostly fixed so far, can reopen if more stuff comes up |
i'm collecting a few issues I've seen, I have no clear picture of how to solve them as of this moment but aggregating them in the hopes that inspiration will strike
Problems
Problem 1
The below issue is solved by installing ao and then
cd
out of the ao directory. IIRC PyTorch has a similar problem in a repro shared by @jerryzh168Problem 2
Another issue here is building the fp6 kernels is failing https://hastebin.com/share/riridivafa.rust but the nvcc and gcc versions seem fine in a repro shared by @CoffeeVampir3
Problem 3
This error shows up when you either pip install ao or build it with a mismatch in cuda versions in a repro shared by @vayuda
Problem 4
pypi binaries are crashing on non CUDA devices
Solutions
We need graceful solutions but in the meantime I'm embarassed to say I've been recommending a nuclear option which is to disable C extensions
Specifically in
torchao/__init__.py
deleteAnd in
setup.py
deleteThe text was updated successfully, but these errors were encountered: