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

How can I install Pytorch? #105

Closed
enesgur opened this issue Sep 26, 2021 · 8 comments
Closed

How can I install Pytorch? #105

enesgur opened this issue Sep 26, 2021 · 8 comments

Comments

@enesgur
Copy link

enesgur commented Sep 26, 2021

Hello,

I’m using Pyston for the AI scripts, but I've got some errors during the install Pytorch 1.8.0 package.

The error is “wheel is not supported on this platform”. I upgraded the wheel and pip but I failed.

I am using Debian 10 amd64 architecture. Pyston is 2.3.1.

@undingen
Copy link
Contributor

Unfortunately there are no prebuild packages for pyston available yet which makes installing much harder.
You will have to follow their guide on installing it from source for now: https://github.com/pytorch/pytorch#from-source

@enesgur
Copy link
Author

enesgur commented Sep 28, 2021

I see. Thanks for your reply.

@enesgur enesgur closed this as completed Sep 28, 2021
@makslevental
Copy link

@undingen i'm comfortable compiling pytorch from source so i'd like to experiment with this. problem is i have no idea what this actually entails, i.e., do i just compile using your llvm dep? i'm imagining it must be something else along the lines of -fc++-abi=...?

@kmod
Copy link
Contributor

kmod commented Jan 27, 2022

It depends on how pytorch is configured -- but most projects automatically configure themselves to build against the Python interpreter that you use to run the build process, so it hopefully is as simple as saying pyston setup.py install

@makslevental
Copy link

@kmod thanks for the quick response. will report back on results :)

@undingen
Copy link
Contributor

Also we do have a precompiled pytorch if you can use conda.
More infos about how to use conda with pyston: https://github.com/pyston/pyston/wiki/Using-conda

@makslevental
Copy link

@undingen interesting. so do you see perf improvements? the last blog post i read (not sure from when) said that you operate pytorch in fallback mode and therefore there's no perf improvement

@undingen
Copy link
Contributor

We have not tested how the performance compares but it should be at least as fast as using PyTorch with CPython - there is no fallback/compatibility overhead. But we can only speedup Python code so if all of the pytorch code is running inside C/GPU etc Pyston will not speed it up.
Would be really interested in hearing what performance you are seeing if you end up experimenting with pyston.

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

No branches or pull requests

4 participants