Comments (2)
Hi @laserkelvin , we followed the practice of PyTorch to host different packages for different CUDA versions. I wonder how did you resolve the problem for PyTorch?
from dgl.
I see what you mean, having taken a second look at the PyTorch instructions. However running pip install torch
still works, albeit I think the wheels being put on PyPI default to being CUDA 12.1. For packaging I would've thought a CPU target as the default would make more sense, but I can understand their reason for doing so. 🤷🏼♂️
For DGL, however, is installation from PyPI just being dropped completely? Like I said, I found it a good user experience to be able to pip install dgl
and just have a working version to start development out of the box not needing to worry about accelerators or where to source the wheels from. I'd ask the DGL team to consider maintaining the PyPI distribution, even if it's just CPU only.
A potential workaround for pyproject.toml
is to point to the exact wheel, but it means that I have to pin the package to a specifiy Python version and distribution - that's also not ideal IMHO.
e.g.
dependencies = [
"torch", # installs from PyPI, but just adds CUDA bloat if you're not using CUDA which I can live with because it works
"dgl==2.0.0", # doesn't work because there are no >1.1.3 wheels on PyPI
"dgl @ https://data.dgl.ai/wheels/dgl-2.0.0-cp310-cp310-manylinux1_x86_64.whl", # works, but forces Python 3.10
]
At the end of the day I'm aiming to have a complete out of the box experience, and making the most performant configuration optional for the end-user - they can choose to rebuild DGL from source with whatever libraries they want, but as a package maintainer I'm more interested in providing an environment that at least works.
from dgl.
Related Issues (20)
- [Temporal] Add unique and compact for id + timestamp HOT 1
- AttributeError: 'list' object has no attribute 'local_scope' HOT 4
- [GraphBolt][CUDA] hetero_rgcn example crashes HOT 4
- [GraphBolt][CUDA] uva_index_select_csc regression failure on A10G GPU instance HOT 1
- Error running `bench_graphbolt_uva_index_select_csc.py` HOT 2
- [GraphBolt] ItemSampler CPU usage too high, especially hetero case. HOT 20
- Native support for batched graph saving/loading
- [GraphBolt][Examples] Folder Location HOT 1
- [Lint] Clang format change causing issues. HOT 7
- [GraphBolt][CUDA] Remove `extra_attrs` argument of `copy_to` HOT 2
- [Bug] Unexpected error when upgrading DGL version from 1.1.3 to 2.1.0 HOT 2
- [GraphBolt] There should be an easy way to use fp16 or bf16
- 'dgl' has no attribute '_deprecate' HOT 1
- [GraphBolt] CPU RAM Feature Cache for DiskBasedFeature HOT 6
- [Misc] Full support for torch 2.0 plus
- [GraphBolt] Update documentation about `type_per_edge` assumptions. HOT 1
- Support `cuda-version` For DGL Conda Packages HOT 9
- [regression] DGL multi-gpu benchmarks fails on `g5.48xlarge` HOT 3
- [Temporal] Performance comparison with PyTorch
- [GraphBolt][Regression] MultiGPU benchmark on papers100M HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dgl.